base_url of OpenAI Client Instance Cannot Be Modified Due to Missing Update in Setter Method #913
Closed
1 task done
Labels
bug
Something isn't working
Uh oh!
There was an error while loading. Please reload this page.
Confirm this is an issue with the Python library and not an underlying OpenAI API
Describe the bug
I encountered an issue where the
base_url
of an OpenAI client instance couldn't be modified. This is due to the setter method ofbase_url
not updatingself._base_url
.Possible Solution
I suggest modifying the setter method for base_url to ensure self._base_url is also updated. Additionally, incorporate handling for the trailing slash of the URL, as done in the init method:
To Reproduce
Code snippets
OS
Windows11
Python version
Python 3.12.0
Library version
1.3.6
The text was updated successfully, but these errors were encountered: