@kernel.chat/kbot 3.99.16 → 3.99.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/auth.js +7 -0
- package/package.json +1 -1
package/dist/auth.js
CHANGED
|
@@ -460,6 +460,13 @@ function isModelAvailable(model, available) {
|
|
|
460
460
|
/** Select the best Ollama model for a given message, only from available models */
|
|
461
461
|
export function selectOllamaModel(message, availableModels) {
|
|
462
462
|
const available = availableModels || cachedOllamaModels;
|
|
463
|
+
// If the user has set a local_model in config, honor it — smart routing
|
|
464
|
+
// should never silently override the user's explicit choice. Only fall back
|
|
465
|
+
// to keyword routing when no config is set.
|
|
466
|
+
const userConfiguredModel = loadConfigRaw().local_model;
|
|
467
|
+
if (userConfiguredModel && (available.length === 0 || isModelAvailable(userConfiguredModel, available))) {
|
|
468
|
+
return userConfiguredModel;
|
|
469
|
+
}
|
|
463
470
|
if (available.length === 0)
|
|
464
471
|
return PROVIDERS.ollama.defaultModel;
|
|
465
472
|
for (const route of OLLAMA_MODEL_ROUTES) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kernel.chat/kbot",
|
|
3
|
-
"version": "3.99.
|
|
3
|
+
"version": "3.99.17",
|
|
4
4
|
"description": "Open-source terminal AI agent. 787+ tools, 35 agents, 20 providers. Dreams, learns, watches your system. Controls your phone. Fully local, fully sovereign. MIT.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": {
|