Skip to content

Commit 3d85e46

Browse files
committed
Updated usages of 3.5-turbo to 4o-mini and 4o-turbo to 4o
1 parent aebdd0f commit 3d85e46

File tree

9 files changed

+14
-13
lines changed

9 files changed

+14
-13
lines changed

interpreter/core/llm/llm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def __init__(self, interpreter):
5454
self.completions = fixed_litellm_completions
5555

5656
# Settings
57-
self.model = "gpt-4-turbo"
57+
self.model = "gpt-4o"
5858
self.temperature = 0
5959

6060
self.supports_vision = None # Will try to auto-detect

interpreter/terminal_interface/profiles/defaults/default.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
# LLM Settings
66
llm:
7-
model: "gpt-4-turbo"
7+
model: "gpt-4o"
88
temperature: 0
99
# api_key: ... # Your API key, if the API requires it
1010
# api_base: ... # The URL where an OpenAI-compatible server is running to handle LLM API requests
@@ -26,7 +26,7 @@ computer:
2626

2727
# To use a separate model for the `wtf` command:
2828
# wtf:
29-
# model: "gpt-3.5-turbo"
29+
# model: "gpt-4o-mini"
3030

3131
# Documentation
3232
# All options: https://docs.openinterpreter.com/settings

interpreter/terminal_interface/profiles/defaults/fast.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Remove the "#" before the settings below to use them.
44

55
llm:
6-
model: "gpt-3.5-turbo"
6+
model: "gpt-4o-mini"
77
temperature: 0
88
# api_key: ... # Your API key, if the API requires it
99
# api_base: ... # The URL where an OpenAI-compatible server is running to handle LLM API requests

interpreter/terminal_interface/profiles/defaults/snowpark.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
# LLM Settings
66
llm:
7-
model: "gpt-4-turbo"
7+
model: "gpt-4o"
88
temperature: 0
99
# api_key: ... # Your API key, if the API requires it
1010
# api_base: ... # The URL where an OpenAI-compatible server is running to handle LLM API requests

interpreter/terminal_interface/profiles/profiles.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -171,11 +171,11 @@ def apply_profile(interpreter, profile, profile_path):
171171

172172
try:
173173
if profile["llm"]["model"] == "gpt-4":
174-
text = text.replace("gpt-4", "gpt-4-turbo")
175-
profile["llm"]["model"] = "gpt-4-turbo"
174+
text = text.replace("gpt-4", "gpt-4o")
175+
profile["llm"]["model"] = "gpt-4o"
176176
elif profile["llm"]["model"] == "gpt-4-turbo-preview":
177-
text = text.replace("gpt-4-turbo-preview", "gpt-4-turbo")
178-
profile["llm"]["model"] = "gpt-4-turbo"
177+
text = text.replace("gpt-4-turbo-preview", "gpt-4o")
178+
profile["llm"]["model"] = "gpt-4o"
179179
except:
180180
raise
181181
pass # fine

interpreter/terminal_interface/start_terminal_interface.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ def start_terminal_interface(interpreter):
198198
{
199199
"name": "fast",
200200
"nickname": "f",
201-
"help_text": "runs `interpreter --model gpt-3.5-turbo` and asks OI to be extremely concise (shortcut for `interpreter --profile fast`)",
201+
"help_text": "runs `interpreter --model gpt-4o-mini` and asks OI to be extremely concise (shortcut for `interpreter --profile fast`)",
202202
"type": bool,
203203
},
204204
{

interpreter/terminal_interface/validate_llm_settings.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ def validate_llm_settings(interpreter):
3939
"gpt-4",
4040
"gpt-3.5-turbo",
4141
"gpt-4o",
42+
"gpt-4o-mini",
4243
"gpt-4-turbo",
4344
]:
4445
if (
@@ -52,7 +53,7 @@ def validate_llm_settings(interpreter):
5253
"""---
5354
> OpenAI API key not found
5455
55-
To use `gpt-4-turbo` (recommended) please provide an OpenAI API key.
56+
To use `gpt-4o` (recommended) please provide an OpenAI API key.
5657
5758
To use another language model, run `interpreter --local` or consult the documentation at [docs.openinterpreter.com](https://docs.openinterpreter.com/language-model-setup/).
5859

scripts/wtf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,7 @@ def get_lines_from_file(filename, line_number):
373373
if wtf_model:
374374
model = wtf_model
375375
else:
376-
model = profile.get("llm", {}).get("model", "gpt-3.5-turbo")
376+
model = profile.get("llm", {}).get("model", "gpt-4o-mini")
377377
except:
378378
model = "gpt-4o-mini"
379379

tests/config.test.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@ system_message: |
1313
In general, try to **make plans** with as few steps as possible. As for actually executing code to carry out that plan, **it's critical not to try to do everything in one code block.** You should try something, print information about it, then continue from there in tiny, informed steps. You will never get it on the first try, and attempting it in one go will often lead to errors you cant see.
1414
You are capable of **any** task.
1515
offline: false
16-
llm.model: "gpt-3.5-turbo"
16+
llm.model: "gpt-4o-mini"
1717
llm.temperature: 0.25
1818
verbose: true

0 commit comments

Comments
 (0)