From 6a4a3ac89a74bd02eb39eb110c26f0f69fcefdba Mon Sep 17 00:00:00 2001 From: stevef Date: Mon, 20 Apr 2026 11:39:19 +0200 Subject: [PATCH] =?UTF-8?q?Implement=20visual=20provenance=20(=F0=9F=A6=9E?= =?UTF-8?q?)=20for=20fallback=20responses=20and=20update=20config.example.?= =?UTF-8?q?json=20with=20NVIDIA/FreeRide=20examples.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/config.example.json | 12 ++++++++++++ pkg/agent/loop_turn.go | 4 ++++ 2 files changed, 16 insertions(+) diff --git a/config/config.example.json b/config/config.example.json index 858472488..974d93dca 100644 --- a/config/config.example.json +++ b/config/config.example.json @@ -80,6 +80,15 @@ "api_key": "sk-key1", "api_base": "https://api1.example.com/v1" }, + { + "model_name": "nemotron-120b", + "model": "nvidia/nemotron-3-super-120b-a12b", + "protocol": "nvidia", + "api_base": "https://integrate.api.nvidia.com/v1", + "api_keys": [ + "env://NVIDIA_API_KEY" + ] + }, { "model_name": "loadbalanced-gpt-5.4", "model": "openai/gpt-5.4", @@ -429,6 +438,9 @@ "list_dir": { "enabled": true }, + "freeride": { + "enabled": true + }, "message": { "enabled": true }, diff --git a/pkg/agent/loop_turn.go b/pkg/agent/loop_turn.go index f0133e6f1..017b497a2 100644 --- a/pkg/agent/loop_turn.go +++ b/pkg/agent/loop_turn.go @@ -1475,6 +1475,10 @@ turnLoop: } ts.setPhase(TurnPhaseFinalizing) + // pico: freeride provenance marker + if used, model := ts.GetFallbackInfo(); used && model != "" { + finalContent += "\n\n🦞 provenance: fallback via " + model + } ts.setFinalContent(finalContent) if !ts.opts.NoHistory { finalMsg := providers.Message{Role: "assistant", Content: finalContent}