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
Unverified
Commit
8f6961c6
authored
Aug 26, 2026
by
Seefs
Committed by
GitHub
Aug 26, 2026
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: vllm thinking_token_budget (#7027)
parent
8c25eee7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
8 deletions
+10
-8
relaykit/dto/openai_request.go
+10
-8
No files found.
relaykit/dto/openai_request.go
View file @
8f6961c6
...
@@ -106,6 +106,8 @@ type GeneralOpenAIRequest struct {
...
@@ -106,6 +106,8 @@ type GeneralOpenAIRequest struct {
SearchMode
json
.
RawMessage
`json:"search_mode,omitempty"`
SearchMode
json
.
RawMessage
`json:"search_mode,omitempty"`
// Minimax
// Minimax
ReasoningSplit
json
.
RawMessage
`json:"reasoning_split,omitempty"`
ReasoningSplit
json
.
RawMessage
`json:"reasoning_split,omitempty"`
// vLLM
ThinkingTokenBudget
json
.
RawMessage
`json:"thinking_token_budget,omitempty"`
}
}
func
(
r
GeneralOpenAIRequest
)
MarshalJSON
()
([]
byte
,
error
)
{
func
(
r
GeneralOpenAIRequest
)
MarshalJSON
()
([]
byte
,
error
)
{
...
@@ -859,14 +861,14 @@ type OpenAIResponsesRequest struct {
...
@@ -859,14 +861,14 @@ type OpenAIResponsesRequest struct {
Include
json
.
RawMessage
`json:"include,omitempty"`
Include
json
.
RawMessage
`json:"include,omitempty"`
// 在后台运行推理,暂时还不支持依赖的接口
// 在后台运行推理,暂时还不支持依赖的接口
// Background json.RawMessage `json:"background,omitempty"`
// Background json.RawMessage `json:"background,omitempty"`
Conversation
json
.
RawMessage
`json:"conversation,omitempty"`
Conversation
json
.
RawMessage
`json:"conversation,omitempty"`
ContextManagement
json
.
RawMessage
`json:"context_management,omitempty"`
ContextManagement
json
.
RawMessage
`json:"context_management,omitempty"`
Instructions
json
.
RawMessage
`json:"instructions,omitempty"`
Instructions
json
.
RawMessage
`json:"instructions,omitempty"`
MaxOutputTokens
*
uint
`json:"max_output_tokens,omitempty"`
MaxOutputTokens
*
uint
`json:"max_output_tokens,omitempty"`
TopLogProbs
*
int
`json:"top_logprobs,omitempty"`
TopLogProbs
*
int
`json:"top_logprobs,omitempty"`
Metadata
json
.
RawMessage
`json:"metadata,omitempty"`
Metadata
json
.
RawMessage
`json:"metadata,omitempty"`
Moderation
json
.
RawMessage
`json:"moderation,omitempty"`
Moderation
json
.
RawMessage
`json:"moderation,omitempty"`
ParallelToolCalls
json
.
RawMessage
`json:"parallel_tool_calls,omitempty"`
ParallelToolCalls
json
.
RawMessage
`json:"parallel_tool_calls,omitempty"`
// FrequencyPenalty/PresencePenalty are not part of the official OpenAI
// FrequencyPenalty/PresencePenalty are not part of the official OpenAI
// Responses API; they are forwarded verbatim for OpenAI-compatible upstreams
// Responses API; they are forwarded verbatim for OpenAI-compatible upstreams
// (e.g. vLLM) that accept them.
// (e.g. vLLM) that accept them.
...
...
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