dto.go 842 B

1234567891011121314151617
  1. package vertex
  2. import "one-api/relay/channel/claude"
  3. type VertexAIClaudeRequest struct {
  4. AnthropicVersion string `json:"anthropic_version"`
  5. Messages []claude.ClaudeMessage `json:"messages"`
  6. System string `json:"system,omitempty"`
  7. MaxTokens int `json:"max_tokens,omitempty"`
  8. StopSequences []string `json:"stop_sequences,omitempty"`
  9. Stream bool `json:"stream,omitempty"`
  10. Temperature float64 `json:"temperature,omitempty"`
  11. TopP float64 `json:"top_p,omitempty"`
  12. TopK int `json:"top_k,omitempty"`
  13. Tools []claude.Tool `json:"tools,omitempty"`
  14. ToolChoice any `json:"tool_choice,omitempty"`
  15. }