fix: support thinking for aws claude

This commit is contained in:
Laisky.Cai
2025-03-10 06:59:21 +00:00
parent de10e102bd
commit a0d7d5a965
2 changed files with 6 additions and 2 deletions

View File

@@ -44,4 +44,4 @@ COPY --from=builder2 /build/one-api /
EXPOSE 3000 EXPOSE 3000
WORKDIR /data WORKDIR /data
ENTRYPOINT ["/one-api"] ENTRYPOINT ["/one-api"]

View File

@@ -1,6 +1,9 @@
package aws package aws
import "github.com/songquanpeng/one-api/relay/adaptor/anthropic" import (
"github.com/songquanpeng/one-api/relay/adaptor/anthropic"
"github.com/songquanpeng/one-api/relay/model"
)
// Request is the request to AWS Claude // Request is the request to AWS Claude
// //
@@ -17,4 +20,5 @@ type Request struct {
StopSequences []string `json:"stop_sequences,omitempty"` StopSequences []string `json:"stop_sequences,omitempty"`
Tools []anthropic.Tool `json:"tools,omitempty"` Tools []anthropic.Tool `json:"tools,omitempty"`
ToolChoice any `json:"tool_choice,omitempty"` ToolChoice any `json:"tool_choice,omitempty"`
Thinking *model.Thinking `json:"thinking,omitempty"`
} }