diff --git a/dto/openai_response.go b/dto/openai_response.go index a405b974..1378c4f6 100644 --- a/dto/openai_response.go +++ b/dto/openai_response.go @@ -267,7 +267,7 @@ type OpenAIResponsesResponse struct { ID string `json:"id"` Object string `json:"object"` CreatedAt int `json:"created_at"` - Status string `json:"status"` + Status json.RawMessage `json:"status"` Error any `json:"error,omitempty"` IncompleteDetails *IncompleteDetails `json:"incomplete_details,omitempty"` Instructions string `json:"instructions"` @@ -275,14 +275,14 @@ type OpenAIResponsesResponse struct { Model string `json:"model"` Output []ResponsesOutput `json:"output"` ParallelToolCalls bool `json:"parallel_tool_calls"` - PreviousResponseID string `json:"previous_response_id"` + PreviousResponseID json.RawMessage `json:"previous_response_id"` Reasoning *Reasoning `json:"reasoning"` Store bool `json:"store"` Temperature float64 `json:"temperature"` - ToolChoice string `json:"tool_choice"` + ToolChoice json.RawMessage `json:"tool_choice"` Tools []map[string]any `json:"tools"` TopP float64 `json:"top_p"` - Truncation string `json:"truncation"` + Truncation json.RawMessage `json:"truncation"` Usage *Usage `json:"usage"` User json.RawMessage `json:"user"` Metadata json.RawMessage `json:"metadata"`