Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -198,13 +198,13 @@ model = LiteLLMModel(
|
|
| 198 |
"llama-3.3-70b-versatile",
|
| 199 |
api_base="https://api.groq.com/openai/v1",
|
| 200 |
custom_role_conversions=custom_role_conversions,
|
| 201 |
-
max_completion_tokens=
|
| 202 |
api_key=os.getenv("OPENAI_API_KEY")#Groq API
|
| 203 |
)
|
| 204 |
model._flatten_messages_as_text = True
|
| 205 |
|
| 206 |
|
| 207 |
-
text_limit =
|
| 208 |
ti_tool = TextInspectorTool(model, text_limit)
|
| 209 |
|
| 210 |
browser = SimpleTextBrowser(**BROWSER_CONFIG)
|
|
|
|
| 198 |
"llama-3.3-70b-versatile",
|
| 199 |
api_base="https://api.groq.com/openai/v1",
|
| 200 |
custom_role_conversions=custom_role_conversions,
|
| 201 |
+
max_completion_tokens=500,
|
| 202 |
api_key=os.getenv("OPENAI_API_KEY")#Groq API
|
| 203 |
)
|
| 204 |
model._flatten_messages_as_text = True
|
| 205 |
|
| 206 |
|
| 207 |
+
text_limit = 1000
|
| 208 |
ti_tool = TextInspectorTool(model, text_limit)
|
| 209 |
|
| 210 |
browser = SimpleTextBrowser(**BROWSER_CONFIG)
|