Last active
March 18, 2024 21:05
-
-
Save lmcdougall/ba695540d41512ac99d3cb4acb3d64a5 to your computer and use it in GitHub Desktop.
Studio M2 Problem with Python
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Mac Studio M2 32GB | |
Darwin Studio 23.4.0 Darwin Kernel Version 23.4.0 | |
conda activate oit | |
interpreter | |
Model set to gpt-4 | |
Interpreter will require approval before running code. | |
Use interpreter -y to bypass this. | |
Press CTRL-C to exit. | |
What time is it in Seattle? | |
Python Version: 3.11.8 | |
Pip Version: 23.3.1 | |
Open-interpreter Version: cmd: Open Interpreter 0.2.2 New Computer Update | |
, pkg: 0.2.2 | |
OS Version and Architecture: macOS-14.4-arm64-arm-64bit | |
CPU Info: arm | |
RAM Info: 32.00 GB, used: 15.99, free: 0.47 | |
# Interpreter Info | |
Vision: False | |
Model: gpt-4 | |
Function calling: None | |
Context window: None | |
Max tokens: None | |
Auto run: False | |
API base: None | |
Offline: False | |
Curl output: Not local | |
# Messages | |
System Message: You are Open Interpreter, a world-class programmer that can complete any goal by executing code. | |
First, write a plan. **Always recap the plan between each code block** (you have extreme short-term memory loss, so you need to recap the plan between each message block to retain it). | |
When you execute code, it will be executed **on the user's machine**. The user has given you **full and complete permission** to execute any code necessary to complete the task. Execute the code. | |
If you want to send data between programming languages, save the data to a txt or json. | |
You can access the internet. Run **any code** to achieve the goal, and if at first you don't succeed, try again and again. | |
You can install new packages. | |
When a user refers to a filename, they're likely referring to an existing file in the directory you're currently executing code in. | |
Write messages to the user in Markdown. | |
In general, try to **make plans** with as few steps as possible. As for actually executing code to carry out that plan, for *stateful* languages (like python, javascript, shell, but NOT for html which starts from 0 every time) **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. | |
You are capable of **any** task. | |
# THE COMPUTER API | |
A python `computer` module is ALREADY IMPORTED, and can be used for many tasks: | |
```python | |
computer.browser.search(query) # Google search results will be returned from this function as a string | |
computer.files.edit(path_to_file, original_text, replacement_text) # Edit a file | |
computer.calendar.create_event(title="Meeting", start_date=datetime.datetime.now(), end=datetime.datetime.now() + datetime.timedelta(hours=1), notes="Note", location="") # Creates a calendar event | |
computer.calendar.get_events(start_date=datetime.date.today(), end_date=None) # Get events between dates. If end_date is None, only gets events for start_date | |
computer.calendar.delete_event(event_title="Meeting", start_date=datetime.datetime) # Delete a specific event with a matching title and start date, you may need to get use get_events() to find the specific event object first | |
computer.contacts.get_phone_number("John Doe") | |
computer.contacts.get_email_address("John Doe") | |
computer.mail.send("[email protected]", "Meeting Reminder", "Reminder that our meeting is at 3pm today.", ["path/to/attachment.pdf", "path/to/attachment2.pdf"]) # Send an email with a optional attachments | |
computer.mail.get(4, unread=True) # Returns the {number} of unread emails, or all emails if False is passed | |
computer.mail.unread_count() # Returns the number of unread emails | |
computer.sms.send("555-123-4567", "Hello from the computer!") # Send a text message. MUST be a phone number, so use computer.contacts.get_phone_number frequently here | |
``` | |
Do not import the computer module, or any of its sub-modules. They are already imported. | |
User Info{{import getpass | |
import os | |
import platform}} | |
Name: {{getpass.getuser()}} | |
CWD: {{os.getcwd()}} | |
SHELL: {{os.environ.get('SHELL')}} | |
OS: {{platform.system()}}" | |
{'role': 'user', 'type': 'message', 'content': 'What time is it in Seattle?'} | |
Traceback (most recent call last): | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/litellm/llms/openai.py", line 376, in completion | |
raise e | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/litellm/llms/openai.py", line 294, in completion | |
return self.streaming( | |
^^^^^^^^^^^^^^^ | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/litellm/llms/openai.py", line 476, in streaming | |
response = openai_client.chat.completions.create(**data, timeout=timeout) | |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/openai/_utils/_utils.py", line 275, in wrapper | |
return func(*args, **kwargs) | |
^^^^^^^^^^^^^^^^^^^^^ | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/openai/resources/chat/completions.py", line 667, in create | |
return self._post( | |
^^^^^^^^^^^ | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/openai/_base_client.py", line 1208, in post | |
return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls)) | |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/openai/_base_client.py", line 897, in request | |
return self._request( | |
^^^^^^^^^^^^^^ | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/openai/_base_client.py", line 988, in _request | |
raise self._make_status_error_from_response(err.response) from None | |
openai.AuthenticationError: Error code: 401 - {'error': {'message': 'Incorrect API key provided: x. You can find your API key at https://platform.openai.com/account/api-keys.', 'type': 'invalid_request_error', 'param': None, 'code': 'invalid_api_key'}} | |
During handling of the above exception, another exception occurred: | |
Traceback (most recent call last): | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/litellm/main.py", line 958, in completion | |
raise e | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/litellm/main.py", line 931, in completion | |
response = openai_chat_completions.completion( | |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/litellm/llms/openai.py", line 382, in completion | |
raise OpenAIError(status_code=e.status_code, message=str(e)) | |
litellm.llms.openai.OpenAIError: Error code: 401 - {'error': {'message': 'Incorrect API key provided: x. You can find your API key at https://platform.openai.com/account/api-keys.', 'type': 'invalid_request_error', 'param': None, 'code': 'invalid_api_key'}} | |
During handling of the above exception, another exception occurred: | |
Traceback (most recent call last): | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/interpreter/core/llm/llm.py", line 235, in fixed_litellm_completions | |
yield from litellm.completion(**params) | |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/litellm/utils.py", line 2732, in wrapper | |
raise e | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/litellm/utils.py", line 2633, in wrapper | |
result = original_function(*args, **kwargs) | |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/litellm/main.py", line 2056, in completion | |
raise exception_type( | |
^^^^^^^^^^^^^^^ | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/litellm/utils.py", line 8198, in exception_type | |
raise e | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/litellm/utils.py", line 7016, in exception_type | |
raise AuthenticationError( | |
litellm.exceptions.AuthenticationError: OpenAIException - Error code: 401 - {'error': {'message': 'Incorrect API key provided: x. You can find your API key at https://platform.openai.com/account/api-keys.', 'type': 'invalid_request_error', 'param': None, 'code': 'invalid_api_key'}} | |
During handling of the above exception, another exception occurred: | |
Traceback (most recent call last): | |
File "/opt/homebrew/anaconda3/envs/oit/bin/interpreter", line 8, in <module> | |
sys.exit(main()) | |
^^^^^^ | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/interpreter/terminal_interface/start_terminal_interface.py", line 415, in main | |
start_terminal_interface(interpreter) | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/interpreter/terminal_interface/start_terminal_interface.py", line 393, in start_terminal_interface | |
interpreter.chat() | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/interpreter/core/core.py", line 154, in chat | |
for _ in self._streaming_chat(message=message, display=display): | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/interpreter/core/core.py", line 183, in _streaming_chat | |
yield from terminal_interface(self, message) | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/interpreter/terminal_interface/terminal_interface.py", line 136, in terminal_interface | |
for chunk in interpreter.chat(message, display=False, stream=True): | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/interpreter/core/core.py", line 222, in _streaming_chat | |
yield from self._respond_and_store() | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/interpreter/core/core.py", line 268, in _respond_and_store | |
for chunk in respond(self): | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/interpreter/core/respond.py", line 68, in respond | |
for chunk in interpreter.llm.run(messages_for_llm): | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/interpreter/core/llm/llm.py", line 205, in run | |
yield from run_function_calling_llm(self, params) | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/interpreter/core/llm/run_function_calling_llm.py", line 44, in run_function_calling_llm | |
for chunk in llm.completions(**request_params): | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/interpreter/core/llm/llm.py", line 238, in fixed_litellm_completions | |
raise first_error | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/interpreter/core/llm/llm.py", line 219, in fixed_litellm_completions | |
yield from litellm.completion(**params) | |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/litellm/utils.py", line 2732, in wrapper | |
raise e | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/litellm/utils.py", line 2633, in wrapper | |
result = original_function(*args, **kwargs) | |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/litellm/main.py", line 2056, in completion | |
raise exception_type( | |
^^^^^^^^^^^^^^^ | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/litellm/utils.py", line 8198, in exception_type | |
raise e | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/litellm/utils.py", line 7047, in exception_type | |
raise RateLimitError( | |
litellm.exceptions.RateLimitError: OpenAIException - Error code: 429 - {'error': {'message': 'You exceeded your current quota, please check your plan and billing details. For more information on this error, read the docs: https://platform.openai.com/docs/guides/error-codes/api-errors.', 'type': 'insufficient_quota', 'param': None, 'code': 'insufficient_quota'}} | |
(oit) $ [IPKernelApp] WARNING | Parent appears to have exited, shutting down. | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
conda activate oit | |
;interpreter -y --local | |
Apple Metal GPU support successfully loaded | |
{"timestamp":1710793794,"level":"INFO","function":"server_cli","line":2457,"message":"build info","build":1500,"commit":"a30b324"} | |
{"timestamp":1710793794,"level":"INFO","function":"server_cli","line":2460,"message":"system info","n_threads":6,"n_threads_batch":-1,"total_threads":12,"system_info":"AVX = 0 | AVX_VNNI = 0 | AVX2 = 0 | AVX512 = 0 | AVX512_VBMI = 0 | AVX512_VNNI = 0 | FMA = 0 | NEON = 1 | ARM_FMA = 1 | F16C = 0 | FP16_VA = 0 | WASM_SIMD = 0 | BLAS = 0 | SSE3 = 0 | SSSE3 = 0 | VSX = 0 | "} | |
llama server listening at http://127.0.0.1:8080 | |
{"timestamp":1710793794,"level":"INFO","function":"server_cli","line":2594,"message":"HTTP server listening","port":"8080","hostname":"127.0.0.1"} | |
llama_model_loader: loaded meta data with 20 key-value pairs and 325 tensors from phi-2.Q4_K_M.gguf (version GGUF V3 (latest)) | |
llama_model_loader: Dumping metadata keys/values. Note: KV overrides do not apply in this output. | |
llama_model_loader: - kv 0: general.architecture str = phi2 | |
llama_model_loader: - kv 1: general.name str = Phi2 | |
llama_model_loader: - kv 2: phi2.context_length u32 = 2048 | |
llama_model_loader: - kv 3: phi2.embedding_length u32 = 2560 | |
llama_model_loader: - kv 4: phi2.feed_forward_length u32 = 10240 | |
llama_model_loader: - kv 5: phi2.block_count u32 = 32 | |
llama_model_loader: - kv 6: phi2.attention.head_count u32 = 32 | |
llama_model_loader: - kv 7: phi2.attention.head_count_kv u32 = 32 | |
llama_model_loader: - kv 8: phi2.attention.layer_norm_epsilon f32 = 0.000010 | |
llama_model_loader: - kv 9: phi2.rope.dimension_count u32 = 32 | |
llama_model_loader: - kv 10: general.file_type u32 = 15 | |
llama_model_loader: - kv 11: tokenizer.ggml.add_bos_token bool = false | |
llama_model_loader: - kv 12: tokenizer.ggml.model str = gpt2 | |
llama_model_loader: - kv 13: tokenizer.ggml.tokens arr[str,51200] = ["!", "\"", "#", "$", "%", "&", "'", ... | |
llama_model_loader: - kv 14: tokenizer.ggml.token_type arr[i32,51200] = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, ... | |
llama_model_loader: - kv 15: tokenizer.ggml.merges arr[str,50000] = ["Ġ t", "Ġ a", "h e", "i n", "r e",... | |
llama_model_loader: - kv 16: tokenizer.ggml.bos_token_id u32 = 50256 | |
llama_model_loader: - kv 17: tokenizer.ggml.eos_token_id u32 = 50256 | |
llama_model_loader: - kv 18: tokenizer.ggml.unknown_token_id u32 = 50256 | |
llama_model_loader: - kv 19: general.quantization_version u32 = 2 | |
llama_model_loader: - type f32: 195 tensors | |
llama_model_loader: - type q4_K: 81 tensors | |
llama_model_loader: - type q5_K: 32 tensors | |
llama_model_loader: - type q6_K: 17 tensors | |
llm_load_vocab: mismatch in special tokens definition ( 910/51200 vs 944/51200 ). | |
llm_load_print_meta: format = GGUF V3 (latest) | |
llm_load_print_meta: arch = phi2 | |
llm_load_print_meta: vocab type = BPE | |
llm_load_print_meta: n_vocab = 51200 | |
llm_load_print_meta: n_merges = 50000 | |
llm_load_print_meta: n_ctx_train = 2048 | |
llm_load_print_meta: n_embd = 2560 | |
llm_load_print_meta: n_head = 32 | |
llm_load_print_meta: n_head_kv = 32 | |
llm_load_print_meta: n_layer = 32 | |
llm_load_print_meta: n_rot = 32 | |
llm_load_print_meta: n_embd_head_k = 80 | |
llm_load_print_meta: n_embd_head_v = 80 | |
llm_load_print_meta: n_gqa = 1 | |
llm_load_print_meta: n_embd_k_gqa = 2560 | |
llm_load_print_meta: n_embd_v_gqa = 2560 | |
llm_load_print_meta: f_norm_eps = 1.0e-05 | |
llm_load_print_meta: f_norm_rms_eps = 0.0e+00 | |
llm_load_print_meta: f_clamp_kqv = 0.0e+00 | |
llm_load_print_meta: f_max_alibi_bias = 0.0e+00 | |
llm_load_print_meta: n_ff = 10240 | |
llm_load_print_meta: n_expert = 0 | |
llm_load_print_meta: n_expert_used = 0 | |
llm_load_print_meta: rope scaling = linear | |
llm_load_print_meta: freq_base_train = 10000.0 | |
llm_load_print_meta: freq_scale_train = 1 | |
llm_load_print_meta: n_yarn_orig_ctx = 2048 | |
llm_load_print_meta: rope_finetuned = unknown | |
llm_load_print_meta: model type = 3B | |
llm_load_print_meta: model ftype = Q4_K - Medium | |
llm_load_print_meta: model params = 2.78 B | |
llm_load_print_meta: model size = 1.66 GiB (5.14 BPW) | |
llm_load_print_meta: general.name = Phi2 | |
llm_load_print_meta: BOS token = 50256 '<|endoftext|>' | |
llm_load_print_meta: EOS token = 50256 '<|endoftext|>' | |
llm_load_print_meta: UNK token = 50256 '<|endoftext|>' | |
llm_load_print_meta: LF token = 128 'Ä' | |
llm_load_tensors: ggml ctx size = 0.25 MiB | |
ggml_backend_metal_buffer_from_ptr: allocated buffer, size = 1634.33 MiB, ( 1634.39 / 21845.34) | |
llm_load_tensors: offloading 32 repeating layers to GPU | |
llm_load_tensors: offloading non-repeating layers to GPU | |
llm_load_tensors: offloaded 33/33 layers to GPU | |
llm_load_tensors: Metal buffer size = 1634.32 MiB | |
llm_load_tensors: CPU buffer size = 70.31 MiB | |
.......................................................................................... | |
llama_new_context_with_model: n_ctx = 2048 | |
llama_new_context_with_model: freq_base = 10000.0 | |
llama_new_context_with_model: freq_scale = 1 | |
ggml_metal_init: allocating | |
ggml_metal_init: found device: Apple M2 Max | |
ggml_metal_init: picking default device: Apple M2 Max | |
ggml_metal_init: default.metallib not found, loading from source | |
ggml_metal_init: GGML_METAL_PATH_RESOURCES = nil | |
ggml_metal_init: loading '/var/folders/h7/cvnzd8pn3v77yd6nt8_t7j5c0000gp/T/.llamafile/ggml-metal.metal' | |
ggml_metal_init: GPU name: Apple M2 Max | |
ggml_metal_init: GPU family: MTLGPUFamilyApple8 (1008) | |
ggml_metal_init: GPU family: MTLGPUFamilyCommon3 (3003) | |
ggml_metal_init: GPU family: MTLGPUFamilyMetal3 (5001) | |
ggml_metal_init: simdgroup reduction support = true | |
ggml_metal_init: simdgroup matrix mul. support = true | |
ggml_metal_init: hasUnifiedMemory = true | |
ggml_metal_init: recommendedMaxWorkingSetSize = 22906.50 MB | |
ggml_backend_metal_buffer_type_alloc_buffer: allocated buffer, size = 640.00 MiB, ( 2275.95 / 21845.34) | |
llama_kv_cache_init: Metal KV buffer size = 640.00 MiB | |
llama_new_context_with_model: KV self size = 640.00 MiB, K (f16): 320.00 MiB, V (f16): 320.00 MiB | |
llama_new_context_with_model: CPU input buffer size = 9.01 MiB | |
ggml_backend_metal_buffer_type_alloc_buffer: allocated buffer, size = 0.02 MiB, ( 2275.97 / 21845.34) | |
ggml_backend_metal_buffer_type_alloc_buffer: allocated buffer, size = 178.20 MiB, ( 2454.16 / 21845.34) | |
llama_new_context_with_model: Metal compute buffer size = 178.20 MiB | |
llama_new_context_with_model: CPU compute buffer size = 5.50 MiB | |
llama_new_context_with_model: graph splits (measure): 3 | |
Available slots: | |
-> Slot 0 - max context: 2048 | |
{"timestamp":1710793797,"level":"INFO","function":"server_cli","line":2615,"message":"model loaded"} | |
opening browser tab... (pass --nobrowser to disable) | |
all slots are idle and system prompt is empty, clear the KV cache | |
{"timestamp":1710793797,"level":"INFO","function":"log_server_request","line":2386,"message":"request","remote_addr":"127.0.0.1","remote_port":55675,"status":200,"method":"GET","path":"/","params":{}} | |
{"timestamp":1710793797,"level":"INFO","function":"log_server_request","line":2386,"message":"request","remote_addr":"127.0.0.1","remote_port":55675,"status":200,"method":"GET","path":"/index.js","params":{}} | |
{"timestamp":1710793797,"level":"INFO","function":"log_server_request","line":2386,"message":"request","remote_addr":"127.0.0.1","remote_port":55676,"status":200,"method":"GET","path":"/completion.js","params":{}} | |
{"timestamp":1710793797,"level":"INFO","function":"log_server_request","line":2386,"message":"request","remote_addr":"127.0.0.1","remote_port":55677,"status":200,"method":"GET","path":"/json-schema-to-grammar.mjs","params":{}} | |
{"timestamp":1710793805,"level":"INFO","function":"log_server_request","line":2386,"message":"request","remote_addr":"","remote_port":-1,"status":400,"method":"","path":"","params":{}} | |
{"timestamp":1710793806,"level":"INFO","function":"log_server_request","line":2386,"message":"request","remote_addr":"","remote_port":-1,"status":400,"method":"","path":"","params":{}} | |
{"timestamp":1710793808,"level":"INFO","function":"log_server_request","line":2386,"message":"request","remote_addr":"","remote_port":-1,"status":400,"method":"","path":"","params":{}} | |
{"timestamp":1710793808,"level":"INFO","function":"log_server_request","line":2386,"message":"request","remote_addr":"","remote_port":-1,"status":400,"method":"","path":"","params":{}} | |
{"timestamp":1710793809,"level":"INFO","function":"log_server_request","line":2386,"message":"request","remote_addr":"","remote_port":-1,"status":400,"method":"","path":"","params":{}} | |
{"timestamp":1710793810,"level":"INFO","function":"log_server_request","line":2386,"message":"request","remote_addr":"","remote_port":-1,"status":400,"method":"","path":"","params":{}} | |
Traceback (most recent call last): | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/httpx/_transports/default.py", line 69, in map_httpcore_exceptions | |
yield | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/httpx/_transports/default.py", line 233, in handle_request | |
resp = self._pool.handle_request(req) | |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/httpcore/_sync/connection_pool.py", line 216, in handle_request | |
raise exc from None | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/httpcore/_sync/connection_pool.py", line 196, in handle_request | |
response = connection.handle_request( | |
^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/httpcore/_sync/connection.py", line 99, in handle_request | |
raise exc | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/httpcore/_sync/connection.py", line 76, in handle_request | |
stream = self._connect(request) | |
^^^^^^^^^^^^^^^^^^^^^^ | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/httpcore/_sync/connection.py", line 154, in _connect | |
stream = stream.start_tls(**kwargs) | |
^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/httpcore/_backends/sync.py", line 152, in start_tls | |
with map_exceptions(exc_map): | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/contextlib.py", line 158, in __exit__ | |
self.gen.throw(typ, value, traceback) | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions | |
raise to_exc(exc) from exc | |
httpcore.ConnectError: [SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:1006) | |
The above exception was the direct cause of the following exception: | |
Traceback (most recent call last): | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/openai/_base_client.py", line 926, in _request | |
response = self._client.send( | |
^^^^^^^^^^^^^^^^^^ | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/httpx/_client.py", line 914, in send | |
response = self._send_handling_auth( | |
^^^^^^^^^^^^^^^^^^^^^^^^^ | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/httpx/_client.py", line 942, in _send_handling_auth | |
response = self._send_handling_redirects( | |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/httpx/_client.py", line 979, in _send_handling_redirects | |
response = self._send_single_request(request) | |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/httpx/_client.py", line 1015, in _send_single_request | |
response = transport.handle_request(request) | |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/httpx/_transports/default.py", line 232, in handle_request | |
with map_httpcore_exceptions(): | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/contextlib.py", line 158, in __exit__ | |
self.gen.throw(typ, value, traceback) | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/httpx/_transports/default.py", line 86, in map_httpcore_exceptions | |
raise mapped_exc(message) from exc | |
httpx.ConnectError: [SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:1006) | |
The above exception was the direct cause of the following exception: | |
Traceback (most recent call last): | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/litellm/llms/openai.py", line 376, in completion | |
raise e | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/litellm/llms/openai.py", line 294, in completion | |
return self.streaming( | |
^^^^^^^^^^^^^^^ | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/litellm/llms/openai.py", line 476, in streaming | |
response = openai_client.chat.completions.create(**data, timeout=timeout) | |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/openai/_utils/_utils.py", line 275, in wrapper | |
return func(*args, **kwargs) | |
^^^^^^^^^^^^^^^^^^^^^ | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/openai/resources/chat/completions.py", line 667, in create | |
return self._post( | |
^^^^^^^^^^^ | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/openai/_base_client.py", line 1208, in post | |
return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls)) | |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/openai/_base_client.py", line 897, in request | |
return self._request( | |
^^^^^^^^^^^^^^ | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/openai/_base_client.py", line 950, in _request | |
return self._retry_request( | |
^^^^^^^^^^^^^^^^^^^^ | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/openai/_base_client.py", line 1021, in _retry_request | |
return self._request( | |
^^^^^^^^^^^^^^ | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/openai/_base_client.py", line 950, in _request | |
return self._retry_request( | |
^^^^^^^^^^^^^^^^^^^^ | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/openai/_base_client.py", line 1021, in _retry_request | |
return self._request( | |
^^^^^^^^^^^^^^ | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/openai/_base_client.py", line 960, in _request | |
raise APIConnectionError(request=request) from err | |
openai.APIConnectionError: Connection error. | |
During handling of the above exception, another exception occurred: | |
Traceback (most recent call last): | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/litellm/main.py", line 958, in completion | |
raise e | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/litellm/main.py", line 931, in completion | |
response = openai_chat_completions.completion( | |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/litellm/llms/openai.py", line 384, in completion | |
raise OpenAIError(status_code=500, message=traceback.format_exc()) | |
litellm.llms.openai.OpenAIError: Traceback (most recent call last): | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/httpx/_transports/default.py", line 69, in map_httpcore_exceptions | |
yield | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/httpx/_transports/default.py", line 233, in handle_request | |
resp = self._pool.handle_request(req) | |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/httpcore/_sync/connection_pool.py", line 216, in handle_request | |
raise exc from None | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/httpcore/_sync/connection_pool.py", line 196, in handle_request | |
response = connection.handle_request( | |
^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/httpcore/_sync/connection.py", line 99, in handle_request | |
raise exc | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/httpcore/_sync/connection.py", line 76, in handle_request | |
stream = self._connect(request) | |
^^^^^^^^^^^^^^^^^^^^^^ | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/httpcore/_sync/connection.py", line 154, in _connect | |
stream = stream.start_tls(**kwargs) | |
^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/httpcore/_backends/sync.py", line 152, in start_tls | |
with map_exceptions(exc_map): | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/contextlib.py", line 158, in __exit__ | |
self.gen.throw(typ, value, traceback) | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions | |
raise to_exc(exc) from exc | |
httpcore.ConnectError: [SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:1006) | |
The above exception was the direct cause of the following exception: | |
Traceback (most recent call last): | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/openai/_base_client.py", line 926, in _request | |
response = self._client.send( | |
^^^^^^^^^^^^^^^^^^ | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/httpx/_client.py", line 914, in send | |
response = self._send_handling_auth( | |
^^^^^^^^^^^^^^^^^^^^^^^^^ | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/httpx/_client.py", line 942, in _send_handling_auth | |
response = self._send_handling_redirects( | |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/httpx/_client.py", line 979, in _send_handling_redirects | |
response = self._send_single_request(request) | |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/httpx/_client.py", line 1015, in _send_single_request | |
response = transport.handle_request(request) | |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/httpx/_transports/default.py", line 232, in handle_request | |
with map_httpcore_exceptions(): | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/contextlib.py", line 158, in __exit__ | |
self.gen.throw(typ, value, traceback) | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/httpx/_transports/default.py", line 86, in map_httpcore_exceptions | |
raise mapped_exc(message) from exc | |
httpx.ConnectError: [SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:1006) | |
The above exception was the direct cause of the following exception: | |
Traceback (most recent call last): | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/litellm/llms/openai.py", line 376, in completion | |
raise e | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/litellm/llms/openai.py", line 294, in completion | |
return self.streaming( | |
^^^^^^^^^^^^^^^ | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/litellm/llms/openai.py", line 476, in streaming | |
response = openai_client.chat.completions.create(**data, timeout=timeout) | |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/openai/_utils/_utils.py", line 275, in wrapper | |
return func(*args, **kwargs) | |
^^^^^^^^^^^^^^^^^^^^^ | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/openai/resources/chat/completions.py", line 667, in create | |
return self._post( | |
^^^^^^^^^^^ | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/openai/_base_client.py", line 1208, in post | |
return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls)) | |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/openai/_base_client.py", line 897, in request | |
return self._request( | |
^^^^^^^^^^^^^^ | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/openai/_base_client.py", line 950, in _request | |
return self._retry_request( | |
^^^^^^^^^^^^^^^^^^^^ | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/openai/_base_client.py", line 1021, in _retry_request | |
return self._request( | |
^^^^^^^^^^^^^^ | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/openai/_base_client.py", line 950, in _request | |
return self._retry_request( | |
^^^^^^^^^^^^^^^^^^^^ | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/openai/_base_client.py", line 1021, in _retry_request | |
return self._request( | |
^^^^^^^^^^^^^^ | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/openai/_base_client.py", line 960, in _request | |
raise APIConnectionError(request=request) from err | |
openai.APIConnectionError: Connection error. | |
During handling of the above exception, another exception occurred: | |
Traceback (most recent call last): | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/interpreter/core/llm/llm.py", line 235, in fixed_litellm_completions | |
yield from litellm.completion(**params) | |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/litellm/utils.py", line 2732, in wrapper | |
raise e | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/litellm/utils.py", line 2633, in wrapper | |
result = original_function(*args, **kwargs) | |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/litellm/main.py", line 2056, in completion | |
raise exception_type( | |
^^^^^^^^^^^^^^^ | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/litellm/utils.py", line 8198, in exception_type | |
raise e | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/litellm/utils.py", line 7070, in exception_type | |
raise APIError( | |
litellm.exceptions.APIError: OpenAIException - Traceback (most recent call last): | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/httpx/_transports/default.py", line 69, in map_httpcore_exceptions | |
yield | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/httpx/_transports/default.py", line 233, in handle_request | |
resp = self._pool.handle_request(req) | |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/httpcore/_sync/connection_pool.py", line 216, in handle_request | |
raise exc from None | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/httpcore/_sync/connection_pool.py", line 196, in handle_request | |
response = connection.handle_request( | |
^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/httpcore/_sync/connection.py", line 99, in handle_request | |
raise exc | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/httpcore/_sync/connection.py", line 76, in handle_request | |
stream = self._connect(request) | |
^^^^^^^^^^^^^^^^^^^^^^ | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/httpcore/_sync/connection.py", line 154, in _connect | |
stream = stream.start_tls(**kwargs) | |
^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/httpcore/_backends/sync.py", line 152, in start_tls | |
with map_exceptions(exc_map): | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/contextlib.py", line 158, in __exit__ | |
self.gen.throw(typ, value, traceback) | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions | |
raise to_exc(exc) from exc | |
httpcore.ConnectError: [SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:1006) | |
The above exception was the direct cause of the following exception: | |
Traceback (most recent call last): | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/openai/_base_client.py", line 926, in _request | |
response = self._client.send( | |
^^^^^^^^^^^^^^^^^^ | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/httpx/_client.py", line 914, in send | |
response = self._send_handling_auth( | |
^^^^^^^^^^^^^^^^^^^^^^^^^ | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/httpx/_client.py", line 942, in _send_handling_auth | |
response = self._send_handling_redirects( | |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/httpx/_client.py", line 979, in _send_handling_redirects | |
response = self._send_single_request(request) | |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/httpx/_client.py", line 1015, in _send_single_request | |
response = transport.handle_request(request) | |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/httpx/_transports/default.py", line 232, in handle_request | |
with map_httpcore_exceptions(): | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/contextlib.py", line 158, in __exit__ | |
self.gen.throw(typ, value, traceback) | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/httpx/_transports/default.py", line 86, in map_httpcore_exceptions | |
raise mapped_exc(message) from exc | |
httpx.ConnectError: [SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:1006) | |
The above exception was the direct cause of the following exception: | |
Traceback (most recent call last): | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/litellm/llms/openai.py", line 376, in completion | |
raise e | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/litellm/llms/openai.py", line 294, in completion | |
return self.streaming( | |
^^^^^^^^^^^^^^^ | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/litellm/llms/openai.py", line 476, in streaming | |
response = openai_client.chat.completions.create(**data, timeout=timeout) | |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/openai/_utils/_utils.py", line 275, in wrapper | |
return func(*args, **kwargs) | |
^^^^^^^^^^^^^^^^^^^^^ | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/openai/resources/chat/completions.py", line 667, in create | |
return self._post( | |
^^^^^^^^^^^ | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/openai/_base_client.py", line 1208, in post | |
return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls)) | |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/openai/_base_client.py", line 897, in request | |
return self._request( | |
^^^^^^^^^^^^^^ | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/openai/_base_client.py", line 950, in _request | |
return self._retry_request( | |
^^^^^^^^^^^^^^^^^^^^ | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/openai/_base_client.py", line 1021, in _retry_request | |
return self._request( | |
^^^^^^^^^^^^^^ | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/openai/_base_client.py", line 950, in _request | |
return self._retry_request( | |
^^^^^^^^^^^^^^^^^^^^ | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/openai/_base_client.py", line 1021, in _retry_request | |
return self._request( | |
^^^^^^^^^^^^^^ | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/openai/_base_client.py", line 960, in _request | |
raise APIConnectionError(request=request) from err | |
openai.APIConnectionError: Connection error. | |
During handling of the above exception, another exception occurred: | |
Traceback (most recent call last): | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/interpreter/core/respond.py", line 68, in respond | |
for chunk in interpreter.llm.run(messages_for_llm): | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/interpreter/core/llm/llm.py", line 207, in run | |
yield from run_text_llm(self, params) | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/interpreter/core/llm/run_text_llm.py", line 19, in run_text_llm | |
for chunk in llm.completions(**params): | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/interpreter/core/llm/llm.py", line 238, in fixed_litellm_completions | |
raise first_error | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/interpreter/core/llm/llm.py", line 219, in fixed_litellm_completions | |
yield from litellm.completion(**params) | |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/litellm/utils.py", line 2732, in wrapper | |
raise e | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/litellm/utils.py", line 2633, in wrapper | |
result = original_function(*args, **kwargs) | |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/litellm/main.py", line 2056, in completion | |
raise exception_type( | |
^^^^^^^^^^^^^^^ | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/litellm/utils.py", line 8198, in exception_type | |
raise e | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/litellm/utils.py", line 7070, in exception_type | |
raise APIError( | |
litellm.exceptions.APIError: OpenAIException - Traceback (most recent call last): | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/httpx/_transports/default.py", line 69, in map_httpcore_exceptions | |
yield | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/httpx/_transports/default.py", line 233, in handle_request | |
resp = self._pool.handle_request(req) | |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/httpcore/_sync/connection_pool.py", line 216, in handle_request | |
raise exc from None | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/httpcore/_sync/connection_pool.py", line 196, in handle_request | |
response = connection.handle_request( | |
^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/httpcore/_sync/connection.py", line 99, in handle_request | |
raise exc | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/httpcore/_sync/connection.py", line 76, in handle_request | |
stream = self._connect(request) | |
^^^^^^^^^^^^^^^^^^^^^^ | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/httpcore/_sync/connection.py", line 154, in _connect | |
stream = stream.start_tls(**kwargs) | |
^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/httpcore/_backends/sync.py", line 152, in start_tls | |
with map_exceptions(exc_map): | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/contextlib.py", line 158, in __exit__ | |
self.gen.throw(typ, value, traceback) | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions | |
raise to_exc(exc) from exc | |
httpcore.ConnectError: [SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:1006) | |
The above exception was the direct cause of the following exception: | |
Traceback (most recent call last): | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/openai/_base_client.py", line 926, in _request | |
response = self._client.send( | |
^^^^^^^^^^^^^^^^^^ | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/httpx/_client.py", line 914, in send | |
response = self._send_handling_auth( | |
^^^^^^^^^^^^^^^^^^^^^^^^^ | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/httpx/_client.py", line 942, in _send_handling_auth | |
response = self._send_handling_redirects( | |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/httpx/_client.py", line 979, in _send_handling_redirects | |
response = self._send_single_request(request) | |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/httpx/_client.py", line 1015, in _send_single_request | |
response = transport.handle_request(request) | |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/httpx/_transports/default.py", line 232, in handle_request | |
with map_httpcore_exceptions(): | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/contextlib.py", line 158, in __exit__ | |
self.gen.throw(typ, value, traceback) | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/httpx/_transports/default.py", line 86, in map_httpcore_exceptions | |
raise mapped_exc(message) from exc | |
httpx.ConnectError: [SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:1006) | |
The above exception was the direct cause of the following exception: | |
Traceback (most recent call last): | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/litellm/llms/openai.py", line 376, in completion | |
raise e | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/litellm/llms/openai.py", line 294, in completion | |
return self.streaming( | |
^^^^^^^^^^^^^^^ | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/litellm/llms/openai.py", line 476, in streaming | |
response = openai_client.chat.completions.create(**data, timeout=timeout) | |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/openai/_utils/_utils.py", line 275, in wrapper | |
return func(*args, **kwargs) | |
^^^^^^^^^^^^^^^^^^^^^ | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/openai/resources/chat/completions.py", line 667, in create | |
return self._post( | |
^^^^^^^^^^^ | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/openai/_base_client.py", line 1208, in post | |
return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls)) | |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/openai/_base_client.py", line 897, in request | |
return self._request( | |
^^^^^^^^^^^^^^ | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/openai/_base_client.py", line 950, in _request | |
return self._retry_request( | |
^^^^^^^^^^^^^^^^^^^^ | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/openai/_base_client.py", line 1021, in _retry_request | |
return self._request( | |
^^^^^^^^^^^^^^ | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/openai/_base_client.py", line 950, in _request | |
return self._retry_request( | |
^^^^^^^^^^^^^^^^^^^^ | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/openai/_base_client.py", line 1021, in _retry_request | |
return self._request( | |
^^^^^^^^^^^^^^ | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/openai/_base_client.py", line 960, in _request | |
raise APIConnectionError(request=request) from err | |
openai.APIConnectionError: Connection error. | |
Python Version: 3.11.8 | |
Pip Version: 23.3.1 | |
Open-interpreter Version: cmd: Open Interpreter 0.2.2 New Computer Update | |
, pkg: 0.2.2 | |
OS Version and Architecture: macOS-14.4-arm64-arm-64bit | |
CPU Info: arm | |
RAM Info: 32.00 GB, used: 15.58, free: 0.61 | |
# Interpreter Info | |
Vision: False | |
Model: local | |
Function calling: False | |
Context window: 3000 | |
Max tokens: 1000 | |
Auto run: True | |
API base: https://localhost:8080/v1 | |
Offline: True | |
Curl output: [Errno 2] No such file or directory: 'curl https://localhost:8080/v1' | |
# Messages | |
System Message: You are Open Interpreter, a world-class programmer that can execute code on the user's machine. | |
{'role': 'user', 'type': 'message', 'content': 'No entry from user - please suggest something to enter.'} | |
Traceback (most recent call last): | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/httpx/_transports/default.py", line 69, in map_httpcore_exceptions | |
yield | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/httpx/_transports/default.py", line 233, in handle_request | |
resp = self._pool.handle_request(req) | |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/httpcore/_sync/connection_pool.py", line 216, in handle_request | |
raise exc from None | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/httpcore/_sync/connection_pool.py", line 196, in handle_request | |
response = connection.handle_request( | |
^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/httpcore/_sync/connection.py", line 99, in handle_request | |
raise exc | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/httpcore/_sync/connection.py", line 76, in handle_request | |
stream = self._connect(request) | |
^^^^^^^^^^^^^^^^^^^^^^ | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/httpcore/_sync/connection.py", line 154, in _connect | |
stream = stream.start_tls(**kwargs) | |
^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/httpcore/_backends/sync.py", line 152, in start_tls | |
with map_exceptions(exc_map): | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/contextlib.py", line 158, in __exit__ | |
self.gen.throw(typ, value, traceback) | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions | |
raise to_exc(exc) from exc | |
httpcore.ConnectError: [SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:1006) | |
The above exception was the direct cause of the following exception: | |
Traceback (most recent call last): | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/openai/_base_client.py", line 926, in _request | |
response = self._client.send( | |
^^^^^^^^^^^^^^^^^^ | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/httpx/_client.py", line 914, in send | |
response = self._send_handling_auth( | |
^^^^^^^^^^^^^^^^^^^^^^^^^ | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/httpx/_client.py", line 942, in _send_handling_auth | |
response = self._send_handling_redirects( | |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/httpx/_client.py", line 979, in _send_handling_redirects | |
response = self._send_single_request(request) | |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/httpx/_client.py", line 1015, in _send_single_request | |
response = transport.handle_request(request) | |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/httpx/_transports/default.py", line 232, in handle_request | |
with map_httpcore_exceptions(): | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/contextlib.py", line 158, in __exit__ | |
self.gen.throw(typ, value, traceback) | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/httpx/_transports/default.py", line 86, in map_httpcore_exceptions | |
raise mapped_exc(message) from exc | |
httpx.ConnectError: [SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:1006) | |
The above exception was the direct cause of the following exception: | |
Traceback (most recent call last): | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/litellm/llms/openai.py", line 376, in completion | |
raise e | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/litellm/llms/openai.py", line 294, in completion | |
return self.streaming( | |
^^^^^^^^^^^^^^^ | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/litellm/llms/openai.py", line 476, in streaming | |
response = openai_client.chat.completions.create(**data, timeout=timeout) | |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/openai/_utils/_utils.py", line 275, in wrapper | |
return func(*args, **kwargs) | |
^^^^^^^^^^^^^^^^^^^^^ | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/openai/resources/chat/completions.py", line 667, in create | |
return self._post( | |
^^^^^^^^^^^ | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/openai/_base_client.py", line 1208, in post | |
return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls)) | |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/openai/_base_client.py", line 897, in request | |
return self._request( | |
^^^^^^^^^^^^^^ | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/openai/_base_client.py", line 950, in _request | |
return self._retry_request( | |
^^^^^^^^^^^^^^^^^^^^ | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/openai/_base_client.py", line 1021, in _retry_request | |
return self._request( | |
^^^^^^^^^^^^^^ | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/openai/_base_client.py", line 950, in _request | |
return self._retry_request( | |
^^^^^^^^^^^^^^^^^^^^ | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/openai/_base_client.py", line 1021, in _retry_request | |
return self._request( | |
^^^^^^^^^^^^^^ | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/openai/_base_client.py", line 960, in _request | |
raise APIConnectionError(request=request) from err | |
openai.APIConnectionError: Connection error. | |
During handling of the above exception, another exception occurred: | |
Traceback (most recent call last): | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/litellm/main.py", line 958, in completion | |
raise e | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/litellm/main.py", line 931, in completion | |
response = openai_chat_completions.completion( | |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/litellm/llms/openai.py", line 384, in completion | |
raise OpenAIError(status_code=500, message=traceback.format_exc()) | |
litellm.llms.openai.OpenAIError: Traceback (most recent call last): | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/httpx/_transports/default.py", line 69, in map_httpcore_exceptions | |
yield | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/httpx/_transports/default.py", line 233, in handle_request | |
resp = self._pool.handle_request(req) | |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/httpcore/_sync/connection_pool.py", line 216, in handle_request | |
raise exc from None | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/httpcore/_sync/connection_pool.py", line 196, in handle_request | |
response = connection.handle_request( | |
^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/httpcore/_sync/connection.py", line 99, in handle_request | |
raise exc | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/httpcore/_sync/connection.py", line 76, in handle_request | |
stream = self._connect(request) | |
^^^^^^^^^^^^^^^^^^^^^^ | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/httpcore/_sync/connection.py", line 154, in _connect | |
stream = stream.start_tls(**kwargs) | |
^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/httpcore/_backends/sync.py", line 152, in start_tls | |
with map_exceptions(exc_map): | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/contextlib.py", line 158, in __exit__ | |
self.gen.throw(typ, value, traceback) | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions | |
raise to_exc(exc) from exc | |
httpcore.ConnectError: [SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:1006) | |
The above exception was the direct cause of the following exception: | |
Traceback (most recent call last): | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/openai/_base_client.py", line 926, in _request | |
response = self._client.send( | |
^^^^^^^^^^^^^^^^^^ | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/httpx/_client.py", line 914, in send | |
response = self._send_handling_auth( | |
^^^^^^^^^^^^^^^^^^^^^^^^^ | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/httpx/_client.py", line 942, in _send_handling_auth | |
response = self._send_handling_redirects( | |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/httpx/_client.py", line 979, in _send_handling_redirects | |
response = self._send_single_request(request) | |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/httpx/_client.py", line 1015, in _send_single_request | |
response = transport.handle_request(request) | |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/httpx/_transports/default.py", line 232, in handle_request | |
with map_httpcore_exceptions(): | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/contextlib.py", line 158, in __exit__ | |
self.gen.throw(typ, value, traceback) | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/httpx/_transports/default.py", line 86, in map_httpcore_exceptions | |
raise mapped_exc(message) from exc | |
httpx.ConnectError: [SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:1006) | |
The above exception was the direct cause of the following exception: | |
Traceback (most recent call last): | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/litellm/llms/openai.py", line 376, in completion | |
raise e | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/litellm/llms/openai.py", line 294, in completion | |
return self.streaming( | |
^^^^^^^^^^^^^^^ | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/litellm/llms/openai.py", line 476, in streaming | |
response = openai_client.chat.completions.create(**data, timeout=timeout) | |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/openai/_utils/_utils.py", line 275, in wrapper | |
return func(*args, **kwargs) | |
^^^^^^^^^^^^^^^^^^^^^ | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/openai/resources/chat/completions.py", line 667, in create | |
return self._post( | |
^^^^^^^^^^^ | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/openai/_base_client.py", line 1208, in post | |
return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls)) | |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/openai/_base_client.py", line 897, in request | |
return self._request( | |
^^^^^^^^^^^^^^ | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/openai/_base_client.py", line 950, in _request | |
return self._retry_request( | |
^^^^^^^^^^^^^^^^^^^^ | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/openai/_base_client.py", line 1021, in _retry_request | |
return self._request( | |
^^^^^^^^^^^^^^ | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/openai/_base_client.py", line 950, in _request | |
return self._retry_request( | |
^^^^^^^^^^^^^^^^^^^^ | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/openai/_base_client.py", line 1021, in _retry_request | |
return self._request( | |
^^^^^^^^^^^^^^ | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/openai/_base_client.py", line 960, in _request | |
raise APIConnectionError(request=request) from err | |
openai.APIConnectionError: Connection error. | |
During handling of the above exception, another exception occurred: | |
Traceback (most recent call last): | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/interpreter/core/llm/llm.py", line 235, in fixed_litellm_completions | |
yield from litellm.completion(**params) | |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/litellm/utils.py", line 2732, in wrapper | |
raise e | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/litellm/utils.py", line 2633, in wrapper | |
result = original_function(*args, **kwargs) | |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/litellm/main.py", line 2056, in completion | |
raise exception_type( | |
^^^^^^^^^^^^^^^ | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/litellm/utils.py", line 8198, in exception_type | |
raise e | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/litellm/utils.py", line 7070, in exception_type | |
raise APIError( | |
litellm.exceptions.APIError: OpenAIException - Traceback (most recent call last): | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/httpx/_transports/default.py", line 69, in map_httpcore_exceptions | |
yield | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/httpx/_transports/default.py", line 233, in handle_request | |
resp = self._pool.handle_request(req) | |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/httpcore/_sync/connection_pool.py", line 216, in handle_request | |
raise exc from None | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/httpcore/_sync/connection_pool.py", line 196, in handle_request | |
response = connection.handle_request( | |
^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/httpcore/_sync/connection.py", line 99, in handle_request | |
raise exc | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/httpcore/_sync/connection.py", line 76, in handle_request | |
stream = self._connect(request) | |
^^^^^^^^^^^^^^^^^^^^^^ | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/httpcore/_sync/connection.py", line 154, in _connect | |
stream = stream.start_tls(**kwargs) | |
^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/httpcore/_backends/sync.py", line 152, in start_tls | |
with map_exceptions(exc_map): | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/contextlib.py", line 158, in __exit__ | |
self.gen.throw(typ, value, traceback) | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions | |
raise to_exc(exc) from exc | |
httpcore.ConnectError: [SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:1006) | |
The above exception was the direct cause of the following exception: | |
Traceback (most recent call last): | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/openai/_base_client.py", line 926, in _request | |
response = self._client.send( | |
^^^^^^^^^^^^^^^^^^ | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/httpx/_client.py", line 914, in send | |
response = self._send_handling_auth( | |
^^^^^^^^^^^^^^^^^^^^^^^^^ | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/httpx/_client.py", line 942, in _send_handling_auth | |
response = self._send_handling_redirects( | |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/httpx/_client.py", line 979, in _send_handling_redirects | |
response = self._send_single_request(request) | |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/httpx/_client.py", line 1015, in _send_single_request | |
response = transport.handle_request(request) | |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/httpx/_transports/default.py", line 232, in handle_request | |
with map_httpcore_exceptions(): | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/contextlib.py", line 158, in __exit__ | |
self.gen.throw(typ, value, traceback) | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/httpx/_transports/default.py", line 86, in map_httpcore_exceptions | |
raise mapped_exc(message) from exc | |
httpx.ConnectError: [SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:1006) | |
The above exception was the direct cause of the following exception: | |
Traceback (most recent call last): | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/litellm/llms/openai.py", line 376, in completion | |
raise e | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/litellm/llms/openai.py", line 294, in completion | |
return self.streaming( | |
^^^^^^^^^^^^^^^ | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/litellm/llms/openai.py", line 476, in streaming | |
response = openai_client.chat.completions.create(**data, timeout=timeout) | |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/openai/_utils/_utils.py", line 275, in wrapper | |
return func(*args, **kwargs) | |
^^^^^^^^^^^^^^^^^^^^^ | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/openai/resources/chat/completions.py", line 667, in create | |
return self._post( | |
^^^^^^^^^^^ | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/openai/_base_client.py", line 1208, in post | |
return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls)) | |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/openai/_base_client.py", line 897, in request | |
return self._request( | |
^^^^^^^^^^^^^^ | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/openai/_base_client.py", line 950, in _request | |
return self._retry_request( | |
^^^^^^^^^^^^^^^^^^^^ | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/openai/_base_client.py", line 1021, in _retry_request | |
return self._request( | |
^^^^^^^^^^^^^^ | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/openai/_base_client.py", line 950, in _request | |
return self._retry_request( | |
^^^^^^^^^^^^^^^^^^^^ | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/openai/_base_client.py", line 1021, in _retry_request | |
return self._request( | |
^^^^^^^^^^^^^^ | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/openai/_base_client.py", line 960, in _request | |
raise APIConnectionError(request=request) from err | |
openai.APIConnectionError: Connection error. | |
During handling of the above exception, another exception occurred: | |
Traceback (most recent call last): | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/interpreter/core/respond.py", line 68, in respond | |
for chunk in interpreter.llm.run(messages_for_llm): | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/interpreter/core/llm/llm.py", line 207, in run | |
yield from run_text_llm(self, params) | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/interpreter/core/llm/run_text_llm.py", line 19, in run_text_llm | |
for chunk in llm.completions(**params): | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/interpreter/core/llm/llm.py", line 238, in fixed_litellm_completions | |
raise first_error | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/interpreter/core/llm/llm.py", line 219, in fixed_litellm_completions | |
yield from litellm.completion(**params) | |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/litellm/utils.py", line 2732, in wrapper | |
raise e | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/litellm/utils.py", line 2633, in wrapper | |
result = original_function(*args, **kwargs) | |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/litellm/main.py", line 2056, in completion | |
raise exception_type( | |
^^^^^^^^^^^^^^^ | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/litellm/utils.py", line 8198, in exception_type | |
raise e | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/litellm/utils.py", line 7070, in exception_type | |
raise APIError( | |
litellm.exceptions.APIError: OpenAIException - Traceback (most recent call last): | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/httpx/_transports/default.py", line 69, in map_httpcore_exceptions | |
yield | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/httpx/_transports/default.py", line 233, in handle_request | |
resp = self._pool.handle_request(req) | |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/httpcore/_sync/connection_pool.py", line 216, in handle_request | |
raise exc from None | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/httpcore/_sync/connection_pool.py", line 196, in handle_request | |
response = connection.handle_request( | |
^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/httpcore/_sync/connection.py", line 99, in handle_request | |
raise exc | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/httpcore/_sync/connection.py", line 76, in handle_request | |
stream = self._connect(request) | |
^^^^^^^^^^^^^^^^^^^^^^ | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/httpcore/_sync/connection.py", line 154, in _connect | |
stream = stream.start_tls(**kwargs) | |
^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/httpcore/_backends/sync.py", line 152, in start_tls | |
with map_exceptions(exc_map): | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/contextlib.py", line 158, in __exit__ | |
self.gen.throw(typ, value, traceback) | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions | |
raise to_exc(exc) from exc | |
httpcore.ConnectError: [SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:1006) | |
The above exception was the direct cause of the following exception: | |
Traceback (most recent call last): | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/openai/_base_client.py", line 926, in _request | |
response = self._client.send( | |
^^^^^^^^^^^^^^^^^^ | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/httpx/_client.py", line 914, in send | |
response = self._send_handling_auth( | |
^^^^^^^^^^^^^^^^^^^^^^^^^ | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/httpx/_client.py", line 942, in _send_handling_auth | |
response = self._send_handling_redirects( | |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/httpx/_client.py", line 979, in _send_handling_redirects | |
response = self._send_single_request(request) | |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/httpx/_client.py", line 1015, in _send_single_request | |
response = transport.handle_request(request) | |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/httpx/_transports/default.py", line 232, in handle_request | |
with map_httpcore_exceptions(): | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/contextlib.py", line 158, in __exit__ | |
self.gen.throw(typ, value, traceback) | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/httpx/_transports/default.py", line 86, in map_httpcore_exceptions | |
raise mapped_exc(message) from exc | |
httpx.ConnectError: [SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:1006) | |
The above exception was the direct cause of the following exception: | |
Traceback (most recent call last): | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/litellm/llms/openai.py", line 376, in completion | |
raise e | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/litellm/llms/openai.py", line 294, in completion | |
return self.streaming( | |
^^^^^^^^^^^^^^^ | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/litellm/llms/openai.py", line 476, in streaming | |
response = openai_client.chat.completions.create(**data, timeout=timeout) | |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/openai/_utils/_utils.py", line 275, in wrapper | |
return func(*args, **kwargs) | |
^^^^^^^^^^^^^^^^^^^^^ | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/openai/resources/chat/completions.py", line 667, in create | |
return self._post( | |
^^^^^^^^^^^ | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/openai/_base_client.py", line 1208, in post | |
return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls)) | |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/openai/_base_client.py", line 897, in request | |
return self._request( | |
^^^^^^^^^^^^^^ | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/openai/_base_client.py", line 950, in _request | |
return self._retry_request( | |
^^^^^^^^^^^^^^^^^^^^ | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/openai/_base_client.py", line 1021, in _retry_request | |
return self._request( | |
^^^^^^^^^^^^^^ | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/openai/_base_client.py", line 950, in _request | |
return self._retry_request( | |
^^^^^^^^^^^^^^^^^^^^ | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/openai/_base_client.py", line 1021, in _retry_request | |
return self._request( | |
^^^^^^^^^^^^^^ | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/openai/_base_client.py", line 960, in _request | |
raise APIConnectionError(request=request) from err | |
openai.APIConnectionError: Connection error. | |
During handling of the above exception, another exception occurred: | |
Traceback (most recent call last): | |
File "/opt/homebrew/anaconda3/envs/oit/bin/interpreter", line 8, in <module> | |
sys.exit(main()) | |
^^^^^^ | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/interpreter/terminal_interface/start_terminal_interface.py", line 415, in main | |
start_terminal_interface(interpreter) | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/interpreter/terminal_interface/start_terminal_interface.py", line 393, in start_terminal_interface | |
interpreter.chat() | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/interpreter/core/core.py", line 154, in chat | |
for _ in self._streaming_chat(message=message, display=display): | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/interpreter/core/core.py", line 183, in _streaming_chat | |
yield from terminal_interface(self, message) | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/interpreter/terminal_interface/terminal_interface.py", line 136, in terminal_interface | |
for chunk in interpreter.chat(message, display=False, stream=True): | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/interpreter/core/core.py", line 222, in _streaming_chat | |
yield from self._respond_and_store() | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/interpreter/core/core.py", line 268, in _respond_and_store | |
for chunk in respond(self): | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/interpreter/core/respond.py", line 114, in respond | |
raise Exception( | |
Exception: Error occurred. OpenAIException - Traceback (most recent call last): | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/httpx/_transports/default.py", line 69, in map_httpcore_exceptions | |
yield | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/httpx/_transports/default.py", line 233, in handle_request | |
resp = self._pool.handle_request(req) | |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/httpcore/_sync/connection_pool.py", line 216, in handle_request | |
raise exc from None | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/httpcore/_sync/connection_pool.py", line 196, in handle_request | |
response = connection.handle_request( | |
^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/httpcore/_sync/connection.py", line 99, in handle_request | |
raise exc | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/httpcore/_sync/connection.py", line 76, in handle_request | |
stream = self._connect(request) | |
^^^^^^^^^^^^^^^^^^^^^^ | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/httpcore/_sync/connection.py", line 154, in _connect | |
stream = stream.start_tls(**kwargs) | |
^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/httpcore/_backends/sync.py", line 152, in start_tls | |
with map_exceptions(exc_map): | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/contextlib.py", line 158, in __exit__ | |
self.gen.throw(typ, value, traceback) | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions | |
raise to_exc(exc) from exc | |
httpcore.ConnectError: [SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:1006) | |
The above exception was the direct cause of the following exception: | |
Traceback (most recent call last): | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/openai/_base_client.py", line 926, in _request | |
response = self._client.send( | |
^^^^^^^^^^^^^^^^^^ | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/httpx/_client.py", line 914, in send | |
response = self._send_handling_auth( | |
^^^^^^^^^^^^^^^^^^^^^^^^^ | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/httpx/_client.py", line 942, in _send_handling_auth | |
response = self._send_handling_redirects( | |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/httpx/_client.py", line 979, in _send_handling_redirects | |
response = self._send_single_request(request) | |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/httpx/_client.py", line 1015, in _send_single_request | |
response = transport.handle_request(request) | |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/httpx/_transports/default.py", line 232, in handle_request | |
with map_httpcore_exceptions(): | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/contextlib.py", line 158, in __exit__ | |
self.gen.throw(typ, value, traceback) | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/httpx/_transports/default.py", line 86, in map_httpcore_exceptions | |
raise mapped_exc(message) from exc | |
httpx.ConnectError: [SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:1006) | |
The above exception was the direct cause of the following exception: | |
Traceback (most recent call last): | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/litellm/llms/openai.py", line 376, in completion | |
raise e | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/litellm/llms/openai.py", line 294, in completion | |
return self.streaming( | |
^^^^^^^^^^^^^^^ | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/litellm/llms/openai.py", line 476, in streaming | |
response = openai_client.chat.completions.create(**data, timeout=timeout) | |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/openai/_utils/_utils.py", line 275, in wrapper | |
return func(*args, **kwargs) | |
^^^^^^^^^^^^^^^^^^^^^ | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/openai/resources/chat/completions.py", line 667, in create | |
return self._post( | |
^^^^^^^^^^^ | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/openai/_base_client.py", line 1208, in post | |
return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls)) | |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/openai/_base_client.py", line 897, in request | |
return self._request( | |
^^^^^^^^^^^^^^ | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/openai/_base_client.py", line 950, in _request | |
return self._retry_request( | |
^^^^^^^^^^^^^^^^^^^^ | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/openai/_base_client.py", line 1021, in _retry_request | |
return self._request( | |
^^^^^^^^^^^^^^ | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/openai/_base_client.py", line 950, in _request | |
return self._retry_request( | |
^^^^^^^^^^^^^^^^^^^^ | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/openai/_base_client.py", line 1021, in _retry_request | |
return self._request( | |
^^^^^^^^^^^^^^ | |
File "/opt/homebrew/anaconda3/envs/oit/lib/python3.11/site-packages/openai/_base_client.py", line 960, in _request | |
raise APIConnectionError(request=request) from err | |
openai.APIConnectionError: Connection error. | |
If you're running `interpreter --local`, please make sure LM Studio's local server is running. | |
If LM Studio's local server is running, please try a language model with a different architecture. | |
[IPKernelApp] WARNING | Parent appears to have exited, shutting down. | |
conda deactivate | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment