feat: gitea client
This commit is contained in:
@@ -1,5 +1,9 @@
|
||||
package chatter
|
||||
|
||||
import (
|
||||
"context"
|
||||
)
|
||||
|
||||
// Role defines who sent the message
|
||||
type Role string
|
||||
|
||||
@@ -15,6 +19,10 @@ type Message struct {
|
||||
Content string
|
||||
}
|
||||
|
||||
type ChatAdapter interface {
|
||||
GenerateStructured(ctx context.Context, messages []Message, target interface{}) error
|
||||
}
|
||||
|
||||
// PredictionConfig allows for per-request overrides
|
||||
type PredictionConfig struct {
|
||||
Temperature float64
|
||||
|
||||
Reference in New Issue
Block a user