Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AskChatGpt ¶ added in v1.2.10
Types ¶
type ApiKey ¶ added in v1.0.11
type ApiKey struct {
Key string `gorm:"column:key;index"`
}
ApiKey apikey表,存放openai key
type GptModel ¶ added in v1.2.10
type GptModel struct { Model string `gorm:"column:model"` MaxTokens int `gorm:"column:max_tokens"` Temperature float64 `gorm:"column:temperature"` TopP float64 `gorm:"column:top_p"` PresencePenalty float64 `gorm:"column:presence_penalty"` FrequencyPenalty float64 `gorm:"column:frequency_penalty"` ImageSize string `gorm:"column:image_size"` }
GptModel gptmodel表,存放gpt模型相关配置参数
Click to show internal directories.
Click to hide internal directories.