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

Feature Request: support "encoding_format": "base64" in the */embeddings endpoints #10887

Closed
4 tasks done
ggerganov opened this issue Dec 18, 2024 · 0 comments · Fixed by #10967
Closed
4 tasks done

Feature Request: support "encoding_format": "base64" in the */embeddings endpoints #10887

ggerganov opened this issue Dec 18, 2024 · 0 comments · Fixed by #10967
Labels
enhancement New feature or request good first issue Good for newcomers server/api server

Comments

@ggerganov
Copy link
Member

Prerequisites

  • I am running the latest code. Mention the version if possible as well.
  • I carefully followed the README.md.
  • I searched using keywords relevant to my issue to make sure that I am creating a new issue that is not already open (or closed).
  • I reviewed the Discussions, and have a new and useful enhancement to share.

Feature Description

The OpenAI embeddings API supports returning the embeddings in base64 format:

https://platform.openai.com/docs/api-reference/embeddings/create#embeddings-create-encoding_format

We should implement this option in the server and enable it both for the /v1/embeddings and /embeddings endpoints.

Motivation

Reduce JSON payload and increase OAI compatibility.

Possible Implementation

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers server/api server
Projects
None yet
1 participant