frdel / agent-zero

Agent Zero AI framework
Other
3.68k stars 848 forks source link

Keeps asking for Open AI API even after i gave it Anthropic API #81

Closed DibakarBala closed 3 weeks ago

DibakarBala commented 4 weeks ago

Did not find openai_api_key, please add an environment variable OPENAI_API_KEY which contains it, or pass openai_api_key as a named parameter. (type=value_error)

squintdev commented 3 weeks ago

Did you change the LLM variable at the top of main.py to Anthropic and comment out the OpenAI option?

livef01 commented 3 weeks ago

Comment out or delete the line chat_llm = models.get_openai_chat(model_name="gpt-4o-mini", temperature=0) and replace it with chat_llm = models.get_anthropic_chat(model_name="your-model-name-here", temperature=0) in your main.py file."

DibakarBala commented 3 weeks ago

Thanks for the suggestions, I was able to comment out and fix it.