Explorar el Código

fix: remove redundant reasoning assignment in ChatCompletionsStreamResponseChoiceDelta

CaIon hace 6 meses
padre
commit
85f81df2f8
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      dto/openai_response.go

+ 1 - 1
dto/openai_response.go

@@ -110,7 +110,7 @@ func (c *ChatCompletionsStreamResponseChoiceDelta) GetReasoningContent() string
 
 func (c *ChatCompletionsStreamResponseChoiceDelta) SetReasoningContent(s string) {
 	c.ReasoningContent = &s
-	c.Reasoning = &s
+	//c.Reasoning = &s
 }
 
 type ToolCallResponse struct {