twinclaw 1.2.4 → 1.2.5
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.
|
@@ -1081,17 +1081,27 @@ export class ModelRouter {
|
|
|
1081
1081
|
const groqInfo = PROVIDER_INFO.groq;
|
|
1082
1082
|
configModels.push({
|
|
1083
1083
|
id: MODEL_SLOT_IDS.FALLBACK_1,
|
|
1084
|
-
model: '
|
|
1084
|
+
model: 'qwen/qwen3-32b',
|
|
1085
1085
|
baseURL: groqInfo?.baseURL || 'https://api.groq.com/openai/v1/chat/completions',
|
|
1086
1086
|
apiKeyEnvName: 'GROQ_API_KEY',
|
|
1087
1087
|
});
|
|
1088
1088
|
}
|
|
1089
1089
|
else if (openRouterApiKey && !configModels.find((m) => m.id === MODEL_SLOT_IDS.FALLBACK_1)) {
|
|
1090
|
-
//
|
|
1090
|
+
// Use OpenRouter free models that support tools
|
|
1091
1091
|
const orInfo = PROVIDER_INFO.openrouter;
|
|
1092
1092
|
configModels.push({
|
|
1093
1093
|
id: MODEL_SLOT_IDS.FALLBACK_1,
|
|
1094
|
-
model: '
|
|
1094
|
+
model: 'arcee-ai/trinity-large-preview:free',
|
|
1095
|
+
baseURL: orInfo?.baseURL ? (orInfo.baseURL.endsWith('/chat/completions') ? orInfo.baseURL : `${orInfo.baseURL}/chat/completions`) : 'https://openrouter.ai/api/v1/chat/completions',
|
|
1096
|
+
apiKeyEnvName: 'OPENROUTER_API_KEY',
|
|
1097
|
+
});
|
|
1098
|
+
}
|
|
1099
|
+
// Add OpenRouter free model as FALLBACK_2 if available
|
|
1100
|
+
if (openRouterApiKey && !configModels.find((m) => m.id === MODEL_SLOT_IDS.FALLBACK_2)) {
|
|
1101
|
+
const orInfo = PROVIDER_INFO.openrouter;
|
|
1102
|
+
configModels.push({
|
|
1103
|
+
id: MODEL_SLOT_IDS.FALLBACK_2,
|
|
1104
|
+
model: 'arcee-ai/trinity-mini:free',
|
|
1095
1105
|
baseURL: orInfo?.baseURL ? (orInfo.baseURL.endsWith('/chat/completions') ? orInfo.baseURL : `${orInfo.baseURL}/chat/completions`) : 'https://openrouter.ai/api/v1/chat/completions',
|
|
1096
1106
|
apiKeyEnvName: 'OPENROUTER_API_KEY',
|
|
1097
1107
|
});
|