Fix Mistral

This commit is contained in:
Cyber MacGeddon 2025-05-06 16:14:45 +01:00
parent ca44894b44
commit cf0eb5a1b2
2 changed files with 4 additions and 0 deletions

View file

@ -70,6 +70,8 @@ class Processor(LlmService):
model = self.model
)
return resp
# FIXME: Wrong exception, don't know what this LLM throws
# for a rate limit
except cohere.TooManyRequestsError:

View file

@ -86,6 +86,8 @@ class Processor(LlmService):
model = self.model
)
return resp
# FIXME: Wrong exception. The MistralAI library has retry logic
# so retry-able errors are retried transparently. It means we
# don't get rate limit events.