Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -117,14 +117,6 @@ model = LiteLLMModel(
|
|
117 |
max_completion_tokens=500,
|
118 |
api_key=os.getenv("OPENAI_API_KEY")#Groq API
|
119 |
)
|
120 |
-
from smolagents import OpenAIServerModel
|
121 |
-
model = OpenAIServerModel(
|
122 |
-
#model_id="gemma2-9b-it",
|
123 |
-
model_id="llama-3.3-70b-versatile",
|
124 |
-
api_base="https://api.groq.com/openai/v1",
|
125 |
-
api_key=os.environ["OPENAI_API_KEY"],
|
126 |
-
max_completion_tokens=500,
|
127 |
-
)
|
128 |
model._flatten_messages_as_text = True
|
129 |
|
130 |
|
|
|
117 |
max_completion_tokens=500,
|
118 |
api_key=os.getenv("OPENAI_API_KEY")#Groq API
|
119 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
120 |
model._flatten_messages_as_text = True
|
121 |
|
122 |
|