Skip to content

Error code: 422 when calling mistral api #134

@mounta11n

Description

@mounta11n

hey guys, i have configured https://api.mistral.ai/v1 as my provider

the first message always works fine, but second message returns an error:

?[K  (╥_╥) error, retrying...
⚠️  API call failed (attempt 1/6): UnprocessableEntityError
   ⏱️  Time elapsed before failure: 0.25s
[...]
Non-retryable client error detected. Aborting immediately.
   💡 This type of error won't be fixed by retrying.
14:16:30 - ERROR - Non-retryable client error: Error code: 422 - {'detail': [{'type': 'extra_forbidden', 'loc': ['body', 'messages', 2, 'assistant', 'finish_reason'], 'msg': 'Extra inputs are not permitted', 'input': 'stop'}]}

mistral doesnt accept extra inputs like timestamps and the like, i think that's causing the error.

i am using:

Hermes Agent vv1.0.0
Python: 3.11.6
OpenAI SDK: 2.24.0

thx

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions