diegosouzapw/OmniRoute · error · InnerAiStreamError

missing_credits

missing_credits

Error message

Inner.ai: not enough credits

What it means

Error "Inner.ai: not enough credits" thrown in diegosouzapw/OmniRoute.

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)

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/ce92546bcac4c4e5. Report an issue: GitHub.