Open tazarov opened 11 months ago
For my understanding - What are the cases where the json serialization in openais lib (assuming this is coming from there) breaks?
According to elmatero in discord:
Going to test it out and see if reproducible.
I'm a little confused -- is this an issue with the OpenAI API itself, with OpenAI's python client, or with our EmbeddingFunction which wraps OpenAI's python library?
I think OpenAI will throw an error if given None, is that correct @tazarov ?
What happened?
If texts passed to OpenAI API are breaking the JSON our wrapper sends 400 error is returned. Maybe there is a way we can sanitize output or leave it to openai lib to fix that.
https://discord.com/channels/1073293645303795742/1183798062863372318
Versions
Any
Relevant log output