Skip to content

[Provider compatibility]: Kiro request cost is estimated at full list price per token although Kiro bills credits and caches context #8309

Closed

Description

@svc-aibot-363

Client or integration

Claude Code

Provider or upstream service

kiro

OpenCodex version

2.98.0 and 2.99.0 (same cost code on dev at 4a22eda)

Endpoint or capability

/v1/messages routed to Kiro: usage and cost accounting (Logs ~$ column, ocx usage, /api/usage)

Current behaviour

Every Kiro row is logged with usageStatus: "estimated", and its cost is the estimated input and output tokens at the model's Anthropic list price (for claude-opus-5.5, $4 input / $20 output per 1M tokens), on every turn.

The rows are estimated because Kiro sent no tokenUsage frame on any turn of this account: src/adapters/kiro-events.ts marks a figure upstreamReported only from that frame, and src/adapters/kiro/stream.ts falls back to estimated input without it. Of 72,334 Kiro rows in ~/.opencodex/usage.jsonl, 72,322 are estimated, 12 are unreported and none is upstream-reported.

Kiro does not bill tokens: it bills credits, and returns the billed amount in its meteringEvent. The adapter already parses it into usage.providerCredits (src/adapters/kiro/stream.ts, summed in src/server/request-log.ts), but estimateRequestCost / estimateAttemptCost (src/usage/cost.ts) never read it.

Two effects make the estimate far too high:

  1. Long conversations resend their whole context every turn. The token estimate grows linearly with context, while the billed credits grow much more slowly, which is consistent with Kiro caching the repeated context (the CodeWhisperer wire has no cache_control, and Kiro reports no cache tokens).
  2. A credit is cheaper than the list price of the tokens it covers.

Rows that Kiro refused or that were cancelled before generation have no output and no credits, and are priced at their estimated input like any other estimated row, although nothing was billed. This account has 2,986 such rows (HTTP 429: 1,587, 400: 715, 502: 200, 499: 199, 500: 187, 403: 43, 401: 38, 503: 13, 504: 4), for 865.8 M estimated input tokens.

Caching on Kiro's side is a hypothesis: the wire carries no cache field. The evidence is the billed credits per 1k estimated input below, which fall as the context grows. The fix does not depend on it, because it costs what Kiro reports in meteringEvent.

Expected behaviour

When the operator sets a USD price per credit for the provider, the cost of a Kiro request is providerCredits x price, which follows what Kiro billed, caching included. A row with no credits and no output costs nothing. Without a configured price, today's token estimate stays unchanged.

The price is configurable and has no default, because it depends on the plan: on https://kiro.dev/pricing/, Pro is $20 for 1,000 credits ($0.02), Pro+ $40 for 2,000, Pro Max $100 for 5,000, Power $200 for 10,000 (all $0.02), and add-on credits are $0.04.

Minimal redacted request or reproduction

# Any Claude Code conversation routed to Kiro, then compare the displayed cost with the billed credits:
ocx usage --range today --provider kiro --model claude-opus-5.5 --json   # summary.estimatedCostUsd
# per row in ~/.opencodex/usage.jsonl: usage.inputTokens (estimated) vs usage.providerCredits (billed)

Actual response or error

# One Kiro account, 2026-11-07, Pro-tier price of $0.02 per credit.
#                      ocx usage today (2.98.0)   providerCredits x $0.02
claude-opus-5.5        52.99 $                    35.03 $   (1,163 requests)
claude-sonnet-5.5       9.35 $                     0.82 $   (46 requests)

# 30 days, all Kiro rows (~39,500 requests):
token estimate, 5.5 models only     ~56,500 $
providerCredits x $0.02               1,240 $

# Billed credits against estimated input size, 23,000 claude-opus-5.5 rows (median):
estimated input      rows   median credits   credits per 1k input
  50k - 100k          834      0.48            ~0.0064
 100k - 200k         4416      0.66            ~0.0044
 200k - 400k         7340      1.17            ~0.0039
 400k+              10150      1.95            ~0.0025 - 0.0035

Upstream documentation

Suggested mapping or implementation notes

