PLEASE FILL IN THE BUG REPORT BELOW ENSURING ALL CHECKLIST ITEMS ABOVE HAVE BEEN CONSIDERED.
Bug Description
In the basic example, the set_env command does not correct set the openAI API key in colab.
%set_env OPENAI_API_KEY="sk-..."
It produces an error
AuthenticationError: litellm.AuthenticationError: AuthenticationError: OpenAIException - Error code: 401 - {'error': {'message': 'Incorrect API key provided: "sk-proj**********************************************************************************************************************************************************vQA". You can find your API key at https://platform.openai.com/account/api-keys.', 'type': 'invalid_request_error', 'param': None, 'code': 'invalid_api_key'}}
Solution: remove the quotation marks around the API KEY
%set_env OPENAI_API_KEY=sk-...
This resolves the issue.
Expected Behavior
Steps to Reproduce
- Go to '...'
- Click on '....'
- Scroll down to '....'
- See error
Environment Information
Operating System:
Python Version:
Package Versions:
Error Messages and Logs
Screenshots
Minimal Reproduction Example
# Minimal code to reproduce the bug
Additional Context
Checklist
PLEASE FILL IN THE BUG REPORT BELOW ENSURING ALL CHECKLIST ITEMS ABOVE HAVE BEEN CONSIDERED.
Bug Description
In the basic example, the set_env command does not correct set the openAI API key in colab.
It produces an error
Solution: remove the quotation marks around the API KEY
This resolves the issue.
Expected Behavior
Steps to Reproduce
Environment Information
Operating System:
Python Version:
Package Versions:
Error Messages and Logs
Screenshots
Minimal Reproduction Example
# Minimal code to reproduce the bugAdditional Context
Checklist