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

Bugfix missing internal options set #185

Closed
wants to merge 1 commit into from

Conversation

RogerBarreto
Copy link
Contributor

@RogerBarreto RogerBarreto commented Aug 26, 2024

Motivation

When creating OpenAIClient using ApiKey + Options the options are not persisted and passed when creating the specialized clients Chat, Embedding, etc resetting unintentionally the options for the specialized clients, including the Endpoint.

Fix

The fix set the internal options restoring the desired behavior.

Resolve #184

@trrwilson
Copy link
Collaborator

Thank you, @RogerBarreto! This fix is rolled up into #186; I wanted to be sure we also had a test that validated. We'll get this released shortly.

@trrwilson trrwilson closed this Aug 26, 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.

OpenAIClient Constructor not persisting _options internally, fails for custom options (+endpoints).
2 participants