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

Update OpenAIEncoder to latest OpenAI client #112

Merged
merged 1 commit into from
Jan 18, 2025

Conversation

maxscheijen
Copy link
Contributor

@maxscheijen maxscheijen commented Jan 18, 2025

Small PR that updates the OpenAIEncoder to the latest OpenAI client.

#111

Copy link
Owner

@koaning koaning left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

I'll prep a release right away.

@koaning
Copy link
Owner

koaning commented Jan 18, 2025

Oh! And one question actually, is there a reason why you're using these embeddings instead of their open-source counterparts?

@koaning koaning merged commit 025205f into koaning:main Jan 18, 2025
2 of 3 checks passed
@maxscheijen
Copy link
Contributor Author

maxscheijen commented Jan 18, 2025

Not really, I was just experimenting with all kinds of different embeddings.

However, at work we use OpenAI embeddings (and completion models) through Azure a lot.

So for me it would be nice to maybe have an AzureOpenAIEncoder as nice way to use embeddings with dataframes and scikit learn pipelines.

@maxscheijen maxscheijen deleted the update-openai-client branch January 18, 2025 22:29
@koaning
Copy link
Owner

koaning commented Jan 19, 2025

I would be open to having it listed here if you feel like making another PR. I probably won't use it much myself but if it helps you it's enough of an argument for me to host it here.

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