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

Allow openai endpoint configuration via config #35

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

CuSO4Deposit
Copy link

Continue #18 .

When a user wants to use other API-compatible services or use a local instance of GPT, might be needed to redefine the OpenAI base URL.

All the nil check code has been removed for the following reasons:

  1. As mentioned, we have a fallback in place, so the check is not needed.
  2. The openai_base_url should not be manually set by all users. Only users who want to use a custom URL will intentionally set it, as they know it’s necessary. Others who use the original endpoint shouldn't receive any warnings about the base URL.

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.

1 participant