mirror of
https://github.com/QuantumNous/new-api.git
synced 2026-04-19 00:57:27 +00:00
22 lines
593 B
Go
22 lines
593 B
Go
package cloudflare
|
|
|
|
import "github.com/QuantumNous/new-api/dto"
|
|
|
|
type CfRequest struct {
|
|
Messages []dto.Message `json:"messages,omitempty"`
|
|
Lora string `json:"lora,omitempty"`
|
|
MaxTokens uint `json:"max_tokens,omitempty"`
|
|
Prompt string `json:"prompt,omitempty"`
|
|
Raw bool `json:"raw,omitempty"`
|
|
Stream bool `json:"stream,omitempty"`
|
|
Temperature *float64 `json:"temperature,omitempty"`
|
|
}
|
|
|
|
type CfAudioResponse struct {
|
|
Result CfSTTResult `json:"result"`
|
|
}
|
|
|
|
type CfSTTResult struct {
|
|
Text string `json:"text"`
|
|
}
|