Documentation ¶
Index ¶
- type ChatDb
- func (s *ChatDb) DeleteContext(userId string)
- func (s *ChatDb) GetContext(userId string) []string
- func (s *ChatDb) GetModel(userId string) string
- func (s *ChatDb) GetTemperature(userId string) float32
- func (s *ChatDb) GetTopP(userId string) float32
- func (s *ChatDb) SetContext(userId string, content []string)
- func (s *ChatDb) SetModel(userId string, model string)
- func (s *ChatDb) SetTemperature(userId string, temperature float32)
- func (s *ChatDb) SetTopP(userId string, topP float32)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChatDb ¶
type ChatDb struct {
// contains filtered or unexported fields
}
func (*ChatDb) GetTemperature ¶
GetTemperature 获取会话Temperature
func (*ChatDb) SetContext ¶
SetContext 设置会话上下文
func (*ChatDb) SetTemperature ¶
SetTemperature 设置会话Temperature
Click to show internal directories.
Click to hide internal directories.