Skip to content

Feature: Added possibility to specify the dimensions of the embeddings to be created #211

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

MatthiasKi
Copy link

text-embedding-3 and later models support specifying the number of dimensions the resulting output embeddings should have (see the OpenAI API Reference).

In this pull request, I added this parameter to the create embedding interface. The documentation comment has been updated, and a corresponding unit test has also been added.

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.

1 participant