Proposed in #8452, opt-in and without effect when the key is not set:

  • src/types/provider.ts: optional providers.<name>.creditPriceUsd (USD per provider credit).
  • src/config/schema/config-schema.ts: accepts a finite number >= 0, rejects anything else on providers.<name>.creditPriceUsd.
  • src/usage/user-cost-overlays.ts: refreshUserCostOverlays loads the prices with the modelCosts overlays and includes them in the version signature, so /api/usage caches refresh when a price changes; exported as activeCreditPrices().
  • src/usage/cost.ts: in estimateRequestCost and estimateAttemptCost, when the provider has a credit price, cost.total is providerCredits x price; a row with no credits and outputTokens === 0 costs 0; a row with output but no credits keeps the token estimate. Token counts are unchanged.

Tests (tests/usage/usage-provider-credit-price.test.ts): token estimate without a price, credits x price with a price (request and combo attempt), refused row at 0 with a price and at the token estimate without one, other providers unaffected, version bump on a price change, schema accepts 0 and 0.04 and rejects -0.01, Infinity and "0.04". With tests/usage/usage-cost.test.ts and usage-haiku-5-5-pricing.test.ts: 253 pass. bun test tests/usage tests/config shows the same intermittent timeouts (usage-timeline, settings-stream-mode) with and without the patch.

Verified on the running proxy after a restart: a new claude-sonnet-5.5 request billed 0.01703 credits and raised ocx usage by exactly $0.000341, and the daily totals above match providerCredits x $0.02 to the cent for Opus, Sonnet and Haiku 5.5.

Additional context and attachments

Related to #8306 (Kiro request shape for Claude models). The protocol trace marks request.cache_control as degraded on almost every Claude Desktop request routed to Kiro; caching still happens on Kiro's side, which is why billed credits are the reliable figure.

Checks

  • I searched existing provider and compatibility issues.
  • The request and response were redacted.
  • The expected behaviour is based on an upstream specification or a concrete client requirement.

