Skip to content

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

Description

@Tizzzzy

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.```

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions