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

add base url for openai client #84

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

hawktang
Copy link

@hawktang hawktang commented Apr 4, 2024

add base url for openai client to support customer url in future

@robot-ci-heartex robot-ci-heartex marked this pull request as draft April 5, 2024 07:48
@HumanSignal HumanSignal deleted a comment from robot-ci-heartex Apr 8, 2024
@HumanSignal HumanSignal deleted a comment from robot-ci-heartex Apr 8, 2024
return OpenAI(api_key=self.openai_api_key)
return OpenAI(
api_key=self.openai_api_key,
base_url=DEFAULT_CREATE_COMPLETION_URL
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does the base URL refer to the completion endpoint but not something like https://api.openai.com/v1 ?

@hawktang
Copy link
Author

hawktang commented Apr 26, 2024 via email

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.

None yet

2 participants