ci: Version Packages#637
Merged
Merged
Conversation
AlemTuzlak
approved these changes
May 25, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.
Releases
@tanstack/ai@0.22.0
Minor Changes
Route
chat({ outputSchema, tools })through the provider's native single-pass call where supported (modern OpenAI Chat Completions + Responses, Claude 4.5+, Gemini 3.x, Grok 4.x family). Closes Route structured-output through native combined-mode where supported (skip finalization round-trip) #605. (#609)Historically,
chat({ outputSchema, tools })ran the agent loop withtoolsand then issued a separate finalization call against the structured-output adapter for the typed answer — because most providers couldn't combinetoolswith a schema-constrained response in one call. That has changed for most modern providers, making the second round-trip pure overhead.New per-adapter capability:
TextAdapter.supportsCombinedToolsAndSchema?(modelOptions?). Adapters that opt in receive a JSON Schema onTextOptions.outputSchemainchatStreamand wire it into the upstream request alongsidetools. The engine harvests the final-turn JSON from the agent loop's accumulated text — no separate finalization call, no'structuredOutput'middleware phase.Per-adapter status:
response_format: json_schema/text.format: json_schemaattached whenoutputSchemais set.output_config.formaton the beta Messages request. Pre-4.5 Claude models keep the forced-tool finalization workaround. Gated by exportedANTHROPIC_COMBINED_TOOLS_AND_SCHEMA_MODELS.responseSchema+responseMimeType: 'application/json'into the regulargenerateContentStreamcall. Gemini 2.x keeps the legacy path. Gated by exportedGEMINI_COMBINED_TOOLS_AND_SCHEMA_MODELS.grok-4,grok-4-1-fast-*,grok-4-fast-*,grok-4-20*,grok-4-3,grok-code-fast-1). Inherits the OpenAI Chat Completions wiring fromopenai-base; the override gates the capability claim by model. Grok 2 / 3 keep the legacy path. Gated by exportedGROK_COMBINED_TOOLS_AND_SCHEMA_MODELS.response_format+tools+streamwith HTTP 400 ("Streaming and tool use are not currently supported with Structured Outputs").Backward compatibility:
'structuredOutput'middleware phase still fires for fallback-path adapters. It does NOT fire for adapters that handle the combination natively — middleware sees the run through'beforeModel'/'modelStream'as usual.onStructuredOutputConfigkeeps its existing surface but only fires on the fallback path.Patch Changes
@tanstack/ai-anthropic@0.11.0
Minor Changes
Route
chat({ outputSchema, tools })through the provider's native single-pass call where supported (modern OpenAI Chat Completions + Responses, Claude 4.5+, Gemini 3.x, Grok 4.x family). Closes Route structured-output through native combined-mode where supported (skip finalization round-trip) #605. (#609)Historically,
chat({ outputSchema, tools })ran the agent loop withtoolsand then issued a separate finalization call against the structured-output adapter for the typed answer — because most providers couldn't combinetoolswith a schema-constrained response in one call. That has changed for most modern providers, making the second round-trip pure overhead.New per-adapter capability:
TextAdapter.supportsCombinedToolsAndSchema?(modelOptions?). Adapters that opt in receive a JSON Schema onTextOptions.outputSchemainchatStreamand wire it into the upstream request alongsidetools. The engine harvests the final-turn JSON from the agent loop's accumulated text — no separate finalization call, no'structuredOutput'middleware phase.Per-adapter status:
response_format: json_schema/text.format: json_schemaattached whenoutputSchemais set.output_config.formaton the beta Messages request. Pre-4.5 Claude models keep the forced-tool finalization workaround. Gated by exportedANTHROPIC_COMBINED_TOOLS_AND_SCHEMA_MODELS.responseSchema+responseMimeType: 'application/json'into the regulargenerateContentStreamcall. Gemini 2.x keeps the legacy path. Gated by exportedGEMINI_COMBINED_TOOLS_AND_SCHEMA_MODELS.grok-4,grok-4-1-fast-*,grok-4-fast-*,grok-4-20*,grok-4-3,grok-code-fast-1). Inherits the OpenAI Chat Completions wiring fromopenai-base; the override gates the capability claim by model. Grok 2 / 3 keep the legacy path. Gated by exportedGROK_COMBINED_TOOLS_AND_SCHEMA_MODELS.response_format+tools+streamwith HTTP 400 ("Streaming and tool use are not currently supported with Structured Outputs").Backward compatibility:
'structuredOutput'middleware phase still fires for fallback-path adapters. It does NOT fire for adapters that handle the combination natively — middleware sees the run through'beforeModel'/'modelStream'as usual.onStructuredOutputConfigkeeps its existing surface but only fires on the fallback path.Patch Changes
02f7d04]:@tanstack/ai-gemini@0.11.0
Minor Changes
Route
chat({ outputSchema, tools })through the provider's native single-pass call where supported (modern OpenAI Chat Completions + Responses, Claude 4.5+, Gemini 3.x, Grok 4.x family). Closes Route structured-output through native combined-mode where supported (skip finalization round-trip) #605. (#609)Historically,
chat({ outputSchema, tools })ran the agent loop withtoolsand then issued a separate finalization call against the structured-output adapter for the typed answer — because most providers couldn't combinetoolswith a schema-constrained response in one call. That has changed for most modern providers, making the second round-trip pure overhead.New per-adapter capability:
TextAdapter.supportsCombinedToolsAndSchema?(modelOptions?). Adapters that opt in receive a JSON Schema onTextOptions.outputSchemainchatStreamand wire it into the upstream request alongsidetools. The engine harvests the final-turn JSON from the agent loop's accumulated text — no separate finalization call, no'structuredOutput'middleware phase.Per-adapter status:
response_format: json_schema/text.format: json_schemaattached whenoutputSchemais set.output_config.formaton the beta Messages request. Pre-4.5 Claude models keep the forced-tool finalization workaround. Gated by exportedANTHROPIC_COMBINED_TOOLS_AND_SCHEMA_MODELS.responseSchema+responseMimeType: 'application/json'into the regulargenerateContentStreamcall. Gemini 2.x keeps the legacy path. Gated by exportedGEMINI_COMBINED_TOOLS_AND_SCHEMA_MODELS.grok-4,grok-4-1-fast-*,grok-4-fast-*,grok-4-20*,grok-4-3,grok-code-fast-1). Inherits the OpenAI Chat Completions wiring fromopenai-base; the override gates the capability claim by model. Grok 2 / 3 keep the legacy path. Gated by exportedGROK_COMBINED_TOOLS_AND_SCHEMA_MODELS.response_format+tools+streamwith HTTP 400 ("Streaming and tool use are not currently supported with Structured Outputs").Backward compatibility:
'structuredOutput'middleware phase still fires for fallback-path adapters. It does NOT fire for adapters that handle the combination natively — middleware sees the run through'beforeModel'/'modelStream'as usual.onStructuredOutputConfigkeeps its existing surface but only fires on the fallback path.Patch Changes
02f7d04]:@tanstack/ai-grok@0.9.0
Minor Changes
Route
chat({ outputSchema, tools })through the provider's native single-pass call where supported (modern OpenAI Chat Completions + Responses, Claude 4.5+, Gemini 3.x, Grok 4.x family). Closes Route structured-output through native combined-mode where supported (skip finalization round-trip) #605. (#609)Historically,
chat({ outputSchema, tools })ran the agent loop withtoolsand then issued a separate finalization call against the structured-output adapter for the typed answer — because most providers couldn't combinetoolswith a schema-constrained response in one call. That has changed for most modern providers, making the second round-trip pure overhead.New per-adapter capability:
TextAdapter.supportsCombinedToolsAndSchema?(modelOptions?). Adapters that opt in receive a JSON Schema onTextOptions.outputSchemainchatStreamand wire it into the upstream request alongsidetools. The engine harvests the final-turn JSON from the agent loop's accumulated text — no separate finalization call, no'structuredOutput'middleware phase.Per-adapter status:
response_format: json_schema/text.format: json_schemaattached whenoutputSchemais set.output_config.formaton the beta Messages request. Pre-4.5 Claude models keep the forced-tool finalization workaround. Gated by exportedANTHROPIC_COMBINED_TOOLS_AND_SCHEMA_MODELS.responseSchema+responseMimeType: 'application/json'into the regulargenerateContentStreamcall. Gemini 2.x keeps the legacy path. Gated by exportedGEMINI_COMBINED_TOOLS_AND_SCHEMA_MODELS.grok-4,grok-4-1-fast-*,grok-4-fast-*,grok-4-20*,grok-4-3,grok-code-fast-1). Inherits the OpenAI Chat Completions wiring fromopenai-base; the override gates the capability claim by model. Grok 2 / 3 keep the legacy path. Gated by exportedGROK_COMBINED_TOOLS_AND_SCHEMA_MODELS.response_format+tools+streamwith HTTP 400 ("Streaming and tool use are not currently supported with Structured Outputs").Backward compatibility:
'structuredOutput'middleware phase still fires for fallback-path adapters. It does NOT fire for adapters that handle the combination natively — middleware sees the run through'beforeModel'/'modelStream'as usual.onStructuredOutputConfigkeeps its existing surface but only fires on the fallback path.Patch Changes
02f7d04]:@tanstack/openai-base@0.4.0
Minor Changes
Route
chat({ outputSchema, tools })through the provider's native single-pass call where supported (modern OpenAI Chat Completions + Responses, Claude 4.5+, Gemini 3.x, Grok 4.x family). Closes Route structured-output through native combined-mode where supported (skip finalization round-trip) #605. (#609)Historically,
chat({ outputSchema, tools })ran the agent loop withtoolsand then issued a separate finalization call against the structured-output adapter for the typed answer — because most providers couldn't combinetoolswith a schema-constrained response in one call. That has changed for most modern providers, making the second round-trip pure overhead.New per-adapter capability:
TextAdapter.supportsCombinedToolsAndSchema?(modelOptions?). Adapters that opt in receive a JSON Schema onTextOptions.outputSchemainchatStreamand wire it into the upstream request alongsidetools. The engine harvests the final-turn JSON from the agent loop's accumulated text — no separate finalization call, no'structuredOutput'middleware phase.Per-adapter status:
response_format: json_schema/text.format: json_schemaattached whenoutputSchemais set.output_config.formaton the beta Messages request. Pre-4.5 Claude models keep the forced-tool finalization workaround. Gated by exportedANTHROPIC_COMBINED_TOOLS_AND_SCHEMA_MODELS.responseSchema+responseMimeType: 'application/json'into the regulargenerateContentStreamcall. Gemini 2.x keeps the legacy path. Gated by exportedGEMINI_COMBINED_TOOLS_AND_SCHEMA_MODELS.grok-4,grok-4-1-fast-*,grok-4-fast-*,grok-4-20*,grok-4-3,grok-code-fast-1). Inherits the OpenAI Chat Completions wiring fromopenai-base; the override gates the capability claim by model. Grok 2 / 3 keep the legacy path. Gated by exportedGROK_COMBINED_TOOLS_AND_SCHEMA_MODELS.response_format+tools+streamwith HTTP 400 ("Streaming and tool use are not currently supported with Structured Outputs").Backward compatibility:
'structuredOutput'middleware phase still fires for fallback-path adapters. It does NOT fire for adapters that handle the combination natively — middleware sees the run through'beforeModel'/'modelStream'as usual.onStructuredOutputConfigkeeps its existing surface but only fires on the fallback path.Patch Changes
02f7d04]:@tanstack/ai-client@0.11.8
Patch Changes
02f7d04]:@tanstack/ai-code-mode@0.1.21
Patch Changes
02f7d04]:@tanstack/ai-code-mode-skills@0.1.21
Patch Changes
02f7d04]:@tanstack/ai-devtools-core@0.3.38
Patch Changes
02f7d04]:@tanstack/ai-elevenlabs@0.2.11
Patch Changes
02f7d04]:@tanstack/ai-event-client@0.3.11
Patch Changes
02f7d04]:@tanstack/ai-fal@0.7.14
Patch Changes
02f7d04]:@tanstack/ai-groq@0.2.7
Patch Changes
Route
chat({ outputSchema, tools })through the provider's native single-pass call where supported (modern OpenAI Chat Completions + Responses, Claude 4.5+, Gemini 3.x, Grok 4.x family). Closes Route structured-output through native combined-mode where supported (skip finalization round-trip) #605. (#609)Historically,
chat({ outputSchema, tools })ran the agent loop withtoolsand then issued a separate finalization call against the structured-output adapter for the typed answer — because most providers couldn't combinetoolswith a schema-constrained response in one call. That has changed for most modern providers, making the second round-trip pure overhead.New per-adapter capability:
TextAdapter.supportsCombinedToolsAndSchema?(modelOptions?). Adapters that opt in receive a JSON Schema onTextOptions.outputSchemainchatStreamand wire it into the upstream request alongsidetools. The engine harvests the final-turn JSON from the agent loop's accumulated text — no separate finalization call, no'structuredOutput'middleware phase.Per-adapter status:
response_format: json_schema/text.format: json_schemaattached whenoutputSchemais set.output_config.formaton the beta Messages request. Pre-4.5 Claude models keep the forced-tool finalization workaround. Gated by exportedANTHROPIC_COMBINED_TOOLS_AND_SCHEMA_MODELS.responseSchema+responseMimeType: 'application/json'into the regulargenerateContentStreamcall. Gemini 2.x keeps the legacy path. Gated by exportedGEMINI_COMBINED_TOOLS_AND_SCHEMA_MODELS.grok-4,grok-4-1-fast-*,grok-4-fast-*,grok-4-20*,grok-4-3,grok-code-fast-1). Inherits the OpenAI Chat Completions wiring fromopenai-base; the override gates the capability claim by model. Grok 2 / 3 keep the legacy path. Gated by exportedGROK_COMBINED_TOOLS_AND_SCHEMA_MODELS.response_format+tools+streamwith HTTP 400 ("Streaming and tool use are not currently supported with Structured Outputs").Backward compatibility:
'structuredOutput'middleware phase still fires for fallback-path adapters. It does NOT fire for adapters that handle the combination natively — middleware sees the run through'beforeModel'/'modelStream'as usual.onStructuredOutputConfigkeeps its existing surface but only fires on the fallback path.Updated dependencies [
02f7d04]:@tanstack/ai-isolate-cloudflare@0.2.12
Patch Changes
@tanstack/ai-isolate-node@0.1.21
Patch Changes
@tanstack/ai-isolate-quickjs@0.1.21
Patch Changes
@tanstack/ai-ollama@0.6.22
Patch Changes
02f7d04]:@tanstack/ai-openai@0.10.1
Patch Changes
02f7d04]:@tanstack/ai-openrouter@0.9.8
Patch Changes
02f7d04]:@tanstack/ai-preact@0.6.33
Patch Changes
02f7d04]:@tanstack/ai-react@0.11.8
Patch Changes
02f7d04]:@tanstack/ai-solid@0.10.8
Patch Changes
02f7d04]:@tanstack/ai-svelte@0.10.8
Patch Changes
02f7d04]:@tanstack/ai-vue@0.10.9
Patch Changes
02f7d04]:@tanstack/ai-vue-ui@0.2.4
Patch Changes
@tanstack/preact-ai-devtools@0.1.42
Patch Changes
@tanstack/react-ai-devtools@0.2.42
Patch Changes
@tanstack/solid-ai-devtools@0.2.42
Patch Changes