28e53d90fc
- 统一 OpenAI 兼容 /v1 中继 + 渠道/额度/令牌/流水 - 各领域包:relay 模型网关、model 数据层、controller 管理 API
22 lines
602 B
Go
22 lines
602 B
Go
package cloudflare
|
|
|
|
import "github.com/QuantumNous/new-api/relaykit/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"`
|
|
}
|