Implement visual provenance (🦞) for fallback responses and update config.example.json with NVIDIA/FreeRide examples.
This commit is contained in:
parent
f1b1f742b2
commit
6a4a3ac89a
2 changed files with 16 additions and 0 deletions
|
|
@ -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
|
||||
},
|
||||
|
|
|
|||
|
|
@ -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}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue