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
4e2e6e6e
authored
Aug 11, 2025
by
Seefs
Committed by
GitHub
Aug 11, 2025
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1570 from seefs001/fix/zhipu_v4_thinking
fix: zhipu_v4 thinking
parents
32978f9c
5478d2fb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletions
+2
-1
dto/openai_request.go
+1
-1
relay/channel/zhipu_4v/relay-zhipu_v4.go
+1
-0
No files found.
dto/openai_request.go
View file @
4e2e6e6e
...
...
@@ -54,7 +54,7 @@ type GeneralOpenAIRequest struct {
Modalities
json
.
RawMessage
`json:"modalities,omitempty"`
Audio
json
.
RawMessage
`json:"audio,omitempty"`
EnableThinking
any
`json:"enable_thinking,omitempty"`
// ali
THINKING
json
.
RawMessage
`json:"thinking,omitempty"`
// doubao
THINKING
json
.
RawMessage
`json:"thinking,omitempty"`
// doubao
,zhipu_v4
ExtraBody
json
.
RawMessage
`json:"extra_body,omitempty"`
SearchParameters
any
`json:"search_parameters,omitempty"`
//xai
WebSearchOptions
*
WebSearchOptions
`json:"web_search_options,omitempty"`
...
...
relay/channel/zhipu_4v/relay-zhipu_v4.go
View file @
4e2e6e6e
...
...
@@ -50,5 +50,6 @@ func requestOpenAI2Zhipu(request dto.GeneralOpenAIRequest) *dto.GeneralOpenAIReq
Stop
:
Stop
,
Tools
:
request
.
Tools
,
ToolChoice
:
request
.
ToolChoice
,
THINKING
:
request
.
THINKING
,
}
}
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