mirror of
https://github.com/danielmiessler/fabric
synced 2024-11-10 07:10:31 +00:00
22 lines
370 B
Go
22 lines
370 B
Go
package common
|
|
|
|
type Message struct {
|
|
Role string `json:"role"`
|
|
Content string `json:"content"`
|
|
}
|
|
|
|
type ChatRequest struct {
|
|
ContextName string
|
|
SessionName string
|
|
PatternName string
|
|
Message string
|
|
}
|
|
|
|
type ChatOptions struct {
|
|
Model string
|
|
Temperature float64
|
|
TopP float64
|
|
PresencePenalty float64
|
|
FrequencyPenalty float64
|
|
}
|