Skip to content

Commit 1c0c337

Browse files
committed
Change default to gpt-4-turbo
1 parent ed03aa7 commit 1c0c337

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

interpreter/core/llm/llm.py

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

2727
# Settings
28-
self.model = "gpt-4"
28+
self.model = "gpt-4-turbo-preview"
2929
self.temperature = 0
3030
self.supports_vision = False
3131
self.supports_functions = None # Will try to auto-detect

interpreter/terminal_interface/profiles/defaults/default.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-4"
6+
model: "gpt-4-turbo-preview"
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

tests/test_interpreter.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,13 @@ def test_skills():
6767
for file in os.listdir(interpreter.computer.skills.path):
6868
print(file)
6969

70-
skills = interpreter.computer.skills.search(query)
70+
try:
71+
skills = interpreter.computer.skills.search(query)
72+
except ImportError:
73+
print("Attempting to install unstructured[all-docs]")
74+
import subprocess
75+
subprocess.run(['pip', 'install', 'unstructured[all-docs]'], check=True)
76+
skills = interpreter.computer.skills.search(query)
7177

7278
lowercase_skills = [skill[0].lower() + skill[1:] for skill in skills]
7379
output = "\\n".join(lowercase_skills)

0 commit comments

Comments
 (0)