Closed Brendon-Hablutzel closed 2 weeks ago
hello @Brendon-Hablutzel, sorry for the late response. thank you for catching and reporting this error.
this should be fixed with this commit https://github.com/walterbm/cohere-rust/commit/8c75ccd486aca331b7deff47583f7006679ac44c that is included in the latest (v0.6.0) release
please let me know if you run into ant more issues
While using a trial key for the
/chat
endpoint, I would occasionally encounter the following error:After cloning this crate directly and adding some print statements, it turns out that this occurs when the JSON response from the API was as follows:
However, there is no indication to the library user that the error is related to ratelimiting and seems initially to be some sort of internal JSON parsing error.
If this is not intentional, I would be willing to add and implement a ratelimiting error myself.