fix: add /think and /no-think added to API to run with ollama

This commit is contained in:
2026-04-20 10:53:58 +02:00
parent 8a0edc3d59
commit 351dd3b608
6 changed files with 27 additions and 13 deletions

View File

@ -5,9 +5,15 @@ import (
"fmt"
)
// GenOptions permet de contrôler le comportement de génération par appel.
type GenOptions struct {
Think bool // active le mode raisonnement (Qwen3 /think)
NumCtx int // taille du contexte KV (0 = valeur par défaut du provider)
}
type Provider interface {
Name() string
Summarize(ctx context.Context, prompt string) (string, error)
Summarize(ctx context.Context, prompt string, opts GenOptions) (string, error)
ListModels(ctx context.Context) ([]string, error)
}