Spaces:
Sleeping
Sleeping
Update tools.py
Browse files
tools.py
CHANGED
@@ -1,3 +1,4 @@
|
|
|
|
1 |
import os
|
2 |
import openai
|
3 |
from smolagents.tools import Tool
|
@@ -36,7 +37,6 @@ class AnswerTool(Tool):
|
|
36 |
{"role": "system", "content": SYSTEM_PROMPT},
|
37 |
{"role": "user", "content": question},
|
38 |
]
|
39 |
-
# Use the v1 OpenAI API with GPT-4o
|
40 |
resp = openai.chat.completions.create(
|
41 |
model="gpt-4o",
|
42 |
messages=messages,
|
|
|
1 |
+
# tools.py
|
2 |
import os
|
3 |
import openai
|
4 |
from smolagents.tools import Tool
|
|
|
37 |
{"role": "system", "content": SYSTEM_PROMPT},
|
38 |
{"role": "user", "content": question},
|
39 |
]
|
|
|
40 |
resp = openai.chat.completions.create(
|
41 |
model="gpt-4o",
|
42 |
messages=messages,
|