Skip to content

Commit

Permalink
Switch to gpt-4o, closes #28
Browse files Browse the repository at this point in the history
  • Loading branch information
simonw committed May 15, 2024
1 parent 92888b7 commit 210c1af
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion datasette_extract/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ def _write(conn):

async for chunk in await async_client.chat.completions.create(
stream=True,
model="gpt-4-turbo",
model="gpt-4o",
messages=messages,
tools=[
{
Expand Down
2 changes: 1 addition & 1 deletion tests/cassettes/test_web/test_extract_flow.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
interactions:
- request:
body: '{"messages": [{"role": "user", "content": "Sergei is 4, Cynthia is 7"}],
"model": "gpt-4-turbo-preview", "max_tokens": 4096, "stream": true, "tool_choice":
"model": "gpt-4o", "max_tokens": 4096, "stream": true, "tool_choice":
{"type": "function", "function": {"name": "extract_data"}}, "tools": [{"type":
"function", "function": {"name": "extract_data", "description": "Extract data
matching this schema", "parameters": {"type": "object", "properties": {"items":
Expand Down

0 comments on commit 210c1af

Please sign in to comment.