You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Can you switch this to 'float' so the python package is conformant with your docs?
To Reproduce
Run an OpenAI embeddings query with the python client:
import openai
client = openai.OpenAI(...)
response = client.embeddings.create(
model=<model>,
input="I am a string to embed!",
# notably, NOT specifying encoding_format here
)
Uses base64 encoding instead of float, oddly.
Code snippets
NA
OS
macOS
Python version
3.12.3
Library version
1.35.0
The text was updated successfully, but these errors were encountered:
Thanks for reporting this, very good catch. Let me try to figure out where the issue is coming from, the OpenAPI spec we are using as the source to generate the SDK does indeed specify float as the default value.
Confirm this is an issue with the Python library and not an underlying OpenAI API
Describe the bug
Hi, your docs say that the default
encoding_format
in your embeddings/create endpoint isfloat
, however your python package code applies a default of 'base64' when a value isn't supplied.Can you switch this to 'float' so the python package is conformant with your docs?
To Reproduce
Run an OpenAI embeddings query with the python client:
Uses base64 encoding instead of float, oddly.
Code snippets
NA
OS
macOS
Python version
3.12.3
Library version
1.35.0
The text was updated successfully, but these errors were encountered: