dto.go 614 B

1234567891011121314
  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. Messages []claude.ClaudeMessage `json:"messages"`
  7. MaxTokens int `json:"max_tokens,omitempty"`
  8. Temperature float64 `json:"temperature,omitempty"`
  9. TopP float64 `json:"top_p,omitempty"`
  10. TopK int `json:"top_k,omitempty"`
  11. StopSequences []string `json:"stop_sequences,omitempty"`
  12. }