Skip to content

feat: allow custom openai base url#108

Merged
chenweize1998 merged 1 commit intoOpenBMB:mainfrom
soulteary:feat-custom-api-base
Dec 28, 2023
Merged

feat: allow custom openai base url#108
chenweize1998 merged 1 commit intoOpenBMB:mainfrom
soulteary:feat-custom-api-base

Conversation

@soulteary
Copy link
Copy Markdown
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

@soulteary soulteary force-pushed the feat-custom-api-base branch from 1f7a707 to 1da5e11 Compare December 27, 2023 08:12
@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