ChenyuRabbitLove
commited on
Commit
•
caa2389
1
Parent(s):
0675490
Update app.py
Browse files
app.py
CHANGED
@@ -16,10 +16,10 @@ def get_current_weather(location, unit="celsius"):
|
|
16 |
return json.dumps({"location": location, "temperature": "unknown"})
|
17 |
|
18 |
@retry(wait=wait_random_exponential(multiplier=1, max=40), stop=stop_after_attempt(3))
|
19 |
-
def chat_completion_request(messages, tools=None, tool_choice=None
|
20 |
try:
|
21 |
response = client.chat.completions.create(
|
22 |
-
model=
|
23 |
messages=messages,
|
24 |
tools=tools,
|
25 |
tool_choice=tool_choice,
|
|
|
16 |
return json.dumps({"location": location, "temperature": "unknown"})
|
17 |
|
18 |
@retry(wait=wait_random_exponential(multiplier=1, max=40), stop=stop_after_attempt(3))
|
19 |
+
def chat_completion_request(messages, tools=None, tool_choice=None):
|
20 |
try:
|
21 |
response = client.chat.completions.create(
|
22 |
+
model='gpt-4o',
|
23 |
messages=messages,
|
24 |
tools=tools,
|
25 |
tool_choice=tool_choice,
|