Skip to content

Releases: TanStack/ai

@tanstack/ai-groq@0.4.3

15 Jun 12:20
def8582

Choose a tag to compare

Patch Changes

@tanstack/ai-grok@0.11.3

15 Jun 12:20
def8582

Choose a tag to compare

Patch Changes

@tanstack/ai-gemini@0.16.0

15 Jun 12:20
def8582

Choose a tag to compare

Minor Changes

  • #714 efa76c8 - Sync Gemini model metadata with Google's current published model list (#620, #621).

    Added

    • gemini-3.1-flash-lite (stable GA) — joins the existing gemini-3.1-flash-lite-preview entry and qualifies for the native combined tools + responseSchema streaming path (GEMINI_COMBINED_TOOLS_AND_SCHEMA_MODELS).

    Removed (retired by Google — these ids now 404 against the Gemini API or are no longer published)

    • gemini-3-pro-preview (verified 404; superseded by gemini-3.1-pro-preview)
    • gemini-2.5-flash-preview-09-2025 (superseded by stable gemini-2.5-flash)
    • gemini-2.5-flash-lite-preview-09-2025 (superseded by stable gemini-2.5-flash-lite)
    • gemini-2.0-flash and gemini-2.0-flash-lite (2.0 line retired from Google's published list)
    • gemini-2.0-flash-preview-image-generation (image; superseded by gemini-2.5-flash-image)

    Fixed

    • gemini-3.5-flash was missing from GeminiChatModelToolCapabilitiesByName, leaving its provider-tool typing broken.

    If you were passing a removed id to geminiText() / geminiSummarize(), switch to the listed successor (e.g. gemini-2.0-flashgemini-2.5-flash).

Patch Changes

@tanstack/ai-fal@0.8.0

15 Jun 12:19
def8582

Choose a tag to compare

Minor Changes

  • #723 22c9b42 - Surface fal's billed units as result.usage. The fal adapters now read fal's x-fal-billable-units response header off the result fetch and expose the billed quantity (usage.unitsBilled) on the generation result, so consumers can compute exact media-generation cost without wrapping fetch themselves.
    • TokenUsage gains an optional unitsBilled field for usage-based (non-token) billing, denominated in the provider's priced unit.
    • falImage, falAudio, falVideo, falSpeech, and falTranscription populate result.usage.unitsBilled when fal reports it.
    • VideoUrlResult gains an optional usage slot; getVideoJobStatus now emits the video:usage event and returns usage when the completed result reports billed units.

Patch Changes

@tanstack/ai-event-client@0.6.0

15 Jun 12:19
def8582

Choose a tag to compare

Minor Changes

  • #723 22c9b42 - Surface fal's billed units as result.usage. The fal adapters now read fal's x-fal-billable-units response header off the result fetch and expose the billed quantity (usage.unitsBilled) on the generation result, so consumers can compute exact media-generation cost without wrapping fetch themselves.

    • TokenUsage gains an optional unitsBilled field for usage-based (non-token) billing, denominated in the provider's priced unit.
    • falImage, falAudio, falVideo, falSpeech, and falTranscription populate result.usage.unitsBilled when fal reports it.
    • VideoUrlResult gains an optional usage slot; getVideoJobStatus now emits the video:usage event and returns usage when the completed result reports billed units.
  • #727 7d44569 - Add an 'error' terminal to ToolCallState. When a tool execution produces an output error, the StreamProcessor now transitions the tool-call part to state: 'error' instead of parking it at 'input-complete'.

    Previously an errored tool call left the tool-call part at 'input-complete' forever, so UIs that render lifecycle from the part's state could not distinguish "still executing" from "failed" without reverse-engineering the error-shaped output or the sibling tool-result part. The new terminal makes the tool-call state machine self-describing and symmetric with ToolResultState (which already has 'error'):

    if (part.type === 'tool-call' && part.state === 'error') {
      // render failure — no more inferring from output shape
    }

    The completion safety net (RUN_FINISHED / stream finalization) no longer downgrades a failed tool call back to 'input-complete', including when an output-error result arrives before TOOL_CALL_END.

Patch Changes

  • #696 ff267a5 - Surface server-executed tool results in devtools from the TOOL_CALL_RESULT event. The devtools middleware previously read results only off TOOL_CALL_END, which the adapter emits before the tool runs (so it carries no result). Now that chat() no longer re-emits a post-execution TOOL_CALL_END (see the @tanstack/ai #519 fix), results travel on the spec-compliant TOOL_CALL_RESULT event — the middleware now handles it so devtools keeps showing server-tool output.

  • Updated dependencies [ff267a5, 570c08a, 22c9b42, 215b6b4, 7d44569]:

    • @tanstack/ai@0.29.0

@tanstack/ai-elevenlabs@0.2.21

15 Jun 12:20
def8582

Choose a tag to compare

Patch Changes

@tanstack/ai-devtools-core@0.4.9

15 Jun 12:20
def8582

Choose a tag to compare

Patch Changes

@tanstack/ai-code-mode@0.2.6

15 Jun 12:19
def8582

Choose a tag to compare

Patch Changes

@tanstack/ai-code-mode-skills@0.2.6

15 Jun 12:19
def8582

Choose a tag to compare

Patch Changes

@tanstack/ai-client@0.17.0

15 Jun 12:20
def8582

Choose a tag to compare

Minor Changes

  • #727 7d44569 - Add an 'error' terminal to ToolCallState. When a tool execution produces an output error, the StreamProcessor now transitions the tool-call part to state: 'error' instead of parking it at 'input-complete'.

    Previously an errored tool call left the tool-call part at 'input-complete' forever, so UIs that render lifecycle from the part's state could not distinguish "still executing" from "failed" without reverse-engineering the error-shaped output or the sibling tool-result part. The new terminal makes the tool-call state machine self-describing and symmetric with ToolResultState (which already has 'error'):

    if (part.type === 'tool-call' && part.state === 'error') {
      // render failure — no more inferring from output shape
    }

    The completion safety net (RUN_FINISHED / stream finalization) no longer downgrades a failed tool call back to 'input-complete', including when an output-error result arrives before TOOL_CALL_END.

Patch Changes