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

How to modify OpenAI API endpoint? #255

Open
overheat opened this issue Jan 9, 2024 · 1 comment
Open

How to modify OpenAI API endpoint? #255

overheat opened this issue Jan 9, 2024 · 1 comment

Comments

@overheat
Copy link

overheat commented Jan 9, 2024

We have a proxy for OpenAI API.
How to modify OpenAI API endpoint?

@pwh-pwh
Copy link

pwh-pwh commented Feb 1, 2024

he used async-openai crate as the openai api client.just set this environment variable OPENAI_API_BASE
like export OPENAI_API_BASE="https://api.openai.com/v1".
specific code reference https://github.com/64bit/async-openai/blob/main/async-openai/src/config.rs

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

2 participants