Update openai/openai.go

Co-authored-by: Michael Yang <mxyng@pm.me>
This commit is contained in:
Parth Sareen 2025-01-30 13:50:25 -08:00 committed by GitHub
parent 16abd181a9
commit 8c231b0826
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -85,6 +85,7 @@ type ChatCompletionRequest struct {
Stream bool `json:"stream"`
StreamOptions *StreamOptions `json:"stream_options"`
MaxCompletionTokens *int `json:"max_completion_tokens"`
// Deprecated: Use [ChatCompletionRequest.MaxCompletionTokens]
MaxTokens *int `json:"max_tokens" deprecated:"use max_completion_tokens instead"`
Seed *int `json:"seed"`
Stop any `json:"stop"`