-
-
Notifications
You must be signed in to change notification settings - Fork 314
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
Support OpenAI seed parameter #324
Labels
enhancement
New feature or request
Comments
Prototype: @@ -201,6 +201,9 @@ class Chat(Model):
),
default=None,
)
+ seed: Optional[int] = Field(
+ description="Integer seed to attempt to sample deterministically", default=None
+ )
@field_validator("logit_bias")
def validate_logit_bias(cls, logit_bias): Result:
Not quite the same though! |
This worked:
|
I have observed that except for special cases or when the answer consumes a small number of tokens, the seed fixed answer is rarely used. I wonder what is the test situation of your side |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This should result in deterministic output: https://platform.openai.com/docs/api-reference/chat/create#completions/create-seed
The text was updated successfully, but these errors were encountered: