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: 'llama-3.3-70b-versatile',
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
- // Only use OpenRouter if Groq is not available - use a model that supports tools
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: 'meta-llama/llama-3.3-70b-instruct',
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
  });
@@ -1,6 +1,6 @@
1
1
  import Groq from 'groq-sdk';
2
2
  import { createReadStream } from 'node:fs';
3
- const DEFAULT_MODEL = 'whisper-large-v3-turbo';
3
+ const DEFAULT_MODEL = 'whisper-large-v3';
4
4
  /**
5
5
  * Speech-to-Text service backed by Groq's hosted Whisper API (free tier).
6
6
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "twinclaw",
3
- "version": "1.2.4",
3
+ "version": "1.2.5",
4
4
  "description": "Eagle-eyed agentic AI gateway with multi-modal hooks and proactive memory.",
5
5
  "main": "dist/index.js",
6
6
  "bin": {