Skip to content

Commit ee41f5a

Browse files
authored
Add omitempty to reasoning_content in OpenAI message API
Add ```omitempty``` to ```reasoning_content``` in OpenAI message API. See issue [link](mark3labs#23)
1 parent 3076686 commit ee41f5a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/llm/openai/types.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ type CreateRequest struct {
1111
type MessageParam struct {
1212
Role string `json:"role"`
1313
Content *string `json:"content"`
14-
ReasoningContent *string `json:"reasoning_content"`
14+
ReasoningContent *string `json:"reasoning_content,omitempty"`
1515
FunctionCall *FunctionCall `json:"function_call,omitempty"`
1616
ToolCalls []ToolCall `json:"tool_calls,omitempty"`
1717
Name string `json:"name,omitempty"`

0 commit comments

Comments
 (0)