包含Go API项目的所有源代码、配置文件、Docker配置、文档和前端资源 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
22 lines
570 B
Go
22 lines
570 B
Go
package cloudflare
|
|
|
|
import "one-api/dto"
|
|
|
|
type CfRequest struct {
|
|
Messages []dto.Message `json:"messages,omitempty"`
|
|
Lora string `json:"lora,omitempty"`
|
|
MaxTokens int `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"`
|
|
}
|