From 2fc7afa8d550f9c01c18bc0dc7d7f554170b1d16 Mon Sep 17 00:00:00 2001 From: Mike Bird <63524998+MikeBirdTech@users.noreply.github.com> Date: Mon, 4 Nov 2024 13:28:47 -0500 Subject: [PATCH 1/3] "Added Open Interpreter profile for Anthropic's Claude 3.5 Haiku model." --- .../profiles/defaults/haiku.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 interpreter/terminal_interface/profiles/defaults/haiku.py diff --git a/interpreter/terminal_interface/profiles/defaults/haiku.py b/interpreter/terminal_interface/profiles/defaults/haiku.py new file mode 100644 index 0000000000..379e12d156 --- /dev/null +++ b/interpreter/terminal_interface/profiles/defaults/haiku.py @@ -0,0 +1,18 @@ +""" +This is an Open Interpreter profile. It configures Open Interpreter to run Anthropic's `Claude 3.5 Haiku` model. + +Make sure to set ANTHROPIC_API_KEY environment variable to your API key. + +This profile is optimized for quick, concise responses while maintaining high accuracy. +Learn more about Claude 3.5 Haiku: https://www.anthropic.com/news/claude-3-haiku +""" + +# Configure Open Interpreter +from interpreter import interpreter + +interpreter.llm.model = "claude-3-5-haiku-20241022" +interpreter.computer.import_computer_api = True +interpreter.llm.supports_functions = True +interpreter.llm.supports_vision = False +interpreter.llm.context_window = 200000 +interpreter.llm.max_tokens = 4096 From c551078f30f45b538a55337a87f189e0dc7c7eb2 Mon Sep 17 00:00:00 2001 From: Mike Bird <63524998+MikeBirdTech@users.noreply.github.com> Date: Mon, 4 Nov 2024 13:40:59 -0500 Subject: [PATCH 2/3] improve docstring --- interpreter/terminal_interface/profiles/defaults/haiku.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/interpreter/terminal_interface/profiles/defaults/haiku.py b/interpreter/terminal_interface/profiles/defaults/haiku.py index 379e12d156..7b80528dd4 100644 --- a/interpreter/terminal_interface/profiles/defaults/haiku.py +++ b/interpreter/terminal_interface/profiles/defaults/haiku.py @@ -4,7 +4,7 @@ Make sure to set ANTHROPIC_API_KEY environment variable to your API key. This profile is optimized for quick, concise responses while maintaining high accuracy. -Learn more about Claude 3.5 Haiku: https://www.anthropic.com/news/claude-3-haiku +Learn more about Claude 3.5 Haiku: https://www.anthropic.com/claude/haiku """ # Configure Open Interpreter From 03bd91fceaa5fab5bebccc56a778a9124647977a Mon Sep 17 00:00:00 2001 From: Mike Bird <63524998+MikeBirdTech@users.noreply.github.com> Date: Mon, 4 Nov 2024 14:40:52 -0500 Subject: [PATCH 3/3] update model name --- interpreter/terminal_interface/profiles/defaults/haiku.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/interpreter/terminal_interface/profiles/defaults/haiku.py b/interpreter/terminal_interface/profiles/defaults/haiku.py index 7b80528dd4..6e2e32bd14 100644 --- a/interpreter/terminal_interface/profiles/defaults/haiku.py +++ b/interpreter/terminal_interface/profiles/defaults/haiku.py @@ -10,7 +10,7 @@ # Configure Open Interpreter from interpreter import interpreter -interpreter.llm.model = "claude-3-5-haiku-20241022" +interpreter.llm.model = "anthropic/claude-3-5-haiku-20241022" interpreter.computer.import_computer_api = True interpreter.llm.supports_functions = True interpreter.llm.supports_vision = False