浏览代码

Update openai/openai.go

Co-authored-by: Michael Yang <mxyng@pm.me>
Parth Sareen 3 月之前
父节点
当前提交
8c231b0826
共有 1 个文件被更改,包括 1 次插入0 次删除
  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"`