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
aebe06d2
authored
Oct 24, 2024
by
1808837298@qq.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: aws claude tools
parent
6e3d8b55
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletions
+5
-1
relay/channel/aws/dto.go
+5
-1
No files found.
relay/channel/aws/dto.go
View file @
aebe06d2
package
aws
package
aws
import
"one-api/relay/channel/claude"
import
(
"one-api/relay/channel/claude"
)
type
AwsClaudeRequest
struct
{
type
AwsClaudeRequest
struct
{
// AnthropicVersion should be "bedrock-2023-05-31"
// AnthropicVersion should be "bedrock-2023-05-31"
...
@@ -12,4 +14,6 @@ type AwsClaudeRequest struct {
...
@@ -12,4 +14,6 @@ type AwsClaudeRequest struct {
TopP
float64
`json:"top_p,omitempty"`
TopP
float64
`json:"top_p,omitempty"`
TopK
int
`json:"top_k,omitempty"`
TopK
int
`json:"top_k,omitempty"`
StopSequences
[]
string
`json:"stop_sequences,omitempty"`
StopSequences
[]
string
`json:"stop_sequences,omitempty"`
Tools
[]
claude
.
Tool
`json:"tools,omitempty"`
ToolChoice
any
`json:"tool_choice,omitempty"`
}
}
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