We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When I call the embeddings API with encoding_format=base64, the embedding field of the response item is a string.
encoding_format=base64
embedding
curl -v https://api.openai.com/v1/embeddings \ -H "Authorization: Bearer $OPENAI_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "input": "The food was delicious", "model": "text-embedding-3-small", "encoding_format": "base64", "dimensions":10 }'
{ "object": "list", "data": [ { "object": "embedding", "index": 0, "embedding": "nMcovm6gOb7ldwO/AESlvk0Avz2nZIq+3c+EvZvdFT9HsZa9oSy+vg==" <------ THIS } ], "model": "text-embedding-3-small", "usage": { "prompt_tokens": 4, "total_tokens": 4 } }
However, the OpenAPI spec does not reflect that:
openai-openapi/openapi.yaml
Lines 17047 to 17052 in acea67a
The text was updated successfully, but these errors were encountered:
Related: https://github.com/openai/openai-[go/issues/241](https://www.golinks.io/issues/241?trackSource=github)
Sorry, something went wrong.
No branches or pull requests
When I call the embeddings API with
encoding_format=base64
, theembedding
field of the response item is a string.However, the OpenAPI spec does not reflect that:
openai-openapi/openapi.yaml
Lines 17047 to 17052 in acea67a
The text was updated successfully, but these errors were encountered: