cawdex 1.35.68 → 1.35.69
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/index.js +10 -9
- package/dist/index.js.map +1 -1
- package/dist/instant-answer.js +3 -0
- package/dist/instant-answer.js.map +1 -1
- package/dist/query.js +2 -1
- package/dist/query.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -246,7 +246,7 @@ async function setupWizard(rl, currentConfig) {
|
|
|
246
246
|
const modelInput = await rl.question(chalk.yellow(` Model [${model}]: `));
|
|
247
247
|
if (modelInput.trim())
|
|
248
248
|
model = modelInput.trim();
|
|
249
|
-
// Auto-heal known-flaky
|
|
249
|
+
// Auto-heal known-slow / known-flaky OpenRouter models. These
|
|
250
250
|
// IDs frequently return empty responses, the literal string "ERROR",
|
|
251
251
|
// or no first stream event. Warning-only was not enough: users could
|
|
252
252
|
// save a broken first-run config and every prompt looked like it was
|
|
@@ -254,8 +254,8 @@ async function setupWizard(rl, currentConfig) {
|
|
|
254
254
|
// debugging, but default normal users back to the free router.
|
|
255
255
|
if (isKnownFlakyOpenRouterModel({ provider: provider.name, model })) {
|
|
256
256
|
console.log('');
|
|
257
|
-
console.log(chalk.yellow(` ⚠ "${model}" is
|
|
258
|
-
console.log(chalk.yellow(` empty
|
|
257
|
+
console.log(chalk.yellow(` ⚠ "${model}" is known to stall badly in interactive OpenRouter sessions`));
|
|
258
|
+
console.log(chalk.yellow(` or return empty / "ERROR" responses.`));
|
|
259
259
|
if (process.env.CAWDEX_ALLOW_FLAKY_MODELS === '1') {
|
|
260
260
|
console.log(chalk.dim(' Keeping it because CAWDEX_ALLOW_FLAKY_MODELS=1 is set.'));
|
|
261
261
|
}
|
|
@@ -3345,13 +3345,14 @@ async function main() {
|
|
|
3345
3345
|
}
|
|
3346
3346
|
// ── Flaky-model warning at REPL launch ───────────────
|
|
3347
3347
|
// The setup wizard already warns when a user TYPES one of these
|
|
3348
|
-
//
|
|
3349
|
-
// saved before that check landed never see the
|
|
3350
|
-
// every launch so they get a chance to switch via
|
|
3351
|
-
// they hit the "model returns nothing, REPL looks
|
|
3348
|
+
// known-slow / known-flaky OpenRouter models, but returning users
|
|
3349
|
+
// whose config was saved before that check landed never see the
|
|
3350
|
+
// warning. Print it every launch so they get a chance to switch via
|
|
3351
|
+
// /model before they hit the "model returns nothing, REPL looks
|
|
3352
|
+
// frozen" footgun.
|
|
3352
3353
|
if (isKnownFlakyOpenRouterModel(config)) {
|
|
3353
|
-
console.log(theme.warning(` ⚠ Active model "${config.model}" is
|
|
3354
|
-
console.log(theme.warning(` return empty
|
|
3354
|
+
console.log(theme.warning(` ⚠ Active model "${config.model}" is known to stall in interactive OpenRouter sessions`));
|
|
3355
|
+
console.log(theme.warning(` or return empty / "ERROR" responses.`));
|
|
3355
3356
|
console.log(theme.dim(` Switch with /openrouter-free or /model openrouter/free.`));
|
|
3356
3357
|
console.log('');
|
|
3357
3358
|
}
|