Spaces:
Sleeping
Sleeping
Upload folder using huggingface_hub
Browse files- app.py +1 -1
- requirements.txt +2 -1
app.py
CHANGED
|
@@ -144,7 +144,7 @@ If the user is engaging in discussion, try to steer them towards getting in touc
|
|
| 144 |
messages = [{"role": "system", "content": self.system_prompt()}] + history + [{"role": "user", "content": message}]
|
| 145 |
done = False
|
| 146 |
while not done:
|
| 147 |
-
response = self.openai.chat.completions.create(model="gpt-
|
| 148 |
if response.choices[0].finish_reason=="tool_calls":
|
| 149 |
message = response.choices[0].message
|
| 150 |
tool_calls = message.tool_calls
|
|
|
|
| 144 |
messages = [{"role": "system", "content": self.system_prompt()}] + history + [{"role": "user", "content": message}]
|
| 145 |
done = False
|
| 146 |
while not done:
|
| 147 |
+
response = self.openai.chat.completions.create(model="gpt-5o-mini", messages=messages, tools=tools)
|
| 148 |
if response.choices[0].finish_reason=="tool_calls":
|
| 149 |
message = response.choices[0].message
|
| 150 |
tool_calls = message.tool_calls
|
requirements.txt
CHANGED
|
@@ -3,4 +3,5 @@ python-dotenv
|
|
| 3 |
gradio>=5.0.0
|
| 4 |
pypdf
|
| 5 |
openai
|
| 6 |
-
openai-agents
|
|
|
|
|
|
| 3 |
gradio>=5.0.0
|
| 4 |
pypdf
|
| 5 |
openai
|
| 6 |
+
openai-agents
|
| 7 |
+
duckduckgo-search
|