Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -128,7 +128,7 @@ If the user is engaging in discussion, try to steer them towards getting in touc
|
|
| 128 |
messages = [{"role": "system", "content": self.system_prompt()}] + history + [{"role": "user", "content": message}]
|
| 129 |
done = False
|
| 130 |
while not done:
|
| 131 |
-
response = self.
|
| 132 |
if response.choices[0].finish_reason=="tool_calls":
|
| 133 |
message = response.choices[0].message
|
| 134 |
tool_calls = message.tool_calls
|
|
|
|
| 128 |
messages = [{"role": "system", "content": self.system_prompt()}] + history + [{"role": "user", "content": message}]
|
| 129 |
done = False
|
| 130 |
while not done:
|
| 131 |
+
response = self.groq.chat.completions.create(model="openai/gpt-oss-20b", messages=messages, tools=tools)
|
| 132 |
if response.choices[0].finish_reason=="tool_calls":
|
| 133 |
message = response.choices[0].message
|
| 134 |
tool_calls = message.tool_calls
|