Skip to content

Some providers limit temp to less than 2 #28

Description

@scottyeager

We should catch an error like this:

Error: failed to generate commit message: failed to get completion: 
POST "https://api.mistral.ai/v1/chat/completions": 
422 Unprocessable Entity {"object":"error","message":{"detail":[{"type":"less_than_equal","loc":
["body","temperature"],"msg":"Input should be less than or equal to 1.5","input":2,"ctx":
{"le":1.5},"url":"https://errors.pydantic.dev/2.10/v/less_than_equal"}]},
"type":"invalid_request_error","param":null,"code":null}

and print a helpful message.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions