Skip to content

fix: inconsistent usage of base URL and API key - #507

Merged
tibo-openai merged 3 commits into
openai:mainfrom
GabrielBianconi:fix-base-url
Apr 22, 2025
Merged

tibo-openai merged 3 commits into
openai:mainfrom
GabrielBianconi:fix-base-url

Conversation

@GabrielBianconi

Copy link
Copy Markdown
Contributor

A recent commit introduced the ability to use third-party model providers. (Really appreciate it!)

However, the usage is inconsistent: some pieces of code use the custom providers, whereas others still have the old behavior. Additionally, OPENAI_BASE_URL is now being disregarded when it shouldn't be.

This PR normalizes the usage to getApiKey and getBaseUrl, and enables the use of OPENAI_BASE_URL if present.

@tibo-openai tibo-openai changed the title Fix: inconsistent usage of base URL and API key fix: inconsistent usage of base URL and API key Apr 22, 2025
@tibo-openai

Copy link
Copy Markdown
Collaborator

Nice, thank you for the fix and cleanup, this is going in!

@tibo-openai
tibo-openai merged commit 98a2227 into openai:main Apr 22, 2025
@github-actions github-actions Bot locked and limited conversation to collaborators Apr 22, 2025
@GabrielBianconi
GabrielBianconi deleted the fix-base-url branch April 22, 2025 15:34
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants