diegosouzapw/OmniRoute · error

Vision model call aborted

Error message

Vision model call aborted

What it means

Error "Vision model call aborted" thrown in diegosouzapw/OmniRoute.

Source

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

  if (!taskAware || !text) return basePrompt;
  const hint = text.length > 500 ? `${text.slice(0, 500)}…` : text;
  return `${basePrompt}\n\nThe user asked: "${hint}". Focus your description on what is relevant to answering this, and transcribe any text visible in the image.`;
}

/**
 * Call the vision model to get an image description.
 * Supports both OpenAI-compatible and Anthropic API formats.
 * Uses auto-routing to select the fastest available model.
 */
export async function callVisionModel(
  imageDataUri: string,
  config: VisionModelConfig,
  apiKey?: string,
  routerConfig?: Partial<import("./visionBridgeRouter").VisionBridgeRouterConfig>,
  deps?: import("./visionBridgeRouter").VisionBridgeRouterDeps
): Promise<string> {
  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");
  }

View on GitHub (pinned to a179ffed5b)

When it happens

Trigger: Thrown at src/lib/guardrails/visionBridgeHelpers.ts:385 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/1c03e2e6205a98fc. Report an issue: GitHub.