-
Notifications
You must be signed in to change notification settings - Fork 100
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
null fields in GenerateEmbeddingResponse #11
Comments
Hey, thanks for reporting this issue. It seems to be a rather old issue of serde serde-rs/json#202. I tried to fix that by replacing |
Funnily enough my mistral server stopped producing NaNs and idk why. There was no change. If there is another person facing this issue in a more predictable way, this branch would probably be more helpful to them. Thank you for doing this though! |
Actually I faced the issue again. This branch does not fix it. The error is exactly the same. |
I think |
I am using the
ollama-rs
library with a remote server running the latestmistral
. Fairly frequently, I get these errors:An error occurred with ollama-rs: invalid type: null, expected a sequence at line 1 column 17
It is always this error on the same line and column. Most of the responses are fine though. Is it because some values in the embedding are
NaN
which encodes tonull
injson
? If so, could it be fine for the response to deserialize correctly and just convert these nulls back toNaN
?The text was updated successfully, but these errors were encountered: