mirror of
https://github.com/songquanpeng/one-api.git
synced 2025-09-17 17:16:38 +08:00
* fix:修复在渠道配置中设置模型重定向时,temperature为0被忽略的问题 * fix: set optional fields to pointer type --------- Co-authored-by: JustSong <songquanpeng@foxmail.com>
14 lines
489 B
Go
14 lines
489 B
Go
package cloudflare
|
|
|
|
import "github.com/songquanpeng/one-api/relay/model"
|
|
|
|
type Request struct {
|
|
Messages []model.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"`
|
|
}
|