dto.go 671 B

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