Skip to content

Commit 80b10ae

Browse files
authored
Use gpt-4o for function calling (vblagoje#7)
1 parent 1f3172c commit 80b10ae

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/test_openapi_client_live_openai.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def test_serperdev(self, test_files_path):
2323
credentials=os.getenv("SERPERDEV_API_KEY"))
2424
client = OpenAI(api_key=os.getenv("OPENAI_API_KEY"))
2525
response = client.chat.completions.create(
26-
model="gpt-3.5-turbo",
26+
model="gpt-4o",
2727
messages=[{"role": "user", "content": "Do a serperdev google search: Who was Nikola Tesla?"}],
2828
tools=config.get_tool_definitions(),
2929
)
@@ -108,7 +108,7 @@ def test_firecrawl(self):
108108
config = ClientConfig(openapi_spec=create_openapi_spec(openapi_spec_url), credentials=os.getenv("FIRECRAWL_API_KEY"))
109109
client = OpenAI(api_key=os.getenv("OPENAI_API_KEY"))
110110
response = client.chat.completions.create(
111-
model="gpt-3.5-turbo",
111+
model="gpt-4o",
112112
messages=[{"role": "user", "content": "Scrape URL: https://news.ycombinator.com/"}],
113113
tools=config.get_tool_definitions(),
114114
)
@@ -122,7 +122,7 @@ def test_firecrawl(self):
122122
# Only proceed with search test if scrape was successful
123123
top_k = 2
124124
response = client.chat.completions.create(
125-
model="gpt-3.5-turbo",
125+
model="gpt-4o",
126126
messages=[
127127
{
128128
"role": "user",

0 commit comments

Comments
 (0)