Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues with OPENAI_API_KEY and OPENAI_API_BASE in the Latest Update #312

Closed
yashkite opened this issue Dec 27, 2023 · 3 comments
Closed

Comments

@yashkite
Copy link

in newer update

set OPENAI_API_KEY=sk-dummy1234
set OPENAI_API_BASE=http://localhost:1234/v1

These commands are not taking effect. Instead of communicating with the local server, they are trying to connect to the open-ai website.

@thinkwee
Copy link
Collaborator

We do not officially support self-built models, please refer to #27

The new openai api supports base url, but this is only used to forward requests to openai, not for a self-built service. You can return to the old version of openai api (still compatible in ChatDev) or discuss the self-built service issues in the new openai api in our discord.

@yashkite
Copy link
Author

yashkite commented Dec 27, 2023

Thanks

For me it wasn't OPENAI_API_BASE, but BASE_URL.
After setting this, everything works fine with LiteLLM + Ollama

Found this comment and it worked as you said it will not work properly so i will fall back to the old version i guess

@hemangjoshi37a
Copy link

If anyone has ollama working with this then please let me know how to do this . thanks .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants