From aedcac6726fc44ffa996d9cb028d78c75108d168 Mon Sep 17 00:00:00 2001 From: Peter Stone Date: Thu, 4 Jun 2026 01:10:07 +0000 Subject: executor: don't send tool definitions to tinyllama models --- internal/executor/local.go | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3