fix(models): preserve preset rename compatibility

This commit is contained in:
Xubin Ren
2026-08-16 11:50:56 +08:00
parent a956fe1d60
commit 0a6ee1c539
20 changed files with 307 additions and 46 deletions
@@ -41,8 +41,7 @@ Merge this into `~/.nanobot/config.json`:
}
},
"modelPresets": {
"primary": {
"label": "Custom",
"Custom": {
"provider": "custom",
"model": "provider-model-name",
"maxTokens": 4096,
@@ -52,7 +51,7 @@ Merge this into `~/.nanobot/config.json`:
},
"agents": {
"defaults": {
"modelPreset": "primary"
"modelPreset": "Custom"
}
}
}