Skip to content

API allows temperature of -1 #893

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
phgas opened this issue Mar 5, 2025 · 2 comments
Open

API allows temperature of -1 #893

phgas opened this issue Mar 5, 2025 · 2 comments
Labels

Comments

@phgas
Copy link

phgas commented Mar 5, 2025

While playing around with Postman, I randomly discovered you can set the temperature to -1:

{
    "type": "error",
    "error": {
        "type": "invalid_request_error",
        "message": "temperature: range: -1 or 0..1"
    }
}

Surprisingly setting the temperature to -1 doesn't trigger an error, even though your documentation specifies a valid range of (0,1).

Defaults to `1.0`. Ranges from `0.0` to `1.0`. Use `temperature` closer to `0.0`

Why is this the case?

@chaselambda
Copy link

Oops, thanks for the bug report, we'll add this task internally!

@phgas
Copy link
Author

phgas commented Apr 7, 2025

Thanks! Feel free to let me know once fixed :)

@kevinc13 kevinc13 added the api label Apr 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants