init
This commit is contained in:
23
internal/chatter/model.go
Normal file
23
internal/chatter/model.go
Normal file
@@ -0,0 +1,23 @@
|
||||
package chatter
|
||||
|
||||
// Role defines who sent the message
|
||||
type Role string
|
||||
|
||||
const (
|
||||
RoleSystem Role = "system"
|
||||
RoleUser Role = "user"
|
||||
RoleAssistant Role = "assistant"
|
||||
)
|
||||
|
||||
// Message represents a single turn in a conversation
|
||||
type Message struct {
|
||||
Role Role
|
||||
Content string
|
||||
}
|
||||
|
||||
// PredictionConfig allows for per-request overrides
|
||||
type PredictionConfig struct {
|
||||
Temperature float64
|
||||
MaxTokens int
|
||||
Stop []string
|
||||
}
|
||||
Reference in New Issue
Block a user