ranranrunforit commited on
Commit
d838eb2
·
verified ·
1 Parent(s): 41c5912

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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.openai.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
 
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