This commit is contained in:
u80864958
2026-02-12 16:02:38 +01:00
commit 3d4d908d54
14 changed files with 885 additions and 0 deletions

23
internal/chatter/model.go Normal file
View 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
}