summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Stone <thepeterstone@gmail.com>2026-06-04 01:10:07 +0000
committerPeter Stone <thepeterstone@gmail.com>2026-06-04 01:10:07 +0000
commitaedcac6726fc44ffa996d9cb028d78c75108d168 (patch)
treebd9a736a82b03b9196fdfca5686f3baf89ba6663
parenta6ad24d9d4524ebef6ed40edf90c6597be876fbd (diff)
executor: don't send tool definitions to tinyllama models
-rw-r--r--internal/executor/local.go11
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