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

fix: invalid url error if env OPENAI_BASE_URL is empty string #601

Closed
wants to merge 1 commit into from

Conversation

li-yechao
Copy link

  • I understand that this repository is auto-generated and my pull request may not be merged

Changes being requested

Additional context & links

@li-yechao li-yechao requested a review from a team as a code owner December 28, 2023 04:24
@rattrayalex
Copy link
Collaborator

Thanks, this change has been incorporated elsewhere!

baseURL: baseURL || `https://api.openai.com/v1`,

return process.env?.[env]?.trim() ?? undefined;

@rattrayalex rattrayalex closed this Jul 8, 2024
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