Spaces:
Running
Running
Upload app.py
Browse files
app.py
CHANGED
|
@@ -738,12 +738,8 @@ async def chat(req: ChatRequest):
|
|
| 738 |
resp = await client.chat.completions.create(
|
| 739 |
model=MODEL,
|
| 740 |
messages=messages,
|
| 741 |
-
max_tokens=600,
|
| 742 |
temperature=0.3,
|
| 743 |
-
tools=[{
|
| 744 |
-
"type": "web_search_preview",
|
| 745 |
-
}],
|
| 746 |
-
tool_choice="auto",
|
| 747 |
)
|
| 748 |
|
| 749 |
raw_reply = resp.choices[0].message.content or ""
|
|
|
|
| 738 |
resp = await client.chat.completions.create(
|
| 739 |
model=MODEL,
|
| 740 |
messages=messages,
|
| 741 |
+
max_tokens=600,
|
| 742 |
temperature=0.3,
|
|
|
|
|
|
|
|
|
|
|
|
|
| 743 |
)
|
| 744 |
|
| 745 |
raw_reply = resp.choices[0].message.content or ""
|