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

feat: allow custom openai base url #108

Merged
merged 1 commit into from
Dec 28, 2023

Conversation

soulteary
Copy link
Contributor

@soulteary soulteary commented Dec 27, 2023

🤔 What is the nature of this change?

  • New feature

🔗 Related Issue

💡 Background or solution

If the user has a proxy service of the OpenAI API, or a Model API that is compatible with it, it should also be allowed to call it directly by setting environment variables without setting the locally running model.

Simpler and easier to use.

📝 Changelog

Just add an environment variable, when the OpenAI Client is initialized

@chenweize1998 chenweize1998 merged commit 5fb1f77 into OpenBMB:main Dec 28, 2023
@soulteary soulteary deleted the feat-custom-api-base branch January 11, 2024 05:24
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

Successfully merging this pull request may close these issues.

2 participants