Freezes after generating prompt
Describe the bug
interpreter console freezes after user enters a request when using --debug, I can see that a prompt for gpt4 was generated but then interpreter simply hangs
Reproduce
- launch interpreter
- enter openAI api key
- enter user request
- Prompt seems to be crafted, then interpreter just hangs forever
Expected behavior
- launch interpreter
- enter openAI api key
- enter user request
- Prompt seems to be crafted
- Either interpreter continues, or --debug sends appropriate message to diagnose error
Screenshots
Open Interpreter version
0.2.4
Python version
3.11.2
Operating System name and version
debian 12
Additional context
No response
Running in python environment I get the error message - penai.py: Received openai error - Error code: 401 - {'error': {'message': 'Incorrect API key provided: x
However I believe I set the API key correctly via:
interpreter.llm.api_key 'real key shows up here'
interpreter.llm.api_key 'real key shows up here.' copy that.
interpreter.llm.api_key 'real key shows up here.' copy that.
copy that to where?
Why does it say the api key is 'x'. Received openai error - Error code: 401 - {'error': {'message': 'Incorrect API key provided: x
Also the CURL:
POST Request Sent from LiteLLM:
curl -X POST
https://api.openai.com/v1/
-H 'Authorization: Bearer x' \
Is the API key not being passed? Where is 'x' coming from?
Is litellm actually trying to use the api key 'x'?
Here's what I've tried so far. Using verbose and debug.
- launching interpreter from bash with the OPENAI_API_KEY set
- launching from bash and pasting it in when asked for the API key
- from a python environment using import os
os.environ["OPENAI_API_KEY"] = "your_openai_api_key"
All of these seem to result in the same error.
Okay. I solved it. But I don't understand how.
I installed miniconda and did a pip install open-interpreter inside a new conda env. (v2.0) Both the conda env interpreter and the previous one (cloned from this repo) (without refreshing bash or python) started working and actually sending the openai api key instead of 'x'.
Thank you for reporting this and for helping build the classic Python version of Open Interpreter. This issue concerns the earlier Python/LiteLLM/Jupyter product; this repository now tracks the Rust Open Interpreter built on Codex. We are closing the legacy report here so current product tracking starts clean. If you still want to pursue it, the community-maintained classic fork is https://github.com/endolith/open-interpreter. If the same problem affects the current Interpreter release, please open a new issue with the current template and include the version, provider, model, wire API, harness, platform, and reproduction.