TanStack
OSS
ai
Sign in / Sign up
Open main menu
ai
GitHub
Overview
Runs
Analytics
Loading workspace stats
Loading workspace insights...
Statistics interval
7 days
30 days
Latest CI Pipeline Executions
Status
Fix filter
Filter
Fuzzy
Filter range
Sort by
Sort by
Start time
Sort ascending
Sort descending
Succeeded
fix/758-fallback-structured-output-usage
1e449ddd ci: apply automated fixes
by autofix-ci...
a
Succeeded
fix/758-fallback-structured-output-usage
1e449ddd Merge fc9fc33fa810e516dfb2c20ad85c9b221d482260 into 2f2d8a9aa2b0b2463d2aa5461364d8cc1b519cdf
by Season Saw
S
Succeeded
fix/758-fallback-structured-output-usage
73d407bc fix(ai): forward token usage on the structured-output fallback path `fallbackStructuredOutputStream` — used by `chat({ outputSchema, stream: true })` whenever an adapter resolves the schema through the non-streaming `structuredOutput()` rather than a native streaming or combined path (Ollama, plus Anthropic and Gemini models that predate combined tools+schema support) — wrapped `structuredOutput()` but dropped the `usage` from its result. Consumers reading `RUN_FINISHED.usage` saw `undefined`, and the engine's `runOnUsage` middleware hook (gated on `chunk.usage`) never fired, so cost-tracking and observability layers reported zero token counts on that path. The synthesized `RUN_FINISHED` now carries the adapter-reported `usage`, matching the native streaming path. Adapters that don't report usage are unaffected — the conditional spread omits the key entirely. Adds unit coverage in chat-structured-output-stream.test.ts (usage forwarded; omitted when absent) and an e2e regression (anthropic-structured-usage) that drives the Anthropic adapter through the fallback against an aimock mount and asserts usage reaches RUN_FINISHED.usage.
by Season
S
Succeeded
fix/758-fallback-structured-output-usage
73d407bc Merge d69f3a92902063a59f0a53983adc1c55479f9584 into 2f2d8a9aa2b0b2463d2aa5461364d8cc1b519cdf
by Season Saw
S
Previous page
Previous
Next
Next page