diegosouzapw/OmniRoute · error · InnerAiStreamError

reached_limit

reached_limit

Error message

Inner.ai: usage limit reached

What it means

Upstream quota signal in collectContent: Inner.ai emitted a 'reached_limit' event — the account hit its usage limit. The response stops mid-generation; depending on the limit type it may reset after a window, but it is an account-level cap, not a per-minute throttle.

Solutions

  1. Apply a connection cooldown until the usage window resets (prefer any reset hint from the event)
  2. Rotate to another Inner.ai account or provider via fallback
  3. If it persists past the window, mark the connection unavailable
Defensive patterns

Strategy: fallback

When it happens

Trigger: Thrown at open-sse/executors/inner-ai.ts:537 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/2958fa9eff062167. Report an issue: GitHub.

Appendix: source

Thrown at open-sse/executors/inner-ai.ts:537

      const type = data.type;
      if (type === "text" && typeof data.item === "string") {
        content += data.item;
        continue;
      }
      if (
        type === "missing_credits" ||
        type === "reached_limit" ||
        type === "rate_limit_reached" ||
        type === "rate_limit_longer_reached"
      ) {
        const errorMsg =
          type === "missing_credits"
            ? "Inner.ai: not enough credits"
            : type === "reached_limit"
              ? "Inner.ai: usage limit reached"
              : "Inner.ai: rate limit reached — try again later";
        throw new InnerAiStreamError(429, String(type), errorMsg);
      }
    }
  }
  return content;
}

// ── Executor ──────────────────────────────────────────────────────────────────

export class InnerAiExecutor extends BaseExecutor {
  constructor() {
    super("inner-ai", { id: "inner-ai", baseUrl: "https://chatapi.innerai.com" });
  }

  async execute(input: ExecuteInput) {
    const { body, credentials, signal, stream: wantStream } = input;
    const bodyObj = (body || {}) as Record<string, unknown>;

    const rawToken = String(credentials?.apiKey ?? "").trim();

View on GitHub (pinned to a179ffed5b)