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 change base_url? #160

Closed
Dooy opened this issue Nov 26, 2023 · 2 comments
Closed

how to change base_url? #160

Dooy opened this issue Nov 26, 2023 · 2 comments

Comments

@Dooy
Copy link

Dooy commented Nov 26, 2023

base_url default is https://api.openai.com,
if the cultivation base_url for other?

.Env file, is it supported?

@64bit
Copy link
Owner

64bit commented Nov 26, 2023

Base url can configured via config:

https://docs.rs/async-openai/latest/async_openai/config/struct.OpenAIConfig.html#method.with_api_base

Whats your use case?

@64bit
Copy link
Owner

64bit commented Dec 20, 2023

Think we can close this - as feature is already present

@64bit 64bit closed this as completed Dec 20, 2023
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