Aider-AI / aider

aider is AI pair programming in your terminal
https://aider.chat/
Apache License 2.0
22.08k stars 2.06k forks source link

after setting ollama , still asking openAI key #2216

Open yangboz opened 2 weeks ago

yangboz commented 2 weeks ago

Issue

after exporting local ollama , typed aider to write down demo.py, then it throws error as following:

raise AuthenticationError(
litellm.exceptions.AuthenticationError: litellm.AuthenticationError: 
AuthenticationError: OpenAIException - 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

I am wondering , those LLMs be exclusive ?

Version and model info

aider 0.60.1 ollama version is 0.1.45

paul-gauthier commented 4 days ago

When reporting problems, it is very helpful if you can provide:

Including the “announcement” lines that aider prints at startup is an easy way to share some of this helpful info.

Aider v0.37.1-dev
Models: gpt-4o with diff edit format, weak model gpt-3.5-turbo
Git repo: .git with 243 files
Repo-map: using 1024 tokens