Browse Source

fix: codex Unsupported parameter: max_output_tokens

Seefs 1 tháng trước cách đây
mục cha
commit
76164e951e
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      relay/channel/codex/adaptor.go

+ 2 - 0
relay/channel/codex/adaptor.go

@@ -91,6 +91,8 @@ func (a *Adaptor) ConvertOpenAIResponsesRequest(c *gin.Context, info *relaycommo
 
 	// codex: store must be false
 	request.Store = json.RawMessage("false")
+	// rm max_output_tokens
+	request.MaxOutputTokens = 0
 	return request, nil
 }