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