diegosouzapw/OmniRoute · error

No vision-capable provider connected, cannot process image r

Error message

No vision-capable provider connected, cannot process image request

What it means

Error "No vision-capable provider connected, cannot process image request" thrown in diegosouzapw/OmniRoute.

Source

Thrown at src/lib/guardrails/visionBridgeHelpers.ts:402

  if (config.signal?.aborted) {
    throw new Error("Vision model call aborted");
  }

  // Auto-select the best vision model. `deps` is the router's existing
  // injectable credential-check seam — without forwarding it, tests (and any
  // embedder) cannot keep model selection away from the live connections DB.
  const modelToUse = await getBestVisionModel(
    {
      fixedModel: config.model,
      ...routerConfig,
    },
    deps
  );
  // (#8430) When no vision-capable provider has usable credentials on this
  // instance, surface a clear error instead of attempting a describe call that
  // would fail with an opaque auth/serde error upstream.
  if (!modelToUse) {
    throw new Error("No vision-capable provider connected, cannot process image request");
  }
  let lastError: Error | null = null;

  // Try primary model + fallbacks
  const modelsToTry = [modelToUse, ...(await getFallbackModels(modelToUse, routerConfig, deps))];
  const maxAttempts = Math.min(modelsToTry.length, routerConfig?.maxFallbackAttempts ?? 3);

  for (let attempt = 0; attempt < maxAttempts; attempt++) {
    if (config.signal?.aborted) {
      throw lastError ?? new Error("Vision model call aborted");
    }
    const currentModel = modelsToTry[attempt];
    const attemptStart = Date.now();
    try {
      const result = await callVisionModelSingle(
        imageDataUri,
        { ...config, model: currentModel },
        apiKey

View on GitHub (pinned to a179ffed5b)

When it happens

Trigger: Thrown at src/lib/guardrails/visionBridgeHelpers.ts:402 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of diegosouzapw/OmniRoute@a179ffed5b (2026-08-25). Data as JSON: /api/errors/aa085da2f1d211f6. Report an issue: GitHub.