Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.
 
 
 

22 rader
593 B

  1. package cloudflare
  2. import "github.com/QuantumNous/new-api/dto"
  3. type CfRequest struct {
  4. Messages []dto.Message `json:"messages,omitempty"`
  5. Lora string `json:"lora,omitempty"`
  6. MaxTokens uint `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. }