mirror of
https://github.com/trustgraph-ai/trustgraph.git
synced 2026-07-21 19:21:03 +02:00
Fix Mistral
This commit is contained in:
parent
ca44894b44
commit
cf0eb5a1b2
2 changed files with 4 additions and 0 deletions
|
|
@ -70,6 +70,8 @@ class Processor(LlmService):
|
||||||
model = self.model
|
model = self.model
|
||||||
)
|
)
|
||||||
|
|
||||||
|
return resp
|
||||||
|
|
||||||
# FIXME: Wrong exception, don't know what this LLM throws
|
# FIXME: Wrong exception, don't know what this LLM throws
|
||||||
# for a rate limit
|
# for a rate limit
|
||||||
except cohere.TooManyRequestsError:
|
except cohere.TooManyRequestsError:
|
||||||
|
|
|
||||||
|
|
@ -86,6 +86,8 @@ class Processor(LlmService):
|
||||||
model = self.model
|
model = self.model
|
||||||
)
|
)
|
||||||
|
|
||||||
|
return resp
|
||||||
|
|
||||||
# FIXME: Wrong exception. The MistralAI library has retry logic
|
# FIXME: Wrong exception. The MistralAI library has retry logic
|
||||||
# so retry-able errors are retried transparently. It means we
|
# so retry-able errors are retried transparently. It means we
|
||||||
# don't get rate limit events.
|
# don't get rate limit events.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue