FinRobot icon indicating copy to clipboard operation
FinRobot copied to clipboard

Unable to use local models for agents - OpenAIError: The api_key client option must be set

Open Armanasq opened this issue 1 year ago • 1 comments

I am currently facing an issue where I cannot use local models for my agents. Whenever I try to run my application, I receive the following error:

OpenAIError: The api_key client option must be set either by passing api_key to the client or by setting the OPENAI_API_KEY environment variable

This issue prevents me from utilizing local models without an OpenAI API key.

Any guidance on how to configure LLMs to work with local models without needing an OpenAI API key would be greatly appreciated.

Armanasq avatar Jul 31 '24 05:07 Armanasq

just set it “sk-xx”

AlfredChaos avatar Feb 23 '25 03:02 AlfredChaos