Activity

  1. added
    provider-compatibility
    provider
    on Nov 7, 2026
  2. svc-aibot-363 commented on Nov 7, 2026

    @svc-aibot-363
    ContributorAuthor

    Ready-to-apply patch

    The change proposed above, as a patch against dev at 6df9e1176767d5da2b674b7d9ee8a8df4bbf2b65. It applies cleanly with git apply and is independent of the #8306 patch. No PR is opened: a maintainer can apply, review and land it.

    What it changes

    File Change
    src/types/provider.ts optional providers.<name>.creditPriceUsd, USD per provider credit
    src/config/schema/config-schema.ts accepts a finite number >= 0; any other value is an issue on providers.<name>.creditPriceUsd
    src/usage/user-cost-overlays.ts refreshUserCostOverlays loads the prices and adds them to the overlay signature, so userCostOverlayVersion() and the /api/usage caches follow a price change; activeCreditPrices() exposes them
    src/usage/cost.ts estimateRequestCost and estimateAttemptCost take creditPrices (default activeCreditPrices()); with a price, cost.total = providerCredits x price; no credits and outputTokens === 0 costs 0; output without credits keeps the token estimate; token counts are unchanged

    Configuration, for a Kiro Pro plan:

    { "providers": { "kiro": { "creditPriceUsd": 0.02 } } }

    Tests

    New tests/usage/usage-provider-credit-price.test.ts (10 cases): token estimate without a price; credits x price for a request and for a combo attempt; output without credits keeps the token estimate; a refused row costs 0 with a price and keeps the token estimate without one; another provider is unaffected; a price change bumps the overlay version; the schema accepts 0 and 0.04 and rejects -0.01, Infinity and "0.04" on the right path.

    On dev + patch, Bun 1.4.4:

    bun test tests/usage/usage-provider-credit-price.test.ts tests/usage/usage-cost.test.ts tests/usage/usage-haiku-5-5-pricing.test.ts
    # included in the combined run reported on #8306: 1092 pass, the only failure is the K2h image timeout
    bun test tests/usage tests/config
    # same intermittent timeouts (usage-timeline, settings-stream-mode) with and without the patch

    The full bun run test suite was not run.

    Live check after a proxy restart with creditPriceUsd: 0.02: ocx usage --range today --provider kiro --model <m> equals the sum of providerCredits x 0.02 to the cent for claude-opus-5.5 (35.0348 $, 1,163 requests), claude-sonnet-5.5 (0.8175 $, 46) and claude-haiku-5.5 (0.0112 $, 29). One new claude-sonnet-5.5 request billed 0.01703 credits and raised the total by 0.000341 $.

    Patch (5 files, +150 / -4)
    diff --git a/src/config/schema/config-schema.ts b/src/config/schema/config-schema.ts
    index b57c3ef..eb93b0f 100644
    --- a/src/config/schema/config-schema.ts
    +++ b/src/config/schema/config-schema.ts
    @@ -778,6 +778,14 @@ export const configSchema = z.object({
             message: minMaxOutputError,
           });
         }
    +    const creditPrice = (provider as { creditPriceUsd?: unknown }).creditPriceUsd;
    +    if (creditPrice !== undefined && !(typeof creditPrice === "number" && Number.isFinite(creditPrice) && creditPrice >= 0)) {
    +      ctx.addIssue({
    +        code: "custom",
    +        path: ["providers", redactSecretString(name), "creditPriceUsd"],
    +        message: "creditPriceUsd must be a finite number greater than or equal to 0",
    +      });
    +    }
         const defaultMaxOutputError = positiveIntegerConfigError(
           (provider as { defaultMaxOutputTokens?: unknown }).defaultMaxOutputTokens,
           "defaultMaxOutputTokens",
    diff --git a/src/types/provider.ts b/src/types/provider.ts
    index 22be33e..71ae648 100644
    --- a/src/types/provider.ts
    +++ b/src/types/provider.ts
    @@ -711,6 +711,12 @@ export interface OcxProviderConfig {
        * all-zero entry means "not billable here" and falls through to the catalogs.
        */
       modelCosts?: Record<string, ProviderCostOverlay>;
    +  /**
    +   * USD per provider credit (for example Kiro credits). When set, a request whose usage carries
    +   * `providerCredits` is costed as credits x this price instead of from its estimated tokens, so
    +   * the estimate follows what the provider billed, provider-side caching included.
    +   */
    +  creditPriceUsd?: number;
       /**
        * Provider-wide auto-review (approval) model for routed models of this provider.
        *
    diff --git a/src/usage/cost.ts b/src/usage/cost.ts
    index 809aba5..1f0867b 100644
    --- a/src/usage/cost.ts
    +++ b/src/usage/cost.ts
    @@ -20,7 +20,7 @@ import { canonicalFastTierMarker } from "../providers/fastwire";
     import { baseProviderLabel } from "../providers/label";
     import type { PersistedUsageAttempt, UsageStatus } from "./log";
     import { canonicalAntigravityUsageModel } from "../providers/antigravity-models";
    -import { activeAccountPricingProviders, activeConfiguredProviders, activeUserCostOverlays, userCostOverlayVersion } from "./user-cost-overlays";
    +import { activeAccountPricingProviders, activeConfiguredProviders, activeCreditPrices, activeUserCostOverlays, userCostOverlayVersion } from "./user-cost-overlays";
     import {
       EXPECTED_PRICE_OVERLAYS,
       findExpectedPriceOverlay,
    @@ -610,11 +610,26 @@ function isOpenRouterPriorityLowerBound(
      * catalogs), priority/long-context tiers applied. Null when usage or price is
      * missing so combos can fail closed.
      */
    +/** Billed cost from provider credits, when the provider has a configured credit price. */
    +function creditCost(provider: string, usage: OcxUsage, creditPrices: ReadonlyMap<string, number>): CostBreakdown | null {
    +  const price = creditPrices.get(provider);
    +  if (price === undefined) return null;
    +  const credits = usage.providerCredits;
    +  if (typeof credits === "number" && Number.isFinite(credits) && credits >= 0) {
    +    return { input: 0, output: 0, cacheRead: 0, cacheWrite: 0, total: credits * price };
    +  }
    +  // A credit-billed provider reports credits on every metered response; no credits and no output
    +  // means the request was refused or cancelled before generation, which the provider does not bill.
    +  if (usage.outputTokens === 0) return { input: 0, output: 0, cacheRead: 0, cacheWrite: 0, total: 0 };
    +  return null;
    +}
    +
     export function estimateAttemptCost(
       attempt: AttemptCostInput,
       overlays: readonly ExpectedPriceOverlay[] = EXPECTED_PRICE_OVERLAYS,
       serviceTier?: ServiceTierInput,
       userOverlays: readonly ExpectedPriceOverlay[] = activeUserCostOverlays(),
    +  creditPrices: ReadonlyMap<string, number> = activeCreditPrices(),
     ): AttemptCostEstimate | null {
       if (!isMeasuredStatus(attempt.usageStatus) || !attempt.usage) return null;
       const tokens = normalizeCostTokens(attempt.usage);
    @@ -638,7 +653,7 @@ export function estimateAttemptCost(
         model: attempt.model,
         tokens,
         price,
    -    cost: calculateCost(tokens, effectiveCost4),
    +    cost: creditCost(attempt.provider, attempt.usage, creditPrices) ?? calculateCost(tokens, effectiveCost4),
         estimated: isEstimated(attempt.usage, attempt.usageStatus, price.status),
         ...(multiplier !== 1 ? { priorityMultiplier: multiplier } : {}),
         ...(contextTier ? { contextTier } : {}),
    @@ -706,6 +721,7 @@ export function estimateRequestCost(
       },
       overlays: readonly ExpectedPriceOverlay[] = EXPECTED_PRICE_OVERLAYS,
       userOverlays: readonly ExpectedPriceOverlay[] = activeUserCostOverlays(),
    +  creditPrices: ReadonlyMap<string, number> = activeCreditPrices(),
     ): CostEstimate | null {
       if (!isMeasuredStatus(input.usageStatus) || !input.usage) return null;
       const tokens = normalizeCostTokens(input.usage);
    @@ -725,7 +741,7 @@ export function estimateRequestCost(
       return {
         tokens,
         price,
    -    cost: calculateCost(tokens, effectiveCost4),
    +    cost: creditCost(input.provider, input.usage, creditPrices) ?? calculateCost(tokens, effectiveCost4),
         estimated: isEstimated(input.usage, input.usageStatus, price.status),
         ...(multiplier !== 1 ? { priorityMultiplier: multiplier } : {}),
         ...(contextTier ? { contextTier } : {}),
    diff --git a/src/usage/user-cost-overlays.ts b/src/usage/user-cost-overlays.ts
    index 0588578..d125771 100644
    --- a/src/usage/user-cost-overlays.ts
    +++ b/src/usage/user-cost-overlays.ts
    @@ -33,6 +33,7 @@ let activeSignature = "";
     let activeConfigured = new Set<string>();
     let activeAccountProviders = codexAccountProviders([]);
     let version = 0;
    +let creditPriceByProvider: ReadonlyMap<string, number> = new Map();
     let preservedDiskOnlyProviders: Record<string, OcxProviderConfig> | null = null;
     
     /**
    @@ -259,9 +260,12 @@ export function refreshUserCostOverlays(config: OcxConfig): void {
       commitPersistedProviderDeletions(config);
     
       const rows: ExpectedPriceOverlay[] = [];
    +  const creditPrices = new Map<string, number>();
       const providers = config.providers;
       if (providers) {
         for (const [providerName, provider] of Object.entries(providers)) {
    +      const creditPrice = provider?.creditPriceUsd;
    +      if (typeof creditPrice === "number" && Number.isFinite(creditPrice) && creditPrice >= 0) creditPrices.set(providerName, creditPrice);
           const costs = provider?.modelCosts;
           if (!costs || typeof costs !== "object" || Array.isArray(costs)) continue;
           for (const [modelId, cost4] of Object.entries(costs)) {
    @@ -311,15 +315,22 @@ export function refreshUserCostOverlays(config: OcxConfig): void {
       const configuredNames = Object.keys(providers ?? {}).sort();
       const accountProviders = codexAccountProviders(config.codexAccounts);
       const accountEntries = [...accountProviders].sort(([a], [b]) => a < b ? -1 : a > b ? 1 : 0);
    -  const signature = `${JSON.stringify(configuredNames)}\u0000${JSON.stringify(rows)}\u0000${JSON.stringify(accountEntries)}`;
    +  const creditEntries = [...creditPrices].sort(([a], [b]) => a < b ? -1 : a > b ? 1 : 0);
    +  const signature = `${JSON.stringify(configuredNames)}\u0000${JSON.stringify(rows)}\u0000${JSON.stringify(accountEntries)}\u0000${JSON.stringify(creditEntries)}`;
       if (signature === activeSignature) return;
       activeSignature = signature;
       active = rows;
    +  creditPriceByProvider = new Map(creditEntries);
       activeConfigured = new Set(configuredNames);
       activeAccountProviders = accountProviders;
       version++;
     }
     
    +/** USD per provider credit, by configured provider name (`providers.<name>.creditPriceUsd`). */
    +export function activeCreditPrices(): ReadonlyMap<string, number> {
    +  return creditPriceByProvider;
    +}
    +
     /** Active user-configured overlay rows (stable identity until the next refresh). */
     export function activeUserCostOverlays(): readonly ExpectedPriceOverlay[] {
       return active;
    diff --git a/tests/usage/usage-provider-credit-price.test.ts b/tests/usage/usage-provider-credit-price.test.ts
    new file mode 100644
    index 0000000..e8d528d
    --- /dev/null
    +++ b/tests/usage/usage-provider-credit-price.test.ts
    @@ -0,0 +1,105 @@
    +import { afterEach, describe, expect, test } from "bun:test";
    +import { estimateAttemptCost, estimateRequestCost } from "../../src/usage/cost";
    +import { activeCreditPrices, refreshUserCostOverlays, userCostOverlayVersion } from "../../src/usage/user-cost-overlays";
    +import type { OcxConfig } from "../../src/types";
    +
    +// Kiro bills credits and caches repeated context on its side, but reports no cache tokens. Pricing
    +// its estimated input at list price overstates long conversations; credits x a configured price
    +// follows what was billed.
    +const kiroConfig = (creditPriceUsd?: number): OcxConfig => ({
    +  port: 0,
    +  providers: {
    +    kiro: { adapter: "kiro", baseUrl: "https://runtime.us-east-1.kiro.dev", authMode: "oauth", ...(creditPriceUsd === undefined ? {} : { creditPriceUsd }) },
    +  },
    +} as unknown as OcxConfig);
    +
    +const longTurn = { inputTokens: 600_000, outputTokens: 400, providerCredits: 1.95, estimated: true } as const;
    +
    +afterEach(() => refreshUserCostOverlays(kiroConfig()));
    +
    +describe("provider credit price", () => {
    +  test("without a credit price, a Kiro row keeps the token estimate", () => {
    +    refreshUserCostOverlays(kiroConfig());
    +    const estimate = estimateRequestCost({ provider: "kiro", model: "claude-opus-5.5", usage: longTurn, usageStatus: "estimated" });
    +
    +    expect(estimate?.cost.total).toBeCloseTo(600_000 * 4 / 1e6 + 400 * 20 / 1e6, 6);
    +  });
    +
    +  test("with a credit price, a Kiro row is credits x price", () => {
    +    refreshUserCostOverlays(kiroConfig(0.04));
    +    const estimate = estimateRequestCost({ provider: "kiro", model: "claude-opus-5.5", usage: longTurn, usageStatus: "estimated" });
    +
    +    expect(estimate?.cost.total).toBeCloseTo(1.95 * 0.04, 9);
    +    expect(estimate?.tokens.input).toBe(600_000);
    +  });
    +
    +  test("a combo attempt follows the same rule", () => {
    +    refreshUserCostOverlays(kiroConfig(0.04));
    +    const estimate = estimateAttemptCost({ ordinal: 1, provider: "kiro", model: "claude-opus-5.5", usage: longTurn, usageStatus: "estimated" });
    +
    +    expect(estimate?.cost.total).toBeCloseTo(1.95 * 0.04, 9);
    +  });
    +
    +  test("a row with output but no credits keeps the token estimate even when a price is set", () => {
    +    refreshUserCostOverlays(kiroConfig(0.04));
    +    const { providerCredits: _unused, ...noCredits } = longTurn;
    +    const estimate = estimateRequestCost({ provider: "kiro", model: "claude-opus-5.5", usage: noCredits, usageStatus: "estimated" });
    +
    +    expect(estimate?.cost.total).toBeCloseTo(600_000 * 4 / 1e6 + 400 * 20 / 1e6, 6);
    +  });
    +
    +  test("a refused or cancelled row (no credits, no output) costs nothing when a price is set", () => {
    +    refreshUserCostOverlays(kiroConfig(0.04));
    +    const refused = { inputTokens: 130_000, outputTokens: 0, estimated: true };
    +    const estimate = estimateRequestCost({ provider: "kiro", model: "claude-opus-5.5", usage: refused, usageStatus: "estimated" });
    +
    +    expect(estimate?.cost.total).toBe(0);
    +  });
    +
    +  test("without a price, a refused row keeps the token estimate", () => {
    +    refreshUserCostOverlays(kiroConfig());
    +    const refused = { inputTokens: 130_000, outputTokens: 0, estimated: true };
    +    const estimate = estimateRequestCost({ provider: "kiro", model: "claude-opus-5.5", usage: refused, usageStatus: "estimated" });
    +
    +    expect(estimate?.cost.total).toBeCloseTo(130_000 * 4 / 1e6, 6);
    +  });
    +
    +  test("another provider is not affected by Kiro's credit price", () => {
    +    refreshUserCostOverlays(kiroConfig(0.04));
    +    const estimate = estimateRequestCost({ provider: "anthropic", model: "claude-opus-5-5", usage: { ...longTurn }, usageStatus: "reported" });
    +
    +    expect(estimate?.cost.total).toBeGreaterThan(1);
    +  });
    +
    +  test("changing the credit price bumps the overlay version so cached summaries refresh", () => {
    +    refreshUserCostOverlays(kiroConfig(0.04));
    +    const before = userCostOverlayVersion();
    +    refreshUserCostOverlays(kiroConfig(0.02));
    +
    +    expect(userCostOverlayVersion()).toBeGreaterThan(before);
    +    expect(activeCreditPrices().get("kiro")).toBe(0.02);
    +  });
    +});
    +
    +describe("providers.<name>.creditPriceUsd config", () => {
    +  const withPrice = (creditPriceUsd: unknown) => ({
    +    port: 0,
    +    defaultProvider: "kiro",
    +    providers: { kiro: { adapter: "kiro", baseUrl: "https://runtime.us-east-1.kiro.dev", authMode: "oauth", creditPriceUsd } },
    +  });
    +
    +  test("a non-negative number is accepted", async () => {
    +    const { configSchema } = await import("../../src/config/schema/config-schema");
    +    expect(configSchema.safeParse(withPrice(0.04)).success).toBe(true);
    +    expect(configSchema.safeParse(withPrice(0)).success).toBe(true);
    +  });
    +
    +  test("a negative, non-finite or non-numeric value is rejected on its path", async () => {
    +    const { configSchema } = await import("../../src/config/schema/config-schema");
    +    for (const bad of [-0.01, Number.POSITIVE_INFINITY, "0.04"]) {
    +      const result = configSchema.safeParse(withPrice(bad));
    +      expect(result.success).toBe(false);
    +      expect(result.error?.issues.some(issue => issue.path.join(".") === "providers.kiro.creditPriceUsd")).toBe(true);
    +    }
    +  });
    +});
  3. Ingwannu commented on Nov 8, 2026

    @Ingwannu
    Owner

    Verified on dev (f8dfc2f):

    Not verified here: that server-side caching explains the gap between estimated tokens and billed credits (the Kiro wire carries no cache field, so that is a hypothesis), and that refused or cancelled rows are priced at full input.

    A per-credit price is a new configuration field and changes the cost model, so it is a feature decision for the owner rather than a bug fix. Please do not treat the attached patch as reviewed; it is a comment, not a PR.

  4. svc-aibot-363 commented on Nov 9, 2026

    @svc-aibot-363
    ContributorAuthor

    Thanks for checking. The PR is #8452; the per-credit price is opt-in and leaves every cost unchanged when it is not set, so the feature decision stays with the owner on the PR.

    On your points, from this account's local usage.jsonl (72,334 Kiro rows):

    • tokenUsage frame: 72,322 rows are estimated and 12 unreported; none carries an upstream-reported figure. On this account Kiro never sent a tokenUsage frame, so every Kiro cost shown is the token estimate. I will add that to the issue.
    • Caching: agreed, it is a hypothesis. The evidence is the billed credits per 1k estimated input, which fall from about 0.0064 at 50k-100k tokens to 0.0025-0.0035 above 400k. The PR does not depend on it: it costs what Kiro reports in meteringEvent.
    • Refused or cancelled rows: 2,986 rows have no output and no credits (HTTP 429: 1,587, 400: 715, 502: 200, 499: 199, 500: 187, 403: 43, 401: 38, 503: 13, 504: 4), for 865.8 M estimated input tokens. estimateRequestCost prices them like any other estimated row; the test "without a price, a refused row keeps the token estimate" in the PR runs that unchanged path.
  5. added a commit that references this issue on Nov 19, 2026
    9f777c1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    providerprovider-compatibility

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions