Skip to content

Conversation

tomoish
Copy link
Contributor

@tomoish tomoish commented Dec 1, 2023

base_url of an OpenAI client instance cannot be changed by setter method.

This PR updates the setter method to change both _base_url and client.base_url.

Closes #913.

@tomoish tomoish requested a review from a team as a code owner December 1, 2023 13:35
@RobertCraigie
Copy link
Collaborator

Thanks @tomoish! We actually want this fix to be slightly different and not set the base_url property on the underlying http client as well.

I've pushed a fix separately for this and marked you as a co-author, #919.

@tomoish tomoish deleted the fix-base-url branch December 3, 2023 13:07
stainless-app bot added a commit that referenced this pull request Mar 27, 2025
stainless-app bot added a commit that referenced this pull request Mar 27, 2025
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.

base_url of OpenAI Client Instance Cannot Be Modified Due to Missing Update in Setter Method
2 participants