Skip to content

Commit 1761922

Browse files
committed
fix marshal
1 parent 1a11ad8 commit 1761922

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

chat.go

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -328,17 +328,6 @@ type ChatCompletionRequest struct {
328328
ChatCompletionRequestExtensions
329329
}
330330

331-
// MarshalJSON ensures we don't send both the legacy flat reasoning_effort and the new nested reasoning simultaneously.
332-
// If Reasoning is provided, the legacy ReasoningEffort is omitted to match current API guidance.
333-
func (r ChatCompletionRequest) MarshalJSON() ([]byte, error) {
334-
type Alias ChatCompletionRequest
335-
aux := Alias(r)
336-
if r.Reasoning != nil {
337-
aux.ReasoningEffort = ""
338-
}
339-
return json.Marshal(aux)
340-
}
341-
342331
type StreamOptions struct {
343332
// If set, an additional chunk will be streamed before the data: [DONE] message.
344333
// The usage field on this chunk shows the token usage statistics for the entire request,

0 commit comments

Comments
 (0)