Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getting API key error after I put api key in .env.example #145

Open
Tizzzzy opened this issue Nov 27, 2023 · 1 comment
Open

getting API key error after I put api key in .env.example #145

Tizzzzy opened this issue Nov 27, 2023 · 1 comment

Comments

@Tizzzzy
Copy link

Tizzzzy commented Nov 27, 2023

Hi,
After I put my api key in .env.example file, I am still getting this error

  File "C:\Users\super\anaconda3\envs\textgen\lib\site-packages\streamlit\runtime\scriptrunner\script_runner.py", line 534, in _run_script
    exec(code, module.__dict__)
  File "C:\Users\super\OneDrive\Desktop\Bridge_Legal\codeinterpreter-api\frontend\app.py", line 38, in <module>
    loop.run_until_complete(get_images(input_text, files=uploaded_files_list))
  File "C:\Users\super\anaconda3\envs\textgen\lib\asyncio\base_events.py", line 649, in run_until_complete
    return future.result()
  File "C:\Users\super\OneDrive\Desktop\Bridge_Legal\codeinterpreter-api\frontend\utils.py", line 25, in get_images
    async with CodeInterpreterSession(model="gpt-3.5-turbo") as session:
  File "C:\Users\super\anaconda3\envs\textgen\lib\site-packages\codeinterpreterapi\session.py", line 70, in __init__
    self.llm: BaseLanguageModel = llm or self._choose_llm()
  File "C:\Users\super\anaconda3\envs\textgen\lib\site-packages\codeinterpreterapi\session.py", line 160, in _choose_llm
    raise ValueError("Please set the API key for the LLM you want to use.")
ValueError: Please set the API key for the LLM you want to use.```
@bratwurstmuesli
Copy link

before you run the script add the api key with the following line in bash:
export OPENAI_API_KEY=sk-
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants