Skip to content
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

Chat Completion Seed: Double instead of integer #35

Open
Dustinhoefer opened this issue Mar 11, 2024 · 1 comment
Open

Chat Completion Seed: Double instead of integer #35

Dustinhoefer opened this issue Mar 11, 2024 · 1 comment

Comments

@Dustinhoefer
Copy link

The official API states:

seed
integer or null
Optional
If specified, our system will make a best effort to sample deterministically, such that repeated requests with the same seed and parameters should return the same result.

Determinism is not guaranteed, and you should refer to the system_fingerprint response parameter to monitor changes in the backend.

In your implementation you are using Double. Was this a change in the api or is this intentional?

@Dustinhoefer
Copy link
Author

Dustinhoefer commented Mar 11, 2024

Using the seed the following error is also returned:

Unsuccessful response with HTTP status code 400 and error body: {
"error": {
"message": "1710180280865.0 is not of type 'integer' - 'seed'",
"type": "invalid_request_error",
"param": null,
"code": null
}
}

In the ChatCompletionRequest it is a Double, in the CompletionRequest an Integer :D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant