diff options
Diffstat (limited to 'internal')
| -rw-r--r-- | internal/executor/local.go | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/internal/executor/local.go b/internal/executor/local.go index 3f20fe7..09bfbfa 100644 --- a/internal/executor/local.go +++ b/internal/executor/local.go @@ -86,7 +86,16 @@ func (r *LocalRunner) Run(ctx context.Context, t *task.Task, e *storage.Executio v := r.DefaultTemperature temperature = &v } - tools := agentToolDefs() + + // Only provide tools if we aren't using a tiny model known to lack support. + effectiveModel := t.Agent.Model + if effectiveModel == "" && r.Client != nil { + effectiveModel = r.Client.Model + } + var tools []llm.Tool + if !strings.Contains(strings.ToLower(effectiveModel), "tinyllama") { + tools = agentToolDefs() + } start := time.Now() var totalIn, totalOut int |
