dto.go 570 B

123456789101112131415161718192021
  1. package cloudflare
  2. import "one-api/dto"
  3. type CfRequest struct {
  4. Messages []dto.Message `json:"messages,omitempty"`
  5. Lora string `json:"lora,omitempty"`
  6. MaxTokens int `json:"max_tokens,omitempty"`
  7. Prompt string `json:"prompt,omitempty"`
  8. Raw bool `json:"raw,omitempty"`
  9. Stream bool `json:"stream,omitempty"`
  10. Temperature *float64 `json:"temperature,omitempty"`
  11. }
  12. type CfAudioResponse struct {
  13. Result CfSTTResult `json:"result"`
  14. }
  15. type CfSTTResult struct {
  16. Text string `json:"text"`
  17. }