Update app.py
Browse files
app.py
CHANGED
@@ -123,7 +123,7 @@ If the user is engaging in discussion, try to steer them towards getting in touc
|
|
123 |
messages = [{"role": "system", "content": self.system_prompt()}] + history + [{"role": "user", "content": message}]
|
124 |
done = False
|
125 |
while not done:
|
126 |
-
response = self.
|
127 |
if response.choices[0].finish_reason=="tool_calls":
|
128 |
message = response.choices[0].message
|
129 |
tool_calls = message.tool_calls
|
|
|
123 |
messages = [{"role": "system", "content": self.system_prompt()}] + history + [{"role": "user", "content": message}]
|
124 |
done = False
|
125 |
while not done:
|
126 |
+
response = self.client.chat.completions.create(model="meta-llama/llama-3.3-8b-instruct:free", messages=messages, tools=tools)
|
127 |
if response.choices[0].finish_reason=="tool_calls":
|
128 |
message = response.choices[0].message
|
129 |
tool_calls = message.tool_calls
|