Explorar o código

Update openai/openai.go

Co-authored-by: Michael Yang <mxyng@pm.me>
Parth Sareen hai 3 meses
pai
achega
8c231b0826
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      openai/openai.go

+ 1 - 0
openai/openai.go

@@ -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"`