Embedding deserialization error when using encoding_format EncodingFormat::Base64
#189
Labels
bug
Something isn't working
EncodingFormat::Base64
#189
OpenAI returns embeddings in base64 string representation (offers better compactness than a JSON array) when specifying
EncodingFormat::Base64
. However, this is not handled in deserialization logic ofasync-openai
.Imo, Base64 should also be the default since much less data is transferred (as is the case in the python client).
Snippet:
The text was updated successfully, but these errors were encountered: