Forum in maintenance, we will back soon 🙂
Error Code With Simple LLM
I'm having issues with the simple LLM repository after importing into Visual Studio. The code generates the error in the terminal; "An error occurred: LLM.create() got an unexpected keyword argument 'api_key'". The other parts of the code seem fine and I have added my api key in (.env) but no output. Any fix please? I am entirely new to coding and have taken the python scripting course.
@reallionaire without giving your API Key what is the syntax you used to set the API key in the .env file?
Regards,
Earnie Boyd, CEO
Seasoned Solutions Advisor LLC
Schedule 1-on-1 help
Join me on Slack
@reallionaire Make sure that you set your API key in the .env file this way:
OPENAI_API_KEY = "YOUR_KEY"
Thank you, it's fixed now. I did some troubleshooting and discovered my directory was not properly set.