Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
new-api
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
ffb06d08
authored
Mar 06, 2026
by
CaIon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: update OpenAI response structure to use json.RawMessage for dynamic fields
parent
57d52586
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
dto/openai_response.go
+4
-4
No files found.
dto/openai_response.go
View file @
ffb06d08
...
...
@@ -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"`
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment