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
I can fix that. It's similar to #80
Here: https://github.com/EricLBuehler/mistral.rs/blob/master/mistralrs-server/src/main.rs#L140
e.to_string().into_response() does not carry the information that string is of an error, thus we get wrong HTTP status code
e.to_string().into_response()
In the end this makes the OpenAI client return an unhelpful message:
Traceback (most recent call last): File "/home/lucas/oss/mistral.rs/examples/server/chat.py", line 25, in <module> resp = completion.choices[0].message.content AttributeError: 'str' object has no attribute 'choices'
The text was updated successfully, but these errors were encountered:
Thanks for raising this! If you can submit a PR that would be great.
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
I can fix that. It's similar to #80
Here: https://github.com/EricLBuehler/mistral.rs/blob/master/mistralrs-server/src/main.rs#L140
e.to_string().into_response()
does not carry the information that string is of an error, thus we get wrong HTTP status codeIn the end this makes the OpenAI client return an unhelpful message:
The text was updated successfully, but these errors were encountered: