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
d4706d6b
authored
Feb 25, 2025
by
1808837298@qq.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'main' into thinking
# Conflicts: # relay/channel/claude/dto.go
parents
7160012f
6c8016e5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
relay/channel/aws/dto.go
+2
-0
relay/channel/claude/dto.go
+2
-2
No files found.
relay/channel/aws/dto.go
View file @
d4706d6b
...
...
@@ -16,6 +16,7 @@ type AwsClaudeRequest struct {
StopSequences
[]
string
`json:"stop_sequences,omitempty"`
Tools
[]
claude
.
Tool
`json:"tools,omitempty"`
ToolChoice
any
`json:"tool_choice,omitempty"`
Thinking
*
claude
.
Thinking
`json:"thinking,omitempty"`
}
func
copyRequest
(
req
*
claude
.
ClaudeRequest
)
*
AwsClaudeRequest
{
...
...
@@ -30,5 +31,6 @@ func copyRequest(req *claude.ClaudeRequest) *AwsClaudeRequest {
StopSequences
:
req
.
StopSequences
,
Tools
:
req
.
Tools
,
ToolChoice
:
req
.
ToolChoice
,
Thinking
:
req
.
Thinking
,
}
}
relay/channel/claude/dto.go
View file @
d4706d6b
...
...
@@ -64,8 +64,8 @@ type ClaudeRequest struct {
}
type
Thinking
struct
{
Type
string
`json:"type
,omitempty
"`
BudgetTokens
int
`json:"budget_tokens
,omitempty
"`
Type
string
`json:"type"`
BudgetTokens
int
`json:"budget_tokens"`
}
type
ClaudeError
struct
{
...
...
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