fix(models): preserve preset rename compatibility

This commit is contained in:
Xubin Ren committed 2026-08-16 11:50:56 +08:00
1 parent a956fe1d60
commit 0a6ee1c539
20 files changed
+307 -46

No files matched your search

@@ -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"
}
}
}