fix: when reasoningEffort = "", no "reasoning" field
This commit is contained in:
12
model.go
12
model.go
@@ -14,16 +14,16 @@ type OpenaiChatCompletionReq struct {
|
||||
}
|
||||
|
||||
type OpenaiResponseReasoning struct {
|
||||
Effort string `json:"effort"`
|
||||
Effort string `json:"effort,omitempty"`
|
||||
Summary string `json:"summary,omitempty"` // auto, concise, detailed
|
||||
}
|
||||
|
||||
type OpenaiChatResponseReq struct {
|
||||
Model string `json:"model"`
|
||||
Input []OpenaiChatMessage `json:"input"`
|
||||
Temperature *float64 `json:"temperature,omitempty"`
|
||||
Reasoning OpenaiResponseReasoning `json:"reasoning,omitempty"`
|
||||
Stream bool `json:"stream"`
|
||||
Model string `json:"model"`
|
||||
Input []OpenaiChatMessage `json:"input"`
|
||||
Temperature *float64 `json:"temperature,omitempty"`
|
||||
Reasoning *OpenaiResponseReasoning `json:"reasoning,omitempty"`
|
||||
Stream bool `json:"stream"`
|
||||
}
|
||||
|
||||
type OpenaiResponseStreamEvent struct {
|
||||
|
||||
Reference in New Issue
Block a user