dto.go 814 B

12345678910111213141516171819
  1. package aws
  2. import (
  3. "one-api/relay/channel/claude"
  4. )
  5. type AwsClaudeRequest struct {
  6. // AnthropicVersion should be "bedrock-2023-05-31"
  7. AnthropicVersion string `json:"anthropic_version"`
  8. System string `json:"system"`
  9. Messages []claude.ClaudeMessage `json:"messages"`
  10. MaxTokens int `json:"max_tokens,omitempty"`
  11. Temperature float64 `json:"temperature,omitempty"`
  12. TopP float64 `json:"top_p,omitempty"`
  13. TopK int `json:"top_k,omitempty"`
  14. StopSequences []string `json:"stop_sequences,omitempty"`
  15. Tools []claude.Tool `json:"tools,omitempty"`
  16. ToolChoice any `json:"tool_choice,omitempty"`
  17. }