ChenyuRabbitLove
commited on
Commit
•
c785d28
1
Parent(s):
d11c9f2
Update app.py
Browse files
app.py
CHANGED
@@ -17,6 +17,7 @@ def get_current_weather(location, unit="celsius"):
|
|
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',
|
|
|
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 |
+
print(f'query message {messages}')
|
21 |
try:
|
22 |
response = client.chat.completions.create(
|
23 |
model='gpt-4o',
|