From 2db47d9d4ba0e5295e077011cd90483a7a6fe634 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 4 Dec 2026 07:40:48 +0000 Subject: [PATCH] ci: Version Packages --- .changeset/adapter-default-model-options.md | 16 ---- .changeset/add-ai-secure-mcp.md | 5 -- .changeset/ai-mcp-input-schema.md | 5 -- .changeset/bump-quickjs-bun-0-2.md | 5 -- .../default-model-options-all-adapters.md | 58 --------------- .changeset/export-stream-http-error.md | 13 ---- .changeset/extract-ai-isolate-contract.md | 14 ---- .changeset/gemini-agentic-video-status.md | 5 -- .changeset/harness-view-result-metadata.md | 5 -- .changeset/ollama-early-stop-abort.md | 5 -- .changeset/omit-subagent-text-from-parent.md | 5 -- .changeset/openai-gpt-live.md | 28 ------- .../openrouter-responses-late-args-delta.md | 5 -- .changeset/quiet-taxis-stream.md | 6 -- .changeset/reasoning-off-sampling-types.md | 13 ---- .../stream-processor-text-delta-memory.md | 5 -- .changeset/transcription-stream-final-text.md | 5 -- evals/harbor/CHANGELOG.md | 13 ++++ evals/harbor/package.json | 2 +- examples/ag-ui/CHANGELOG.md | 8 ++ examples/ag-ui/package.json | 2 +- packages/ai-acp/CHANGELOG.md | 33 +++++++++ packages/ai-acp/package.json | 2 +- packages/ai-angular/CHANGELOG.md | 12 +++ packages/ai-angular/package.json | 2 +- packages/ai-anthropic/CHANGELOG.md | 38 ++++++++++ packages/ai-anthropic/package.json | 2 +- packages/ai-bedrock/CHANGELOG.md | 32 ++++++++ packages/ai-bedrock/package.json | 2 +- packages/ai-byteplus/CHANGELOG.md | 32 ++++++++ packages/ai-byteplus/package.json | 2 +- packages/ai-cartesia/CHANGELOG.md | 31 ++++++++ packages/ai-cartesia/package.json | 2 +- packages/ai-claude-code/CHANGELOG.md | 32 ++++++++ packages/ai-claude-code/package.json | 2 +- packages/ai-client/CHANGELOG.md | 30 ++++++++ packages/ai-client/package.json | 2 +- packages/ai-cloudflare/CHANGELOG.md | 32 ++++++++ packages/ai-cloudflare/package.json | 2 +- packages/ai-code-mode/CHANGELOG.md | 13 ++++ packages/ai-code-mode/package.json | 2 +- packages/ai-codex/CHANGELOG.md | 32 ++++++++ packages/ai-codex/package.json | 2 +- packages/ai-cohere/CHANGELOG.md | 31 ++++++++ packages/ai-cohere/package.json | 2 +- packages/ai-computer-use/CHANGELOG.md | 8 ++ packages/ai-computer-use/package.json | 2 +- packages/ai-elevenlabs/CHANGELOG.md | 31 ++++++++ packages/ai-elevenlabs/package.json | 2 +- packages/ai-fal/CHANGELOG.md | 31 ++++++++ packages/ai-fal/package.json | 2 +- packages/ai-gemini/CHANGELOG.md | 33 +++++++++ packages/ai-gemini/package.json | 2 +- packages/ai-grok-build/CHANGELOG.md | 33 +++++++++ packages/ai-grok-build/package.json | 2 +- packages/ai-grok/CHANGELOG.md | 32 ++++++++ packages/ai-grok/package.json | 2 +- packages/ai-groq/CHANGELOG.md | 32 ++++++++ packages/ai-groq/package.json | 2 +- packages/ai-harness-cli/CHANGELOG.md | 10 +++ packages/ai-harness-cli/package.json | 2 +- packages/ai-harness/CHANGELOG.md | 12 +++ packages/ai-harness/package.json | 2 +- packages/ai-isolate-cloudflare/CHANGELOG.md | 11 +++ packages/ai-isolate-cloudflare/package.json | 2 +- packages/ai-isolate-daytona/CHANGELOG.md | 11 +++ packages/ai-isolate-daytona/package.json | 2 +- packages/ai-isolate-e2b/CHANGELOG.md | 11 +++ packages/ai-isolate-e2b/package.json | 2 +- packages/ai-isolate-node/CHANGELOG.md | 11 +++ packages/ai-isolate-node/package.json | 2 +- packages/ai-isolate-quickjs-bun/CHANGELOG.md | 13 ++++ packages/ai-isolate-quickjs-bun/package.json | 2 +- packages/ai-isolate-quickjs/CHANGELOG.md | 11 +++ packages/ai-isolate-quickjs/package.json | 2 +- packages/ai-isolate/CHANGELOG.md | 14 ++++ packages/ai-isolate/package.json | 2 +- packages/ai-llmgateway/CHANGELOG.md | 32 ++++++++ packages/ai-llmgateway/package.json | 2 +- packages/ai-lovable/CHANGELOG.md | 32 ++++++++ packages/ai-lovable/package.json | 2 +- packages/ai-mcp/CHANGELOG.md | 10 +++ packages/ai-mcp/package.json | 2 +- packages/ai-meshy/CHANGELOG.md | 31 ++++++++ packages/ai-meshy/package.json | 2 +- packages/ai-mistral/CHANGELOG.md | 31 ++++++++ packages/ai-mistral/package.json | 2 +- packages/ai-muse/CHANGELOG.md | 32 ++++++++ packages/ai-muse/package.json | 2 +- packages/ai-neon/CHANGELOG.md | 33 +++++++++ packages/ai-neon/package.json | 2 +- packages/ai-octane/CHANGELOG.md | 31 ++++++++ packages/ai-octane/package.json | 2 +- packages/ai-ollama/CHANGELOG.md | 33 +++++++++ packages/ai-ollama/package.json | 2 +- packages/ai-ollaya/CHANGELOG.md | 31 ++++++++ packages/ai-ollaya/package.json | 2 +- packages/ai-openai/CHANGELOG.md | 60 +++++++++++++++ packages/ai-openai/package.json | 2 +- packages/ai-opencode/CHANGELOG.md | 32 ++++++++ packages/ai-opencode/package.json | 2 +- packages/ai-openrouter/CHANGELOG.md | 45 +++++++++++ packages/ai-openrouter/package.json | 2 +- packages/ai-preact/CHANGELOG.md | 12 +++ packages/ai-preact/package.json | 2 +- packages/ai-react/CHANGELOG.md | 31 ++++++++ packages/ai-react/package.json | 2 +- packages/ai-remix/CHANGELOG.md | 31 ++++++++ packages/ai-remix/package.json | 2 +- packages/ai-sandbox/CHANGELOG.md | 10 +++ packages/ai-sandbox/package.json | 2 +- packages/ai-secure-mcp/CHANGELOG.md | 13 ++++ packages/ai-secure-mcp/package.json | 2 +- packages/ai-skills/CHANGELOG.md | 8 ++ packages/ai-skills/package.json | 2 +- packages/ai-solid/CHANGELOG.md | 12 +++ packages/ai-solid/package.json | 2 +- packages/ai-svelte/CHANGELOG.md | 12 +++ packages/ai-svelte/package.json | 2 +- packages/ai-tripo/CHANGELOG.md | 31 ++++++++ packages/ai-tripo/package.json | 2 +- packages/ai-typesafe/CHANGELOG.md | 31 ++++++++ packages/ai-typesafe/package.json | 2 +- packages/ai-uthana/CHANGELOG.md | 31 ++++++++ packages/ai-uthana/package.json | 2 +- packages/ai-vercel-gateway/CHANGELOG.md | 32 ++++++++ packages/ai-vercel-gateway/package.json | 2 +- packages/ai-vertex/CHANGELOG.md | 32 ++++++++ packages/ai-vertex/package.json | 2 +- packages/ai-vue/CHANGELOG.md | 12 +++ packages/ai-vue/package.json | 2 +- packages/ai-worldlabs/CHANGELOG.md | 31 ++++++++ packages/ai-worldlabs/package.json | 2 +- packages/ai/CHANGELOG.md | 74 +++++++++++++++++++ packages/ai/package.json | 2 +- packages/openai-base/CHANGELOG.md | 31 ++++++++ packages/openai-base/package.json | 2 +- 137 files changed, 1600 insertions(+), 258 deletions(-) delete mode 100644 .changeset/adapter-default-model-options.md delete mode 100644 .changeset/add-ai-secure-mcp.md delete mode 100644 .changeset/ai-mcp-input-schema.md delete mode 100644 .changeset/bump-quickjs-bun-0-2.md delete mode 100644 .changeset/default-model-options-all-adapters.md delete mode 100644 .changeset/export-stream-http-error.md delete mode 100644 .changeset/extract-ai-isolate-contract.md delete mode 100644 .changeset/gemini-agentic-video-status.md delete mode 100644 .changeset/harness-view-result-metadata.md delete mode 100644 .changeset/ollama-early-stop-abort.md delete mode 100644 .changeset/omit-subagent-text-from-parent.md delete mode 100644 .changeset/openai-gpt-live.md delete mode 100644 .changeset/openrouter-responses-late-args-delta.md delete mode 100644 .changeset/quiet-taxis-stream.md delete mode 100644 .changeset/reasoning-off-sampling-types.md delete mode 100644 .changeset/stream-processor-text-delta-memory.md delete mode 100644 .changeset/transcription-stream-final-text.md create mode 100644 packages/ai-isolate/CHANGELOG.md create mode 100644 packages/ai-secure-mcp/CHANGELOG.md diff --git a/.changeset/adapter-default-model-options.md b/.changeset/adapter-default-model-options.md deleted file mode 100644 index 0bdd697190..0000000000 --- a/.changeset/adapter-default-model-options.md +++ /dev/null @@ -1,16 +0,0 @@ ---- -'@tanstack/ai': minor -'@tanstack/ai-openrouter': minor ---- - -Text adapters can carry `defaultModelOptions`. `chat()` merges them under the `modelOptions` of each call, one level deep. A key that the call sets replaces the default key in full. The engine, the middleware, and the adapter all get the merged value. - -`createOpenRouterText()`, `openRouterText()`, `createOpenRouterResponsesText()`, and `openRouterResponsesText()` take a `defaultModelOptions` option, for example to set provider routing for every call: - -```ts -const adapter = openRouterText('openai/gpt-6.1-sol', { - defaultModelOptions: { - provider: { sort: 'latency', preferredMaxLatency: { p90: 2.5 } }, - }, -}) -``` diff --git a/.changeset/add-ai-secure-mcp.md b/.changeset/add-ai-secure-mcp.md deleted file mode 100644 index 9d4446d3bc..0000000000 --- a/.changeset/add-ai-secure-mcp.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@tanstack/ai-secure-mcp': minor ---- - -Add `@tanstack/ai-secure-mcp`, a security envelope around `createMCPServer` for self-hosting an MCP server on the internet. `createSecureMcpServer` wraps your tools with hashed-token bearer auth, scopes and a per-client target allowlist, a deny-by-default egress helper a tool opts into (it is not an enforced network boundary — a tool that calls global `fetch` still reaches the network), a per-client sliding-window rate limit, a redacted append-only JSONL audit log, a pluggable tripwire notifier (`ntfyNotifier`, `webhookNotifier`, `silentNotifier`), and two-phase propose/confirm approval. A go-live preflight refuses a public Tailscale funnel while a secure default is off (unhashed token, audit off, or notifier off or silent). diff --git a/.changeset/ai-mcp-input-schema.md b/.changeset/ai-mcp-input-schema.md deleted file mode 100644 index d1f5f53340..0000000000 --- a/.changeset/ai-mcp-input-schema.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@tanstack/ai-mcp': patch ---- - -`createMCPServer` runs a tool's own `inputSchema` before the tool executes, so a transform and a default apply to the input the tool receives, as they already did under `chat()`. The MCP SDK checks the JSON Schema view of the schema, which cannot carry either. An input that the schema refuses now answers as a tool error (`isError`) naming the failed paths, instead of running the tool on the raw arguments. diff --git a/.changeset/bump-quickjs-bun-0-2.md b/.changeset/bump-quickjs-bun-0-2.md deleted file mode 100644 index 8112ba0912..0000000000 --- a/.changeset/bump-quickjs-bun-0-2.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@tanstack/ai-isolate-quickjs-bun': patch ---- - -Update `quickjs-bun` to 0.2.0. Version 0.1.2 cannot compile its native code on Ubuntu 26.04, so the driver failed to create a context there. The driver now needs Bun 1.4.0 or later. diff --git a/.changeset/default-model-options-all-adapters.md b/.changeset/default-model-options-all-adapters.md deleted file mode 100644 index 368d90b38f..0000000000 --- a/.changeset/default-model-options-all-adapters.md +++ /dev/null @@ -1,58 +0,0 @@ ---- -'@tanstack/ai': minor -'@tanstack/ai-acp': minor -'@tanstack/ai-anthropic': minor -'@tanstack/ai-bedrock': minor -'@tanstack/ai-byteplus': minor -'@tanstack/ai-cartesia': minor -'@tanstack/ai-claude-code': minor -'@tanstack/ai-cloudflare': minor -'@tanstack/ai-codex': minor -'@tanstack/ai-cohere': minor -'@tanstack/ai-elevenlabs': minor -'@tanstack/ai-fal': minor -'@tanstack/ai-gemini': minor -'@tanstack/ai-grok': minor -'@tanstack/ai-grok-build': minor -'@tanstack/ai-groq': minor -'@tanstack/ai-llmgateway': minor -'@tanstack/ai-lovable': minor -'@tanstack/ai-meshy': minor -'@tanstack/ai-mistral': minor -'@tanstack/ai-muse': minor -'@tanstack/ai-neon': minor -'@tanstack/ai-ollama': minor -'@tanstack/ai-ollaya': minor -'@tanstack/ai-openai': minor -'@tanstack/ai-opencode': minor -'@tanstack/ai-openrouter': minor -'@tanstack/ai-tripo': minor -'@tanstack/ai-typesafe': minor -'@tanstack/ai-uthana': minor -'@tanstack/ai-vercel-gateway': minor -'@tanstack/ai-vertex': minor -'@tanstack/ai-worldlabs': minor -'@tanstack/openai-base': minor ---- - -Every first-party adapter takes `defaultModelOptions`, of every kind: text, embedding, image, speech, transcription, audio, voice, video, live video, 3D model, 3D motion, world, rerank, summarize, and evaluate. Reactor, and the Gemini and OpenRouter evaluate adapters, have no model options to send, so they do not take it. Each activity (`chat()`, `embed()`, `generateImage()`, `generateSpeech()`, and the others) merges them under the `modelOptions` of each call, one level deep. A key that the call sets replaces the default key in full. A call key set to `undefined` keeps the default. The middleware, the devtools events or logs, and the adapter all get the merged value. - -```ts -const adapter = openaiImage('gpt-image-2.6-flare', { - defaultModelOptions: { quality: 'high', output_format: 'webp' }, -}) -``` - -`summarize()` with a text-backed summarize adapter applies the `defaultModelOptions` of the wrapped text adapter. A `temperature` in those defaults replaces the built-in summarize temperature. A per-call `maxLength` replaces a token limit that only comes from the defaults. - -The OpenAI, Cloudflare, Ollaya, and TypeSafe evaluate adapters now send `modelOptions` in the request. Before, they did not send them. - -`ollamaText()`, `ollamaEmbedding()`, `tripo3dModel()`, and the summarize factories of every text provider take `defaultModelOptions` too. - -`ai-fal`: an explicit `size` on `generateImage()` or `generateVideo()` now replaces `image_size`, `aspect_ratio`, or `resolution` in `modelOptions`. - -`ai-uthana`: the `defaults` config option is deprecated. Use `defaultModelOptions`. - -`ai-ollama`: for a model name that is not in the model list, `modelOptions` no longer accepts `model`. The adapter sets the model. - -Custom adapters: each `Base*Adapter` class in `@tanstack/ai/adapters` takes `defaultModelOptions` in its constructor config and stores it. Pass it to `super()`. Do not declare the field again in the subclass. `DefaultModelOptionsConfig` is the config type to extend. diff --git a/.changeset/export-stream-http-error.md b/.changeset/export-stream-http-error.md deleted file mode 100644 index e7f5c188fd..0000000000 --- a/.changeset/export-stream-http-error.md +++ /dev/null @@ -1,13 +0,0 @@ ---- -'@tanstack/ai-client': minor -'@tanstack/ai-react': minor -'@tanstack/ai-solid': minor -'@tanstack/ai-preact': minor -'@tanstack/ai-vue': minor -'@tanstack/ai-octane': minor -'@tanstack/ai-remix': minor -'@tanstack/ai-svelte': minor -'@tanstack/ai-angular': minor ---- - -Export `StreamHttpError` from `@tanstack/ai-client` and re-export it from the framework packages. The fetch and XHR chat transports throw this class when the response status is not 2xx. It has `status`, and `retryAfterMs` when the response has a valid `Retry-After` header. Import it to check the status with `instanceof` in `onError` instead of parsing the error message. diff --git a/.changeset/extract-ai-isolate-contract.md b/.changeset/extract-ai-isolate-contract.md deleted file mode 100644 index 3e4d6f59c1..0000000000 --- a/.changeset/extract-ai-isolate-contract.md +++ /dev/null @@ -1,14 +0,0 @@ ---- -'@tanstack/ai-isolate': minor -'@tanstack/ai-code-mode': patch -'@tanstack/ai-isolate-quickjs': patch -'@tanstack/ai-isolate-quickjs-bun': patch -'@tanstack/ai-isolate-node': patch -'@tanstack/ai-isolate-cloudflare': patch -'@tanstack/ai-isolate-e2b': patch -'@tanstack/ai-isolate-daytona': patch ---- - -Add `@tanstack/ai-isolate`, the engine-agnostic isolate base. It owns the contract every sandbox driver implements (`IsolateDriver`, `IsolateConfig`, `IsolateContext`, `ExecutionResult`, `NormalizedError`, `ToolBinding`) plus the shared `wrapCode` helper. These previously lived inside `@tanstack/ai-code-mode`, which forced every driver to depend on Code Mode just for the contract. - -Drivers (`quickjs`, `quickjs-bun`, `node`, `cloudflare`, `e2b`, `daytona`) now depend on `@tanstack/ai-isolate` instead of `@tanstack/ai-code-mode`. It is a regular dependency of each driver, so you install nothing extra. `@tanstack/ai-code-mode` re-exports the same types and `wrapCode`, so its public API is unchanged. diff --git a/.changeset/gemini-agentic-video-status.md b/.changeset/gemini-agentic-video-status.md deleted file mode 100644 index 450a58f7d7..0000000000 --- a/.changeset/gemini-agentic-video-status.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@tanstack/ai-gemini': patch ---- - -Video understanding with `processing: "agentic"` now ends with `RUN_ERROR` when Gemini ends the interaction with a status such as `failed` or `cancelled`. The error code is the status. Before, the run ended with `RUN_FINISHED` and an empty reply. An `incomplete` (cut-off) answer now ends with `finishReason: 'length'`, not `stop`. diff --git a/.changeset/harness-view-result-metadata.md b/.changeset/harness-view-result-metadata.md deleted file mode 100644 index 8c1af22af8..0000000000 --- a/.changeset/harness-view-result-metadata.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@tanstack/ai-harness': minor ---- - -The session view now shows tool result metadata. A `tool-call` part from `createSessionView` has `resultMetadata` when the server tool called `setResultMetadata`, live and after a reload. The value has only the app keys, as `part.resultMetadata` in `useChat`. diff --git a/.changeset/ollama-early-stop-abort.md b/.changeset/ollama-early-stop-abort.md deleted file mode 100644 index fa90b9769e..0000000000 --- a/.changeset/ollama-early-stop-abort.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@tanstack/ai-ollama': patch ---- - -Close the Ollama request when the consumer stops reading a chat stream early. The `ollama` SDK does not cancel the response body when iteration ends, and the adapter only aborted the stream for an injected client with a caller signal. In every other case, including the default `ollamaText()` and `createOllamaChat()` with no abort controller, the request stayed open after the loop exited. diff --git a/.changeset/omit-subagent-text-from-parent.md b/.changeset/omit-subagent-text-from-parent.md deleted file mode 100644 index 7545e9c8f2..0000000000 --- a/.changeset/omit-subagent-text-from-parent.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@tanstack/ai': patch ---- - -`chat({ stream: false }).text` and `streamToText` no longer include the text of a subagent that a tool call started. That text stays in `chunks`, on events that have `subagentRunId`. The text of a subagent that the router picked is still in `text`. diff --git a/.changeset/openai-gpt-live.md b/.changeset/openai-gpt-live.md deleted file mode 100644 index 74a00a4ca0..0000000000 --- a/.changeset/openai-gpt-live.md +++ /dev/null @@ -1,28 +0,0 @@ ---- -'@tanstack/ai': minor -'@tanstack/ai-client': minor -'@tanstack/ai-openai': minor -'@tanstack/ai-react': minor -'@tanstack/ai-remix': minor -'@tanstack/ai-octane': minor ---- - -Add OpenAI GPT-Live voice (`gpt-live-1` and `gpt-live-1.1`). On the server, `openaiLiveSession()` creates the session. In the browser, `openaiLive()` connects over WebRTC. - -GPT-Live has no browser token, so this release adds a relay path: - -- `realtimeSession()` in `@tanstack/ai` takes the WebRTC offer from the browser, gives it to a `RealtimeSessionAdapter`, and returns the answer. -- `RealtimeRelayAdapter` (`kind: 'relay'`) is a browser adapter that connects through your server. -- `RealtimeClient`, `useRealtimeChat`, and `createRealtimeChat` take `createSession` in place of `getToken` for a relay adapter. - -The options type is now a union of the token form and the relay form. If you read the type of `getToken` from it (for example `UseRealtimeChatOptions['getToken']`), the type now includes `undefined`. - -`RealtimeClient.updateSession()` now sends `providerOptions` to the connection. Before, the client kept `providerOptions` but did not send them. - -Realtime adapters now get `RealtimeConnectOptions` (`abortSignal`, `autoCapture`) in `connect()`. With `autoCapture: false`, `openaiRealtime()` and `openaiLive()` open the microphone on the first `startAudioCapture()`, not on connect. - -`RealtimeClient` sends a tool result only to the connection that asked for it. After a reconnect, a result from the old session is dropped. - -`createSession` receives the connect `AbortSignal` as its second argument. Pass it to the session request so a cancelled connect does not open a provider session. - -A delegated response that fails, or ends before it is complete, reports an error. The client does not continue that turn. diff --git a/.changeset/openrouter-responses-late-args-delta.md b/.changeset/openrouter-responses-late-args-delta.md deleted file mode 100644 index a60fb93af7..0000000000 --- a/.changeset/openrouter-responses-late-args-delta.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@tanstack/ai-openrouter': patch ---- - -Ignore and log Responses argument deltas that arrive after a tool call's `TOOL_CALL_END`. diff --git a/.changeset/quiet-taxis-stream.md b/.changeset/quiet-taxis-stream.md deleted file mode 100644 index 456e96ea91..0000000000 --- a/.changeset/quiet-taxis-stream.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -'@tanstack/ai': minor -'@tanstack/ai-openai': minor ---- - -Add incremental transcription streaming for OpenAI models that support it. diff --git a/.changeset/reasoning-off-sampling-types.md b/.changeset/reasoning-off-sampling-types.md deleted file mode 100644 index e9e25711fe..0000000000 --- a/.changeset/reasoning-off-sampling-types.md +++ /dev/null @@ -1,13 +0,0 @@ ---- -'@tanstack/ai': minor -'@tanstack/ai-openai': minor -'@tanstack/ai-anthropic': patch ---- - -Fix model option types that did not match what the provider accepts. - -- `@tanstack/ai`: an adapter can mark `modelOptions` keys that work only with `reasoning: 'off'` (`offOnlyOptions` on its reasoning capability). `chat()`, `ctx.chat()` and `createChatOptions()` then make those keys a type error when `reasoning` is not `'off'` or not set. -- `@tanstack/ai-openai`: on reasoning models (o-series, `gpt-5*`, `gpt-6*`, except `*-chat-latest`), `temperature`, `top_p` and `top_logprobs` type-check only with `reasoning: 'off'`. `o3-deep-research` and `o4-mini-deep-research` have no `'off'` level, so these options are always a type error there. The adapter still drops them at runtime for JS callers. Before, the types accepted them and nothing told you that they were dropped. -- `@tanstack/ai-openai`: `gpt-6.1-terra` (`off` to `max`) and `gpt-6.1-terra-pro` (`low` to `max`) now have their reasoning levels. Before, every `reasoning` value was a type error, and the adapter sent no reasoning effort. -- `@tanstack/ai-openai`: `service_tier` uses the `ServiceTier` type of the OpenAI SDK. It now accepts `'scale'`, `'fast'` and `'ultrafast'`. -- `@tanstack/ai-anthropic`: `claude-opus-5` and `claude-opus-5-5` no longer accept `temperature`, `top_p` or `top_k`. Anthropic returns a 400 for them on these models. diff --git a/.changeset/stream-processor-text-delta-memory.md b/.changeset/stream-processor-text-delta-memory.md deleted file mode 100644 index 90f3bd93dd..0000000000 --- a/.changeset/stream-processor-text-delta-memory.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@tanstack/ai': patch ---- - -`StreamProcessor` no longer appends a slice of the accumulated text segment to the message content for each `TEXT_MESSAGE_CONTENT` delta. In V8 such a slice can keep the segment's whole backing string alive, so memory grew with the square of the message length. 3,000 deltas of 16 characters retained about 69 MiB. They now retain about 0.4 MiB. The text that streams out is unchanged. diff --git a/.changeset/transcription-stream-final-text.md b/.changeset/transcription-stream-final-text.md deleted file mode 100644 index c7a8394e9b..0000000000 --- a/.changeset/transcription-stream-final-text.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@tanstack/ai': patch ---- - -Emit a final text delta for streamed transcriptions when the adapter does not provide `transcribeStream`. Report startup cancellation through middleware `onAbort`. diff --git a/evals/harbor/CHANGELOG.md b/evals/harbor/CHANGELOG.md index 530d2e3851..3608908b6c 100644 --- a/evals/harbor/CHANGELOG.md +++ b/evals/harbor/CHANGELOG.md @@ -1,5 +1,18 @@ # @tanstack/ai-optimize-evals +## 0.0.5 + +### Patch Changes + +- Updated dependencies [[`afed460`](https://github.com/TanStack/ai/commit/afed460573b0e9a2d3672bbe777ed5ec6c28b6fc), [`afed460`](https://github.com/TanStack/ai/commit/afed460573b0e9a2d3672bbe777ed5ec6c28b6fc), [`9c1584d`](https://github.com/TanStack/ai/commit/9c1584db1eac57ec4d7c67e0af57cfd29a6b1a6c), [`4bc0c2b`](https://github.com/TanStack/ai/commit/4bc0c2b375c485c6b5a43dd5d562643f96fbcc93), [`a88ee8d`](https://github.com/TanStack/ai/commit/a88ee8d963aa3693064282b2d7e19640472b484c), [`7ba3926`](https://github.com/TanStack/ai/commit/7ba3926652519bc0e1ea74e660ef7d0a0d6a37a6), [`1c55fd5`](https://github.com/TanStack/ai/commit/1c55fd51d2fcafb84f59295736bc42f6d2353868), [`2d89b06`](https://github.com/TanStack/ai/commit/2d89b062d92a3eef44406c015bf6d0ff2b47e6a4), [`a7501eb`](https://github.com/TanStack/ai/commit/a7501eb0a2223b079076bd106c257803742b0e6c), [`1c55fd5`](https://github.com/TanStack/ai/commit/1c55fd51d2fcafb84f59295736bc42f6d2353868)]: + - @tanstack/ai@1.12.0 + - @tanstack/ai-anthropic@1.3.0 + - @tanstack/ai-gemini@1.4.0 + - @tanstack/ai-openai@1.3.0 + - @tanstack/ai-code-mode@1.2.1 + - @tanstack/ai-isolate-quickjs@1.1.1 + - @tanstack/ai-optimize@0.1.0 + ## 0.0.4 ### Patch Changes diff --git a/evals/harbor/package.json b/evals/harbor/package.json index 062b614471..8ca6e227ba 100644 --- a/evals/harbor/package.json +++ b/evals/harbor/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/ai-optimize-evals", - "version": "0.0.4", + "version": "0.0.5", "private": true, "description": "Context-optimization eval harness (Harbor adapter + Node runner). Not published.", "type": "module", diff --git a/examples/ag-ui/CHANGELOG.md b/examples/ag-ui/CHANGELOG.md index 1ae8a9add5..c5bb331e01 100644 --- a/examples/ag-ui/CHANGELOG.md +++ b/examples/ag-ui/CHANGELOG.md @@ -1,5 +1,13 @@ # ag-ui +## 0.0.49 + +### Patch Changes + +- Updated dependencies [[`518dee9`](https://github.com/TanStack/ai/commit/518dee986e84e1869008c67f9e4841832777c062), [`7ba3926`](https://github.com/TanStack/ai/commit/7ba3926652519bc0e1ea74e660ef7d0a0d6a37a6)]: + - @tanstack/ai-client@1.5.0 + - @tanstack/ai-react@1.4.0 + ## 0.0.48 ### Patch Changes diff --git a/examples/ag-ui/package.json b/examples/ag-ui/package.json index 09a5d4280f..353b06fa15 100644 --- a/examples/ag-ui/package.json +++ b/examples/ag-ui/package.json @@ -2,7 +2,7 @@ "name": "ag-ui", "private": true, "type": "module", - "version": "0.0.48", + "version": "0.0.49", "scripts": { "detect-servers": "node scripts/detect-servers.mjs", "predev": "node scripts/detect-servers.mjs", diff --git a/packages/ai-acp/CHANGELOG.md b/packages/ai-acp/CHANGELOG.md index 66b1b81fca..3e6cb7f7d9 100644 --- a/packages/ai-acp/CHANGELOG.md +++ b/packages/ai-acp/CHANGELOG.md @@ -1,5 +1,38 @@ # @tanstack/ai-acp +## 1.2.0 + +### Minor Changes + +- [#2254](https://github.com/TanStack/ai/pull/2254) [`afed460`](https://github.com/TanStack/ai/commit/afed460573b0e9a2d3672bbe777ed5ec6c28b6fc) - Every first-party adapter takes `defaultModelOptions`, of every kind: text, embedding, image, speech, transcription, audio, voice, video, live video, 3D model, 3D motion, world, rerank, summarize, and evaluate. Reactor, and the Gemini and OpenRouter evaluate adapters, have no model options to send, so they do not take it. Each activity (`chat()`, `embed()`, `generateImage()`, `generateSpeech()`, and the others) merges them under the `modelOptions` of each call, one level deep. A key that the call sets replaces the default key in full. A call key set to `undefined` keeps the default. The middleware, the devtools events or logs, and the adapter all get the merged value. + + ```ts + const adapter = openaiImage('gpt-image-2.6-flare', { + defaultModelOptions: { quality: 'high', output_format: 'webp' }, + }) + ``` + + `summarize()` with a text-backed summarize adapter applies the `defaultModelOptions` of the wrapped text adapter. A `temperature` in those defaults replaces the built-in summarize temperature. A per-call `maxLength` replaces a token limit that only comes from the defaults. + + The OpenAI, Cloudflare, Ollaya, and TypeSafe evaluate adapters now send `modelOptions` in the request. Before, they did not send them. + + `ollamaText()`, `ollamaEmbedding()`, `tripo3dModel()`, and the summarize factories of every text provider take `defaultModelOptions` too. + + `ai-fal`: an explicit `size` on `generateImage()` or `generateVideo()` now replaces `image_size`, `aspect_ratio`, or `resolution` in `modelOptions`. + + `ai-uthana`: the `defaults` config option is deprecated. Use `defaultModelOptions`. + + `ai-ollama`: for a model name that is not in the model list, `modelOptions` no longer accepts `model`. The adapter sets the model. + + Custom adapters: each `Base*Adapter` class in `@tanstack/ai/adapters` takes `defaultModelOptions` in its constructor config and stores it. Pass it to `super()`. Do not declare the field again in the subclass. `DefaultModelOptionsConfig` is the config type to extend. + +### Patch Changes + +- Updated dependencies [[`afed460`](https://github.com/TanStack/ai/commit/afed460573b0e9a2d3672bbe777ed5ec6c28b6fc), [`afed460`](https://github.com/TanStack/ai/commit/afed460573b0e9a2d3672bbe777ed5ec6c28b6fc), [`014da3a`](https://github.com/TanStack/ai/commit/014da3a4ca8bfbfaadad8423e2749a9ce5564187), [`a88ee8d`](https://github.com/TanStack/ai/commit/a88ee8d963aa3693064282b2d7e19640472b484c), [`7ba3926`](https://github.com/TanStack/ai/commit/7ba3926652519bc0e1ea74e660ef7d0a0d6a37a6), [`1c55fd5`](https://github.com/TanStack/ai/commit/1c55fd51d2fcafb84f59295736bc42f6d2353868), [`2d89b06`](https://github.com/TanStack/ai/commit/2d89b062d92a3eef44406c015bf6d0ff2b47e6a4), [`a7501eb`](https://github.com/TanStack/ai/commit/a7501eb0a2223b079076bd106c257803742b0e6c), [`1c55fd5`](https://github.com/TanStack/ai/commit/1c55fd51d2fcafb84f59295736bc42f6d2353868)]: + - @tanstack/ai@1.12.0 + - @tanstack/ai-harness@0.7.0 + - @tanstack/ai-sandbox@1.7.1 + ## 1.1.1 ### Patch Changes diff --git a/packages/ai-acp/package.json b/packages/ai-acp/package.json index 0bab75cd1a..1347dc360c 100644 --- a/packages/ai-acp/package.json +++ b/packages/ai-acp/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/ai-acp", - "version": "1.1.1", + "version": "1.2.0", "description": "Shared Agent Client Protocol (ACP) transport, session, and AG-UI translation for TanStack AI harness adapters.", "author": "", "license": "MIT", diff --git a/packages/ai-angular/CHANGELOG.md b/packages/ai-angular/CHANGELOG.md index 12d848f6ab..9e62be81c0 100644 --- a/packages/ai-angular/CHANGELOG.md +++ b/packages/ai-angular/CHANGELOG.md @@ -1,5 +1,17 @@ # @tanstack/ai-angular +## 1.5.0 + +### Minor Changes + +- [#2258](https://github.com/TanStack/ai/pull/2258) [`518dee9`](https://github.com/TanStack/ai/commit/518dee986e84e1869008c67f9e4841832777c062) - Export `StreamHttpError` from `@tanstack/ai-client` and re-export it from the framework packages. The fetch and XHR chat transports throw this class when the response status is not 2xx. It has `status`, and `retryAfterMs` when the response has a valid `Retry-After` header. Import it to check the status with `instanceof` in `onError` instead of parsing the error message. + +### Patch Changes + +- Updated dependencies [[`afed460`](https://github.com/TanStack/ai/commit/afed460573b0e9a2d3672bbe777ed5ec6c28b6fc), [`afed460`](https://github.com/TanStack/ai/commit/afed460573b0e9a2d3672bbe777ed5ec6c28b6fc), [`518dee9`](https://github.com/TanStack/ai/commit/518dee986e84e1869008c67f9e4841832777c062), [`a88ee8d`](https://github.com/TanStack/ai/commit/a88ee8d963aa3693064282b2d7e19640472b484c), [`7ba3926`](https://github.com/TanStack/ai/commit/7ba3926652519bc0e1ea74e660ef7d0a0d6a37a6), [`1c55fd5`](https://github.com/TanStack/ai/commit/1c55fd51d2fcafb84f59295736bc42f6d2353868), [`2d89b06`](https://github.com/TanStack/ai/commit/2d89b062d92a3eef44406c015bf6d0ff2b47e6a4), [`a7501eb`](https://github.com/TanStack/ai/commit/a7501eb0a2223b079076bd106c257803742b0e6c), [`1c55fd5`](https://github.com/TanStack/ai/commit/1c55fd51d2fcafb84f59295736bc42f6d2353868)]: + - @tanstack/ai@1.12.0 + - @tanstack/ai-client@1.5.0 + ## 1.4.0 ### Minor Changes diff --git a/packages/ai-angular/package.json b/packages/ai-angular/package.json index 888ed4a775..011cde70d6 100644 --- a/packages/ai-angular/package.json +++ b/packages/ai-angular/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/ai-angular", - "version": "1.4.0", + "version": "1.5.0", "description": "Angular signals integration for TanStack AI streaming chat, structured outputs, and media generation.", "author": "", "license": "MIT", diff --git a/packages/ai-anthropic/CHANGELOG.md b/packages/ai-anthropic/CHANGELOG.md index ee77acaac5..6cd42c245e 100644 --- a/packages/ai-anthropic/CHANGELOG.md +++ b/packages/ai-anthropic/CHANGELOG.md @@ -1,5 +1,43 @@ # @tanstack/ai-anthropic +## 1.3.0 + +### Minor Changes + +- [#2254](https://github.com/TanStack/ai/pull/2254) [`afed460`](https://github.com/TanStack/ai/commit/afed460573b0e9a2d3672bbe777ed5ec6c28b6fc) - Every first-party adapter takes `defaultModelOptions`, of every kind: text, embedding, image, speech, transcription, audio, voice, video, live video, 3D model, 3D motion, world, rerank, summarize, and evaluate. Reactor, and the Gemini and OpenRouter evaluate adapters, have no model options to send, so they do not take it. Each activity (`chat()`, `embed()`, `generateImage()`, `generateSpeech()`, and the others) merges them under the `modelOptions` of each call, one level deep. A key that the call sets replaces the default key in full. A call key set to `undefined` keeps the default. The middleware, the devtools events or logs, and the adapter all get the merged value. + + ```ts + const adapter = openaiImage('gpt-image-2.6-flare', { + defaultModelOptions: { quality: 'high', output_format: 'webp' }, + }) + ``` + + `summarize()` with a text-backed summarize adapter applies the `defaultModelOptions` of the wrapped text adapter. A `temperature` in those defaults replaces the built-in summarize temperature. A per-call `maxLength` replaces a token limit that only comes from the defaults. + + The OpenAI, Cloudflare, Ollaya, and TypeSafe evaluate adapters now send `modelOptions` in the request. Before, they did not send them. + + `ollamaText()`, `ollamaEmbedding()`, `tripo3dModel()`, and the summarize factories of every text provider take `defaultModelOptions` too. + + `ai-fal`: an explicit `size` on `generateImage()` or `generateVideo()` now replaces `image_size`, `aspect_ratio`, or `resolution` in `modelOptions`. + + `ai-uthana`: the `defaults` config option is deprecated. Use `defaultModelOptions`. + + `ai-ollama`: for a model name that is not in the model list, `modelOptions` no longer accepts `model`. The adapter sets the model. + + Custom adapters: each `Base*Adapter` class in `@tanstack/ai/adapters` takes `defaultModelOptions` in its constructor config and stores it. Pass it to `super()`. Do not declare the field again in the subclass. `DefaultModelOptionsConfig` is the config type to extend. + +### Patch Changes + +- [#2242](https://github.com/TanStack/ai/pull/2242) [`2d89b06`](https://github.com/TanStack/ai/commit/2d89b062d92a3eef44406c015bf6d0ff2b47e6a4) - Fix model option types that did not match what the provider accepts. + - `@tanstack/ai`: an adapter can mark `modelOptions` keys that work only with `reasoning: 'off'` (`offOnlyOptions` on its reasoning capability). `chat()`, `ctx.chat()` and `createChatOptions()` then make those keys a type error when `reasoning` is not `'off'` or not set. + - `@tanstack/ai-openai`: on reasoning models (o-series, `gpt-5*`, `gpt-6*`, except `*-chat-latest`), `temperature`, `top_p` and `top_logprobs` type-check only with `reasoning: 'off'`. `o3-deep-research` and `o4-mini-deep-research` have no `'off'` level, so these options are always a type error there. The adapter still drops them at runtime for JS callers. Before, the types accepted them and nothing told you that they were dropped. + - `@tanstack/ai-openai`: `gpt-6.1-terra` (`off` to `max`) and `gpt-6.1-terra-pro` (`low` to `max`) now have their reasoning levels. Before, every `reasoning` value was a type error, and the adapter sent no reasoning effort. + - `@tanstack/ai-openai`: `service_tier` uses the `ServiceTier` type of the OpenAI SDK. It now accepts `'scale'`, `'fast'` and `'ultrafast'`. + - `@tanstack/ai-anthropic`: `claude-opus-5` and `claude-opus-5-5` no longer accept `temperature`, `top_p` or `top_k`. Anthropic returns a 400 for them on these models. + +- Updated dependencies [[`afed460`](https://github.com/TanStack/ai/commit/afed460573b0e9a2d3672bbe777ed5ec6c28b6fc), [`afed460`](https://github.com/TanStack/ai/commit/afed460573b0e9a2d3672bbe777ed5ec6c28b6fc), [`a88ee8d`](https://github.com/TanStack/ai/commit/a88ee8d963aa3693064282b2d7e19640472b484c), [`7ba3926`](https://github.com/TanStack/ai/commit/7ba3926652519bc0e1ea74e660ef7d0a0d6a37a6), [`1c55fd5`](https://github.com/TanStack/ai/commit/1c55fd51d2fcafb84f59295736bc42f6d2353868), [`2d89b06`](https://github.com/TanStack/ai/commit/2d89b062d92a3eef44406c015bf6d0ff2b47e6a4), [`a7501eb`](https://github.com/TanStack/ai/commit/a7501eb0a2223b079076bd106c257803742b0e6c), [`1c55fd5`](https://github.com/TanStack/ai/commit/1c55fd51d2fcafb84f59295736bc42f6d2353868)]: + - @tanstack/ai@1.12.0 + ## 1.2.4 ### Patch Changes diff --git a/packages/ai-anthropic/package.json b/packages/ai-anthropic/package.json index 3fde4a1356..530129d8be 100644 --- a/packages/ai-anthropic/package.json +++ b/packages/ai-anthropic/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/ai-anthropic", - "version": "1.2.4", + "version": "1.3.0", "description": "Anthropic Claude adapter for TanStack AI chat, tool calling, thinking, and structured outputs.", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/ai-bedrock/CHANGELOG.md b/packages/ai-bedrock/CHANGELOG.md index 895e008a24..6d13f0ef7c 100644 --- a/packages/ai-bedrock/CHANGELOG.md +++ b/packages/ai-bedrock/CHANGELOG.md @@ -1,5 +1,37 @@ # @tanstack/ai-bedrock +## 1.5.0 + +### Minor Changes + +- [#2254](https://github.com/TanStack/ai/pull/2254) [`afed460`](https://github.com/TanStack/ai/commit/afed460573b0e9a2d3672bbe777ed5ec6c28b6fc) - Every first-party adapter takes `defaultModelOptions`, of every kind: text, embedding, image, speech, transcription, audio, voice, video, live video, 3D model, 3D motion, world, rerank, summarize, and evaluate. Reactor, and the Gemini and OpenRouter evaluate adapters, have no model options to send, so they do not take it. Each activity (`chat()`, `embed()`, `generateImage()`, `generateSpeech()`, and the others) merges them under the `modelOptions` of each call, one level deep. A key that the call sets replaces the default key in full. A call key set to `undefined` keeps the default. The middleware, the devtools events or logs, and the adapter all get the merged value. + + ```ts + const adapter = openaiImage('gpt-image-2.6-flare', { + defaultModelOptions: { quality: 'high', output_format: 'webp' }, + }) + ``` + + `summarize()` with a text-backed summarize adapter applies the `defaultModelOptions` of the wrapped text adapter. A `temperature` in those defaults replaces the built-in summarize temperature. A per-call `maxLength` replaces a token limit that only comes from the defaults. + + The OpenAI, Cloudflare, Ollaya, and TypeSafe evaluate adapters now send `modelOptions` in the request. Before, they did not send them. + + `ollamaText()`, `ollamaEmbedding()`, `tripo3dModel()`, and the summarize factories of every text provider take `defaultModelOptions` too. + + `ai-fal`: an explicit `size` on `generateImage()` or `generateVideo()` now replaces `image_size`, `aspect_ratio`, or `resolution` in `modelOptions`. + + `ai-uthana`: the `defaults` config option is deprecated. Use `defaultModelOptions`. + + `ai-ollama`: for a model name that is not in the model list, `modelOptions` no longer accepts `model`. The adapter sets the model. + + Custom adapters: each `Base*Adapter` class in `@tanstack/ai/adapters` takes `defaultModelOptions` in its constructor config and stores it. Pass it to `super()`. Do not declare the field again in the subclass. `DefaultModelOptionsConfig` is the config type to extend. + +### Patch Changes + +- Updated dependencies [[`afed460`](https://github.com/TanStack/ai/commit/afed460573b0e9a2d3672bbe777ed5ec6c28b6fc), [`afed460`](https://github.com/TanStack/ai/commit/afed460573b0e9a2d3672bbe777ed5ec6c28b6fc), [`a88ee8d`](https://github.com/TanStack/ai/commit/a88ee8d963aa3693064282b2d7e19640472b484c), [`7ba3926`](https://github.com/TanStack/ai/commit/7ba3926652519bc0e1ea74e660ef7d0a0d6a37a6), [`1c55fd5`](https://github.com/TanStack/ai/commit/1c55fd51d2fcafb84f59295736bc42f6d2353868), [`2d89b06`](https://github.com/TanStack/ai/commit/2d89b062d92a3eef44406c015bf6d0ff2b47e6a4), [`a7501eb`](https://github.com/TanStack/ai/commit/a7501eb0a2223b079076bd106c257803742b0e6c), [`1c55fd5`](https://github.com/TanStack/ai/commit/1c55fd51d2fcafb84f59295736bc42f6d2353868)]: + - @tanstack/ai@1.12.0 + - @tanstack/openai-base@1.2.0 + ## 1.4.1 ### Patch Changes diff --git a/packages/ai-bedrock/package.json b/packages/ai-bedrock/package.json index 84eefa53af..15f204c7dd 100644 --- a/packages/ai-bedrock/package.json +++ b/packages/ai-bedrock/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/ai-bedrock", - "version": "1.4.1", + "version": "1.5.0", "type": "module", "description": "Amazon Bedrock adapter for TanStack AI with chat, tools, reasoning, embeddings, and reranking.", "author": "", diff --git a/packages/ai-byteplus/CHANGELOG.md b/packages/ai-byteplus/CHANGELOG.md index 9a6e3e64df..214191a811 100644 --- a/packages/ai-byteplus/CHANGELOG.md +++ b/packages/ai-byteplus/CHANGELOG.md @@ -1,5 +1,37 @@ # @tanstack/ai-byteplus +## 1.2.0 + +### Minor Changes + +- [#2254](https://github.com/TanStack/ai/pull/2254) [`afed460`](https://github.com/TanStack/ai/commit/afed460573b0e9a2d3672bbe777ed5ec6c28b6fc) - Every first-party adapter takes `defaultModelOptions`, of every kind: text, embedding, image, speech, transcription, audio, voice, video, live video, 3D model, 3D motion, world, rerank, summarize, and evaluate. Reactor, and the Gemini and OpenRouter evaluate adapters, have no model options to send, so they do not take it. Each activity (`chat()`, `embed()`, `generateImage()`, `generateSpeech()`, and the others) merges them under the `modelOptions` of each call, one level deep. A key that the call sets replaces the default key in full. A call key set to `undefined` keeps the default. The middleware, the devtools events or logs, and the adapter all get the merged value. + + ```ts + const adapter = openaiImage('gpt-image-2.6-flare', { + defaultModelOptions: { quality: 'high', output_format: 'webp' }, + }) + ``` + + `summarize()` with a text-backed summarize adapter applies the `defaultModelOptions` of the wrapped text adapter. A `temperature` in those defaults replaces the built-in summarize temperature. A per-call `maxLength` replaces a token limit that only comes from the defaults. + + The OpenAI, Cloudflare, Ollaya, and TypeSafe evaluate adapters now send `modelOptions` in the request. Before, they did not send them. + + `ollamaText()`, `ollamaEmbedding()`, `tripo3dModel()`, and the summarize factories of every text provider take `defaultModelOptions` too. + + `ai-fal`: an explicit `size` on `generateImage()` or `generateVideo()` now replaces `image_size`, `aspect_ratio`, or `resolution` in `modelOptions`. + + `ai-uthana`: the `defaults` config option is deprecated. Use `defaultModelOptions`. + + `ai-ollama`: for a model name that is not in the model list, `modelOptions` no longer accepts `model`. The adapter sets the model. + + Custom adapters: each `Base*Adapter` class in `@tanstack/ai/adapters` takes `defaultModelOptions` in its constructor config and stores it. Pass it to `super()`. Do not declare the field again in the subclass. `DefaultModelOptionsConfig` is the config type to extend. + +### Patch Changes + +- Updated dependencies [[`afed460`](https://github.com/TanStack/ai/commit/afed460573b0e9a2d3672bbe777ed5ec6c28b6fc), [`afed460`](https://github.com/TanStack/ai/commit/afed460573b0e9a2d3672bbe777ed5ec6c28b6fc), [`a88ee8d`](https://github.com/TanStack/ai/commit/a88ee8d963aa3693064282b2d7e19640472b484c), [`7ba3926`](https://github.com/TanStack/ai/commit/7ba3926652519bc0e1ea74e660ef7d0a0d6a37a6), [`1c55fd5`](https://github.com/TanStack/ai/commit/1c55fd51d2fcafb84f59295736bc42f6d2353868), [`2d89b06`](https://github.com/TanStack/ai/commit/2d89b062d92a3eef44406c015bf6d0ff2b47e6a4), [`a7501eb`](https://github.com/TanStack/ai/commit/a7501eb0a2223b079076bd106c257803742b0e6c), [`1c55fd5`](https://github.com/TanStack/ai/commit/1c55fd51d2fcafb84f59295736bc42f6d2353868)]: + - @tanstack/ai@1.12.0 + - @tanstack/openai-base@1.2.0 + ## 1.1.1 ### Patch Changes diff --git a/packages/ai-byteplus/package.json b/packages/ai-byteplus/package.json index 52e26c452d..acd9c3ff1a 100644 --- a/packages/ai-byteplus/package.json +++ b/packages/ai-byteplus/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/ai-byteplus", - "version": "1.1.1", + "version": "1.2.0", "description": "BytePlus ModelArk adapter for TanStack AI: Seed LLM chat, Seedance video, Seedream image, and Seed Speech TTS/ASR.", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/ai-cartesia/CHANGELOG.md b/packages/ai-cartesia/CHANGELOG.md index 1bb9f10965..22db6304e5 100644 --- a/packages/ai-cartesia/CHANGELOG.md +++ b/packages/ai-cartesia/CHANGELOG.md @@ -1,5 +1,36 @@ # @tanstack/ai-cartesia +## 0.2.0 + +### Minor Changes + +- [#2254](https://github.com/TanStack/ai/pull/2254) [`afed460`](https://github.com/TanStack/ai/commit/afed460573b0e9a2d3672bbe777ed5ec6c28b6fc) - Every first-party adapter takes `defaultModelOptions`, of every kind: text, embedding, image, speech, transcription, audio, voice, video, live video, 3D model, 3D motion, world, rerank, summarize, and evaluate. Reactor, and the Gemini and OpenRouter evaluate adapters, have no model options to send, so they do not take it. Each activity (`chat()`, `embed()`, `generateImage()`, `generateSpeech()`, and the others) merges them under the `modelOptions` of each call, one level deep. A key that the call sets replaces the default key in full. A call key set to `undefined` keeps the default. The middleware, the devtools events or logs, and the adapter all get the merged value. + + ```ts + const adapter = openaiImage('gpt-image-2.6-flare', { + defaultModelOptions: { quality: 'high', output_format: 'webp' }, + }) + ``` + + `summarize()` with a text-backed summarize adapter applies the `defaultModelOptions` of the wrapped text adapter. A `temperature` in those defaults replaces the built-in summarize temperature. A per-call `maxLength` replaces a token limit that only comes from the defaults. + + The OpenAI, Cloudflare, Ollaya, and TypeSafe evaluate adapters now send `modelOptions` in the request. Before, they did not send them. + + `ollamaText()`, `ollamaEmbedding()`, `tripo3dModel()`, and the summarize factories of every text provider take `defaultModelOptions` too. + + `ai-fal`: an explicit `size` on `generateImage()` or `generateVideo()` now replaces `image_size`, `aspect_ratio`, or `resolution` in `modelOptions`. + + `ai-uthana`: the `defaults` config option is deprecated. Use `defaultModelOptions`. + + `ai-ollama`: for a model name that is not in the model list, `modelOptions` no longer accepts `model`. The adapter sets the model. + + Custom adapters: each `Base*Adapter` class in `@tanstack/ai/adapters` takes `defaultModelOptions` in its constructor config and stores it. Pass it to `super()`. Do not declare the field again in the subclass. `DefaultModelOptionsConfig` is the config type to extend. + +### Patch Changes + +- Updated dependencies [[`afed460`](https://github.com/TanStack/ai/commit/afed460573b0e9a2d3672bbe777ed5ec6c28b6fc), [`afed460`](https://github.com/TanStack/ai/commit/afed460573b0e9a2d3672bbe777ed5ec6c28b6fc), [`a88ee8d`](https://github.com/TanStack/ai/commit/a88ee8d963aa3693064282b2d7e19640472b484c), [`7ba3926`](https://github.com/TanStack/ai/commit/7ba3926652519bc0e1ea74e660ef7d0a0d6a37a6), [`1c55fd5`](https://github.com/TanStack/ai/commit/1c55fd51d2fcafb84f59295736bc42f6d2353868), [`2d89b06`](https://github.com/TanStack/ai/commit/2d89b062d92a3eef44406c015bf6d0ff2b47e6a4), [`a7501eb`](https://github.com/TanStack/ai/commit/a7501eb0a2223b079076bd106c257803742b0e6c), [`1c55fd5`](https://github.com/TanStack/ai/commit/1c55fd51d2fcafb84f59295736bc42f6d2353868)]: + - @tanstack/ai@1.12.0 + ## 0.1.0 ### Minor Changes diff --git a/packages/ai-cartesia/package.json b/packages/ai-cartesia/package.json index 690265ed8d..9e1d19e5ed 100644 --- a/packages/ai-cartesia/package.json +++ b/packages/ai-cartesia/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/ai-cartesia", - "version": "0.1.0", + "version": "0.2.0", "description": "Cartesia speech and transcription adapters for TanStack AI", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/ai-claude-code/CHANGELOG.md b/packages/ai-claude-code/CHANGELOG.md index 65439c1539..30e1afaae2 100644 --- a/packages/ai-claude-code/CHANGELOG.md +++ b/packages/ai-claude-code/CHANGELOG.md @@ -1,5 +1,37 @@ # @tanstack/ai-claude-code +## 1.2.0 + +### Minor Changes + +- [#2254](https://github.com/TanStack/ai/pull/2254) [`afed460`](https://github.com/TanStack/ai/commit/afed460573b0e9a2d3672bbe777ed5ec6c28b6fc) - Every first-party adapter takes `defaultModelOptions`, of every kind: text, embedding, image, speech, transcription, audio, voice, video, live video, 3D model, 3D motion, world, rerank, summarize, and evaluate. Reactor, and the Gemini and OpenRouter evaluate adapters, have no model options to send, so they do not take it. Each activity (`chat()`, `embed()`, `generateImage()`, `generateSpeech()`, and the others) merges them under the `modelOptions` of each call, one level deep. A key that the call sets replaces the default key in full. A call key set to `undefined` keeps the default. The middleware, the devtools events or logs, and the adapter all get the merged value. + + ```ts + const adapter = openaiImage('gpt-image-2.6-flare', { + defaultModelOptions: { quality: 'high', output_format: 'webp' }, + }) + ``` + + `summarize()` with a text-backed summarize adapter applies the `defaultModelOptions` of the wrapped text adapter. A `temperature` in those defaults replaces the built-in summarize temperature. A per-call `maxLength` replaces a token limit that only comes from the defaults. + + The OpenAI, Cloudflare, Ollaya, and TypeSafe evaluate adapters now send `modelOptions` in the request. Before, they did not send them. + + `ollamaText()`, `ollamaEmbedding()`, `tripo3dModel()`, and the summarize factories of every text provider take `defaultModelOptions` too. + + `ai-fal`: an explicit `size` on `generateImage()` or `generateVideo()` now replaces `image_size`, `aspect_ratio`, or `resolution` in `modelOptions`. + + `ai-uthana`: the `defaults` config option is deprecated. Use `defaultModelOptions`. + + `ai-ollama`: for a model name that is not in the model list, `modelOptions` no longer accepts `model`. The adapter sets the model. + + Custom adapters: each `Base*Adapter` class in `@tanstack/ai/adapters` takes `defaultModelOptions` in its constructor config and stores it. Pass it to `super()`. Do not declare the field again in the subclass. `DefaultModelOptionsConfig` is the config type to extend. + +### Patch Changes + +- Updated dependencies [[`afed460`](https://github.com/TanStack/ai/commit/afed460573b0e9a2d3672bbe777ed5ec6c28b6fc), [`afed460`](https://github.com/TanStack/ai/commit/afed460573b0e9a2d3672bbe777ed5ec6c28b6fc), [`a88ee8d`](https://github.com/TanStack/ai/commit/a88ee8d963aa3693064282b2d7e19640472b484c), [`7ba3926`](https://github.com/TanStack/ai/commit/7ba3926652519bc0e1ea74e660ef7d0a0d6a37a6), [`1c55fd5`](https://github.com/TanStack/ai/commit/1c55fd51d2fcafb84f59295736bc42f6d2353868), [`2d89b06`](https://github.com/TanStack/ai/commit/2d89b062d92a3eef44406c015bf6d0ff2b47e6a4), [`a7501eb`](https://github.com/TanStack/ai/commit/a7501eb0a2223b079076bd106c257803742b0e6c), [`1c55fd5`](https://github.com/TanStack/ai/commit/1c55fd51d2fcafb84f59295736bc42f6d2353868)]: + - @tanstack/ai@1.12.0 + - @tanstack/ai-sandbox@1.7.1 + ## 1.1.0 ### Minor Changes diff --git a/packages/ai-claude-code/package.json b/packages/ai-claude-code/package.json index 9834b8eb46..f65f80d8d2 100644 --- a/packages/ai-claude-code/package.json +++ b/packages/ai-claude-code/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/ai-claude-code", - "version": "1.1.0", + "version": "1.2.0", "description": "Claude Code harness adapter for TanStack AI — run Claude Code as a chat backend with local tool execution and stateful sessions.", "author": "", "license": "MIT", diff --git a/packages/ai-client/CHANGELOG.md b/packages/ai-client/CHANGELOG.md index d055fe9473..5b9bbd1ec8 100644 --- a/packages/ai-client/CHANGELOG.md +++ b/packages/ai-client/CHANGELOG.md @@ -1,5 +1,35 @@ # @tanstack/ai-client +## 1.5.0 + +### Minor Changes + +- [#2258](https://github.com/TanStack/ai/pull/2258) [`518dee9`](https://github.com/TanStack/ai/commit/518dee986e84e1869008c67f9e4841832777c062) - Export `StreamHttpError` from `@tanstack/ai-client` and re-export it from the framework packages. The fetch and XHR chat transports throw this class when the response status is not 2xx. It has `status`, and `retryAfterMs` when the response has a valid `Retry-After` header. Import it to check the status with `instanceof` in `onError` instead of parsing the error message. + +- [#2239](https://github.com/TanStack/ai/pull/2239) [`7ba3926`](https://github.com/TanStack/ai/commit/7ba3926652519bc0e1ea74e660ef7d0a0d6a37a6) - Add OpenAI GPT-Live voice (`gpt-live-1` and `gpt-live-1.1`). On the server, `openaiLiveSession()` creates the session. In the browser, `openaiLive()` connects over WebRTC. + + GPT-Live has no browser token, so this release adds a relay path: + - `realtimeSession()` in `@tanstack/ai` takes the WebRTC offer from the browser, gives it to a `RealtimeSessionAdapter`, and returns the answer. + - `RealtimeRelayAdapter` (`kind: 'relay'`) is a browser adapter that connects through your server. + - `RealtimeClient`, `useRealtimeChat`, and `createRealtimeChat` take `createSession` in place of `getToken` for a relay adapter. + + The options type is now a union of the token form and the relay form. If you read the type of `getToken` from it (for example `UseRealtimeChatOptions['getToken']`), the type now includes `undefined`. + + `RealtimeClient.updateSession()` now sends `providerOptions` to the connection. Before, the client kept `providerOptions` but did not send them. + + Realtime adapters now get `RealtimeConnectOptions` (`abortSignal`, `autoCapture`) in `connect()`. With `autoCapture: false`, `openaiRealtime()` and `openaiLive()` open the microphone on the first `startAudioCapture()`, not on connect. + + `RealtimeClient` sends a tool result only to the connection that asked for it. After a reconnect, a result from the old session is dropped. + + `createSession` receives the connect `AbortSignal` as its second argument. Pass it to the session request so a cancelled connect does not open a provider session. + + A delegated response that fails, or ends before it is complete, reports an error. The client does not continue that turn. + +### Patch Changes + +- Updated dependencies [[`afed460`](https://github.com/TanStack/ai/commit/afed460573b0e9a2d3672bbe777ed5ec6c28b6fc), [`afed460`](https://github.com/TanStack/ai/commit/afed460573b0e9a2d3672bbe777ed5ec6c28b6fc), [`a88ee8d`](https://github.com/TanStack/ai/commit/a88ee8d963aa3693064282b2d7e19640472b484c), [`7ba3926`](https://github.com/TanStack/ai/commit/7ba3926652519bc0e1ea74e660ef7d0a0d6a37a6), [`1c55fd5`](https://github.com/TanStack/ai/commit/1c55fd51d2fcafb84f59295736bc42f6d2353868), [`2d89b06`](https://github.com/TanStack/ai/commit/2d89b062d92a3eef44406c015bf6d0ff2b47e6a4), [`a7501eb`](https://github.com/TanStack/ai/commit/a7501eb0a2223b079076bd106c257803742b0e6c), [`1c55fd5`](https://github.com/TanStack/ai/commit/1c55fd51d2fcafb84f59295736bc42f6d2353868)]: + - @tanstack/ai@1.12.0 + ## 1.4.0 ### Minor Changes diff --git a/packages/ai-client/package.json b/packages/ai-client/package.json index d8b8b5d8fb..963efcc927 100644 --- a/packages/ai-client/package.json +++ b/packages/ai-client/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/ai-client", - "version": "1.4.0", + "version": "1.5.0", "description": "Framework-agnostic headless client for TanStack AI chat, realtime sessions, streaming transports, and media generations.", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/ai-cloudflare/CHANGELOG.md b/packages/ai-cloudflare/CHANGELOG.md index 224a1f4459..a48d0579d1 100644 --- a/packages/ai-cloudflare/CHANGELOG.md +++ b/packages/ai-cloudflare/CHANGELOG.md @@ -1,5 +1,37 @@ # @tanstack/ai-cloudflare +## 1.3.0 + +### Minor Changes + +- [#2254](https://github.com/TanStack/ai/pull/2254) [`afed460`](https://github.com/TanStack/ai/commit/afed460573b0e9a2d3672bbe777ed5ec6c28b6fc) - Every first-party adapter takes `defaultModelOptions`, of every kind: text, embedding, image, speech, transcription, audio, voice, video, live video, 3D model, 3D motion, world, rerank, summarize, and evaluate. Reactor, and the Gemini and OpenRouter evaluate adapters, have no model options to send, so they do not take it. Each activity (`chat()`, `embed()`, `generateImage()`, `generateSpeech()`, and the others) merges them under the `modelOptions` of each call, one level deep. A key that the call sets replaces the default key in full. A call key set to `undefined` keeps the default. The middleware, the devtools events or logs, and the adapter all get the merged value. + + ```ts + const adapter = openaiImage('gpt-image-2.6-flare', { + defaultModelOptions: { quality: 'high', output_format: 'webp' }, + }) + ``` + + `summarize()` with a text-backed summarize adapter applies the `defaultModelOptions` of the wrapped text adapter. A `temperature` in those defaults replaces the built-in summarize temperature. A per-call `maxLength` replaces a token limit that only comes from the defaults. + + The OpenAI, Cloudflare, Ollaya, and TypeSafe evaluate adapters now send `modelOptions` in the request. Before, they did not send them. + + `ollamaText()`, `ollamaEmbedding()`, `tripo3dModel()`, and the summarize factories of every text provider take `defaultModelOptions` too. + + `ai-fal`: an explicit `size` on `generateImage()` or `generateVideo()` now replaces `image_size`, `aspect_ratio`, or `resolution` in `modelOptions`. + + `ai-uthana`: the `defaults` config option is deprecated. Use `defaultModelOptions`. + + `ai-ollama`: for a model name that is not in the model list, `modelOptions` no longer accepts `model`. The adapter sets the model. + + Custom adapters: each `Base*Adapter` class in `@tanstack/ai/adapters` takes `defaultModelOptions` in its constructor config and stores it. Pass it to `super()`. Do not declare the field again in the subclass. `DefaultModelOptionsConfig` is the config type to extend. + +### Patch Changes + +- Updated dependencies [[`afed460`](https://github.com/TanStack/ai/commit/afed460573b0e9a2d3672bbe777ed5ec6c28b6fc), [`afed460`](https://github.com/TanStack/ai/commit/afed460573b0e9a2d3672bbe777ed5ec6c28b6fc), [`a88ee8d`](https://github.com/TanStack/ai/commit/a88ee8d963aa3693064282b2d7e19640472b484c), [`7ba3926`](https://github.com/TanStack/ai/commit/7ba3926652519bc0e1ea74e660ef7d0a0d6a37a6), [`1c55fd5`](https://github.com/TanStack/ai/commit/1c55fd51d2fcafb84f59295736bc42f6d2353868), [`2d89b06`](https://github.com/TanStack/ai/commit/2d89b062d92a3eef44406c015bf6d0ff2b47e6a4), [`a7501eb`](https://github.com/TanStack/ai/commit/a7501eb0a2223b079076bd106c257803742b0e6c), [`1c55fd5`](https://github.com/TanStack/ai/commit/1c55fd51d2fcafb84f59295736bc42f6d2353868)]: + - @tanstack/ai@1.12.0 + - @tanstack/openai-base@1.2.0 + ## 1.2.2 ### Patch Changes diff --git a/packages/ai-cloudflare/package.json b/packages/ai-cloudflare/package.json index ce8f95d7cc..d648726f25 100644 --- a/packages/ai-cloudflare/package.json +++ b/packages/ai-cloudflare/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/ai-cloudflare", - "version": "1.2.2", + "version": "1.3.0", "description": "Cloudflare adapter for TanStack AI — Workers AI chat, embeddings, images, speech, transcription, and summarization over the AI binding or REST, with AI Gateway routing for any provider.", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/ai-code-mode/CHANGELOG.md b/packages/ai-code-mode/CHANGELOG.md index 36cedcdace..fcf2a0f5aa 100644 --- a/packages/ai-code-mode/CHANGELOG.md +++ b/packages/ai-code-mode/CHANGELOG.md @@ -1,5 +1,18 @@ # @tanstack/ai-code-mode +## 1.2.1 + +### Patch Changes + +- [#2157](https://github.com/TanStack/ai/pull/2157) [`9c1584d`](https://github.com/TanStack/ai/commit/9c1584db1eac57ec4d7c67e0af57cfd29a6b1a6c) - Add `@tanstack/ai-isolate`, the engine-agnostic isolate base. It owns the contract every sandbox driver implements (`IsolateDriver`, `IsolateConfig`, `IsolateContext`, `ExecutionResult`, `NormalizedError`, `ToolBinding`) plus the shared `wrapCode` helper. These previously lived inside `@tanstack/ai-code-mode`, which forced every driver to depend on Code Mode just for the contract. + + Drivers (`quickjs`, `quickjs-bun`, `node`, `cloudflare`, `e2b`, `daytona`) now depend on `@tanstack/ai-isolate` instead of `@tanstack/ai-code-mode`. It is a regular dependency of each driver, so you install nothing extra. `@tanstack/ai-code-mode` re-exports the same types and `wrapCode`, so its public API is unchanged. + +- Updated dependencies [[`afed460`](https://github.com/TanStack/ai/commit/afed460573b0e9a2d3672bbe777ed5ec6c28b6fc), [`afed460`](https://github.com/TanStack/ai/commit/afed460573b0e9a2d3672bbe777ed5ec6c28b6fc), [`9c1584d`](https://github.com/TanStack/ai/commit/9c1584db1eac57ec4d7c67e0af57cfd29a6b1a6c), [`014da3a`](https://github.com/TanStack/ai/commit/014da3a4ca8bfbfaadad8423e2749a9ce5564187), [`a88ee8d`](https://github.com/TanStack/ai/commit/a88ee8d963aa3693064282b2d7e19640472b484c), [`7ba3926`](https://github.com/TanStack/ai/commit/7ba3926652519bc0e1ea74e660ef7d0a0d6a37a6), [`1c55fd5`](https://github.com/TanStack/ai/commit/1c55fd51d2fcafb84f59295736bc42f6d2353868), [`2d89b06`](https://github.com/TanStack/ai/commit/2d89b062d92a3eef44406c015bf6d0ff2b47e6a4), [`a7501eb`](https://github.com/TanStack/ai/commit/a7501eb0a2223b079076bd106c257803742b0e6c), [`1c55fd5`](https://github.com/TanStack/ai/commit/1c55fd51d2fcafb84f59295736bc42f6d2353868)]: + - @tanstack/ai@1.12.0 + - @tanstack/ai-isolate@1.2.0 + - @tanstack/ai-harness@0.7.0 + ## 1.2.0 ### Minor Changes diff --git a/packages/ai-code-mode/package.json b/packages/ai-code-mode/package.json index ded2431773..8cdc48fb29 100644 --- a/packages/ai-code-mode/package.json +++ b/packages/ai-code-mode/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/ai-code-mode", - "version": "1.2.0", + "version": "1.2.1", "description": "Secure TypeScript Code Mode for TanStack AI agents to execute sandboxed tool orchestration programs.", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/ai-codex/CHANGELOG.md b/packages/ai-codex/CHANGELOG.md index d7b86e8182..6c0bb4065e 100644 --- a/packages/ai-codex/CHANGELOG.md +++ b/packages/ai-codex/CHANGELOG.md @@ -1,5 +1,37 @@ # @tanstack/ai-codex +## 1.3.0 + +### Minor Changes + +- [#2254](https://github.com/TanStack/ai/pull/2254) [`afed460`](https://github.com/TanStack/ai/commit/afed460573b0e9a2d3672bbe777ed5ec6c28b6fc) - Every first-party adapter takes `defaultModelOptions`, of every kind: text, embedding, image, speech, transcription, audio, voice, video, live video, 3D model, 3D motion, world, rerank, summarize, and evaluate. Reactor, and the Gemini and OpenRouter evaluate adapters, have no model options to send, so they do not take it. Each activity (`chat()`, `embed()`, `generateImage()`, `generateSpeech()`, and the others) merges them under the `modelOptions` of each call, one level deep. A key that the call sets replaces the default key in full. A call key set to `undefined` keeps the default. The middleware, the devtools events or logs, and the adapter all get the merged value. + + ```ts + const adapter = openaiImage('gpt-image-2.6-flare', { + defaultModelOptions: { quality: 'high', output_format: 'webp' }, + }) + ``` + + `summarize()` with a text-backed summarize adapter applies the `defaultModelOptions` of the wrapped text adapter. A `temperature` in those defaults replaces the built-in summarize temperature. A per-call `maxLength` replaces a token limit that only comes from the defaults. + + The OpenAI, Cloudflare, Ollaya, and TypeSafe evaluate adapters now send `modelOptions` in the request. Before, they did not send them. + + `ollamaText()`, `ollamaEmbedding()`, `tripo3dModel()`, and the summarize factories of every text provider take `defaultModelOptions` too. + + `ai-fal`: an explicit `size` on `generateImage()` or `generateVideo()` now replaces `image_size`, `aspect_ratio`, or `resolution` in `modelOptions`. + + `ai-uthana`: the `defaults` config option is deprecated. Use `defaultModelOptions`. + + `ai-ollama`: for a model name that is not in the model list, `modelOptions` no longer accepts `model`. The adapter sets the model. + + Custom adapters: each `Base*Adapter` class in `@tanstack/ai/adapters` takes `defaultModelOptions` in its constructor config and stores it. Pass it to `super()`. Do not declare the field again in the subclass. `DefaultModelOptionsConfig` is the config type to extend. + +### Patch Changes + +- Updated dependencies [[`afed460`](https://github.com/TanStack/ai/commit/afed460573b0e9a2d3672bbe777ed5ec6c28b6fc), [`afed460`](https://github.com/TanStack/ai/commit/afed460573b0e9a2d3672bbe777ed5ec6c28b6fc), [`a88ee8d`](https://github.com/TanStack/ai/commit/a88ee8d963aa3693064282b2d7e19640472b484c), [`7ba3926`](https://github.com/TanStack/ai/commit/7ba3926652519bc0e1ea74e660ef7d0a0d6a37a6), [`1c55fd5`](https://github.com/TanStack/ai/commit/1c55fd51d2fcafb84f59295736bc42f6d2353868), [`2d89b06`](https://github.com/TanStack/ai/commit/2d89b062d92a3eef44406c015bf6d0ff2b47e6a4), [`a7501eb`](https://github.com/TanStack/ai/commit/a7501eb0a2223b079076bd106c257803742b0e6c), [`1c55fd5`](https://github.com/TanStack/ai/commit/1c55fd51d2fcafb84f59295736bc42f6d2353868)]: + - @tanstack/ai@1.12.0 + - @tanstack/ai-sandbox@1.7.1 + ## 1.2.0 ### Minor Changes diff --git a/packages/ai-codex/package.json b/packages/ai-codex/package.json index fab1739fed..3aeb2e248f 100644 --- a/packages/ai-codex/package.json +++ b/packages/ai-codex/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/ai-codex", - "version": "1.2.0", + "version": "1.3.0", "description": "Codex harness adapter for TanStack AI — run OpenAI Codex as a chat backend with local tool execution and stateful sessions.", "author": "", "license": "MIT", diff --git a/packages/ai-cohere/CHANGELOG.md b/packages/ai-cohere/CHANGELOG.md index 0b35e642ab..92384b7bc8 100644 --- a/packages/ai-cohere/CHANGELOG.md +++ b/packages/ai-cohere/CHANGELOG.md @@ -1,5 +1,36 @@ # @tanstack/ai-cohere +## 1.2.0 + +### Minor Changes + +- [#2254](https://github.com/TanStack/ai/pull/2254) [`afed460`](https://github.com/TanStack/ai/commit/afed460573b0e9a2d3672bbe777ed5ec6c28b6fc) - Every first-party adapter takes `defaultModelOptions`, of every kind: text, embedding, image, speech, transcription, audio, voice, video, live video, 3D model, 3D motion, world, rerank, summarize, and evaluate. Reactor, and the Gemini and OpenRouter evaluate adapters, have no model options to send, so they do not take it. Each activity (`chat()`, `embed()`, `generateImage()`, `generateSpeech()`, and the others) merges them under the `modelOptions` of each call, one level deep. A key that the call sets replaces the default key in full. A call key set to `undefined` keeps the default. The middleware, the devtools events or logs, and the adapter all get the merged value. + + ```ts + const adapter = openaiImage('gpt-image-2.6-flare', { + defaultModelOptions: { quality: 'high', output_format: 'webp' }, + }) + ``` + + `summarize()` with a text-backed summarize adapter applies the `defaultModelOptions` of the wrapped text adapter. A `temperature` in those defaults replaces the built-in summarize temperature. A per-call `maxLength` replaces a token limit that only comes from the defaults. + + The OpenAI, Cloudflare, Ollaya, and TypeSafe evaluate adapters now send `modelOptions` in the request. Before, they did not send them. + + `ollamaText()`, `ollamaEmbedding()`, `tripo3dModel()`, and the summarize factories of every text provider take `defaultModelOptions` too. + + `ai-fal`: an explicit `size` on `generateImage()` or `generateVideo()` now replaces `image_size`, `aspect_ratio`, or `resolution` in `modelOptions`. + + `ai-uthana`: the `defaults` config option is deprecated. Use `defaultModelOptions`. + + `ai-ollama`: for a model name that is not in the model list, `modelOptions` no longer accepts `model`. The adapter sets the model. + + Custom adapters: each `Base*Adapter` class in `@tanstack/ai/adapters` takes `defaultModelOptions` in its constructor config and stores it. Pass it to `super()`. Do not declare the field again in the subclass. `DefaultModelOptionsConfig` is the config type to extend. + +### Patch Changes + +- Updated dependencies [[`afed460`](https://github.com/TanStack/ai/commit/afed460573b0e9a2d3672bbe777ed5ec6c28b6fc), [`afed460`](https://github.com/TanStack/ai/commit/afed460573b0e9a2d3672bbe777ed5ec6c28b6fc), [`a88ee8d`](https://github.com/TanStack/ai/commit/a88ee8d963aa3693064282b2d7e19640472b484c), [`7ba3926`](https://github.com/TanStack/ai/commit/7ba3926652519bc0e1ea74e660ef7d0a0d6a37a6), [`1c55fd5`](https://github.com/TanStack/ai/commit/1c55fd51d2fcafb84f59295736bc42f6d2353868), [`2d89b06`](https://github.com/TanStack/ai/commit/2d89b062d92a3eef44406c015bf6d0ff2b47e6a4), [`a7501eb`](https://github.com/TanStack/ai/commit/a7501eb0a2223b079076bd106c257803742b0e6c), [`1c55fd5`](https://github.com/TanStack/ai/commit/1c55fd51d2fcafb84f59295736bc42f6d2353868)]: + - @tanstack/ai@1.12.0 + ## 1.1.1 ### Patch Changes diff --git a/packages/ai-cohere/package.json b/packages/ai-cohere/package.json index 590a30ef5d..3d87a531a2 100644 --- a/packages/ai-cohere/package.json +++ b/packages/ai-cohere/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/ai-cohere", - "version": "1.1.1", + "version": "1.2.0", "description": "Cohere adapter for TanStack AI — multimodal embeddings and document reranking.", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/ai-computer-use/CHANGELOG.md b/packages/ai-computer-use/CHANGELOG.md index 6d85f73540..1436e8ca0a 100644 --- a/packages/ai-computer-use/CHANGELOG.md +++ b/packages/ai-computer-use/CHANGELOG.md @@ -1,5 +1,13 @@ # @tanstack/ai-computer-use +## 1.1.5 + +### Patch Changes + +- Updated dependencies [[`afed460`](https://github.com/TanStack/ai/commit/afed460573b0e9a2d3672bbe777ed5ec6c28b6fc), [`afed460`](https://github.com/TanStack/ai/commit/afed460573b0e9a2d3672bbe777ed5ec6c28b6fc), [`014da3a`](https://github.com/TanStack/ai/commit/014da3a4ca8bfbfaadad8423e2749a9ce5564187), [`a88ee8d`](https://github.com/TanStack/ai/commit/a88ee8d963aa3693064282b2d7e19640472b484c), [`7ba3926`](https://github.com/TanStack/ai/commit/7ba3926652519bc0e1ea74e660ef7d0a0d6a37a6), [`1c55fd5`](https://github.com/TanStack/ai/commit/1c55fd51d2fcafb84f59295736bc42f6d2353868), [`2d89b06`](https://github.com/TanStack/ai/commit/2d89b062d92a3eef44406c015bf6d0ff2b47e6a4), [`a7501eb`](https://github.com/TanStack/ai/commit/a7501eb0a2223b079076bd106c257803742b0e6c), [`1c55fd5`](https://github.com/TanStack/ai/commit/1c55fd51d2fcafb84f59295736bc42f6d2353868)]: + - @tanstack/ai@1.12.0 + - @tanstack/ai-harness@0.7.0 + ## 1.1.4 ### Patch Changes diff --git a/packages/ai-computer-use/package.json b/packages/ai-computer-use/package.json index 6376883c7c..07f6cd9f9d 100644 --- a/packages/ai-computer-use/package.json +++ b/packages/ai-computer-use/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/ai-computer-use", - "version": "1.1.4", + "version": "1.1.5", "description": "Provider-agnostic computer use for TanStack AI.", "author": "", "license": "MIT", diff --git a/packages/ai-elevenlabs/CHANGELOG.md b/packages/ai-elevenlabs/CHANGELOG.md index c32ee422fb..68a316f60a 100644 --- a/packages/ai-elevenlabs/CHANGELOG.md +++ b/packages/ai-elevenlabs/CHANGELOG.md @@ -1,5 +1,36 @@ # @tanstack/ai-elevenlabs +## 1.2.0 + +### Minor Changes + +- [#2254](https://github.com/TanStack/ai/pull/2254) [`afed460`](https://github.com/TanStack/ai/commit/afed460573b0e9a2d3672bbe777ed5ec6c28b6fc) - Every first-party adapter takes `defaultModelOptions`, of every kind: text, embedding, image, speech, transcription, audio, voice, video, live video, 3D model, 3D motion, world, rerank, summarize, and evaluate. Reactor, and the Gemini and OpenRouter evaluate adapters, have no model options to send, so they do not take it. Each activity (`chat()`, `embed()`, `generateImage()`, `generateSpeech()`, and the others) merges them under the `modelOptions` of each call, one level deep. A key that the call sets replaces the default key in full. A call key set to `undefined` keeps the default. The middleware, the devtools events or logs, and the adapter all get the merged value. + + ```ts + const adapter = openaiImage('gpt-image-2.6-flare', { + defaultModelOptions: { quality: 'high', output_format: 'webp' }, + }) + ``` + + `summarize()` with a text-backed summarize adapter applies the `defaultModelOptions` of the wrapped text adapter. A `temperature` in those defaults replaces the built-in summarize temperature. A per-call `maxLength` replaces a token limit that only comes from the defaults. + + The OpenAI, Cloudflare, Ollaya, and TypeSafe evaluate adapters now send `modelOptions` in the request. Before, they did not send them. + + `ollamaText()`, `ollamaEmbedding()`, `tripo3dModel()`, and the summarize factories of every text provider take `defaultModelOptions` too. + + `ai-fal`: an explicit `size` on `generateImage()` or `generateVideo()` now replaces `image_size`, `aspect_ratio`, or `resolution` in `modelOptions`. + + `ai-uthana`: the `defaults` config option is deprecated. Use `defaultModelOptions`. + + `ai-ollama`: for a model name that is not in the model list, `modelOptions` no longer accepts `model`. The adapter sets the model. + + Custom adapters: each `Base*Adapter` class in `@tanstack/ai/adapters` takes `defaultModelOptions` in its constructor config and stores it. Pass it to `super()`. Do not declare the field again in the subclass. `DefaultModelOptionsConfig` is the config type to extend. + +### Patch Changes + +- Updated dependencies [[`afed460`](https://github.com/TanStack/ai/commit/afed460573b0e9a2d3672bbe777ed5ec6c28b6fc), [`afed460`](https://github.com/TanStack/ai/commit/afed460573b0e9a2d3672bbe777ed5ec6c28b6fc), [`a88ee8d`](https://github.com/TanStack/ai/commit/a88ee8d963aa3693064282b2d7e19640472b484c), [`7ba3926`](https://github.com/TanStack/ai/commit/7ba3926652519bc0e1ea74e660ef7d0a0d6a37a6), [`1c55fd5`](https://github.com/TanStack/ai/commit/1c55fd51d2fcafb84f59295736bc42f6d2353868), [`2d89b06`](https://github.com/TanStack/ai/commit/2d89b062d92a3eef44406c015bf6d0ff2b47e6a4), [`a7501eb`](https://github.com/TanStack/ai/commit/a7501eb0a2223b079076bd106c257803742b0e6c), [`1c55fd5`](https://github.com/TanStack/ai/commit/1c55fd51d2fcafb84f59295736bc42f6d2353868)]: + - @tanstack/ai@1.12.0 + ## 1.1.1 ### Patch Changes diff --git a/packages/ai-elevenlabs/package.json b/packages/ai-elevenlabs/package.json index f21a56ee82..43fa4e72a2 100644 --- a/packages/ai-elevenlabs/package.json +++ b/packages/ai-elevenlabs/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/ai-elevenlabs", - "version": "1.1.1", + "version": "1.2.0", "description": "ElevenLabs adapter for TanStack AI realtime voice, text-to-speech, transcription, music, and sound effects.", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/ai-fal/CHANGELOG.md b/packages/ai-fal/CHANGELOG.md index 11de1ee30b..11b26fac45 100644 --- a/packages/ai-fal/CHANGELOG.md +++ b/packages/ai-fal/CHANGELOG.md @@ -1,5 +1,36 @@ # @tanstack/ai-fal +## 1.4.0 + +### Minor Changes + +- [#2254](https://github.com/TanStack/ai/pull/2254) [`afed460`](https://github.com/TanStack/ai/commit/afed460573b0e9a2d3672bbe777ed5ec6c28b6fc) - Every first-party adapter takes `defaultModelOptions`, of every kind: text, embedding, image, speech, transcription, audio, voice, video, live video, 3D model, 3D motion, world, rerank, summarize, and evaluate. Reactor, and the Gemini and OpenRouter evaluate adapters, have no model options to send, so they do not take it. Each activity (`chat()`, `embed()`, `generateImage()`, `generateSpeech()`, and the others) merges them under the `modelOptions` of each call, one level deep. A key that the call sets replaces the default key in full. A call key set to `undefined` keeps the default. The middleware, the devtools events or logs, and the adapter all get the merged value. + + ```ts + const adapter = openaiImage('gpt-image-2.6-flare', { + defaultModelOptions: { quality: 'high', output_format: 'webp' }, + }) + ``` + + `summarize()` with a text-backed summarize adapter applies the `defaultModelOptions` of the wrapped text adapter. A `temperature` in those defaults replaces the built-in summarize temperature. A per-call `maxLength` replaces a token limit that only comes from the defaults. + + The OpenAI, Cloudflare, Ollaya, and TypeSafe evaluate adapters now send `modelOptions` in the request. Before, they did not send them. + + `ollamaText()`, `ollamaEmbedding()`, `tripo3dModel()`, and the summarize factories of every text provider take `defaultModelOptions` too. + + `ai-fal`: an explicit `size` on `generateImage()` or `generateVideo()` now replaces `image_size`, `aspect_ratio`, or `resolution` in `modelOptions`. + + `ai-uthana`: the `defaults` config option is deprecated. Use `defaultModelOptions`. + + `ai-ollama`: for a model name that is not in the model list, `modelOptions` no longer accepts `model`. The adapter sets the model. + + Custom adapters: each `Base*Adapter` class in `@tanstack/ai/adapters` takes `defaultModelOptions` in its constructor config and stores it. Pass it to `super()`. Do not declare the field again in the subclass. `DefaultModelOptionsConfig` is the config type to extend. + +### Patch Changes + +- Updated dependencies [[`afed460`](https://github.com/TanStack/ai/commit/afed460573b0e9a2d3672bbe777ed5ec6c28b6fc), [`afed460`](https://github.com/TanStack/ai/commit/afed460573b0e9a2d3672bbe777ed5ec6c28b6fc), [`a88ee8d`](https://github.com/TanStack/ai/commit/a88ee8d963aa3693064282b2d7e19640472b484c), [`7ba3926`](https://github.com/TanStack/ai/commit/7ba3926652519bc0e1ea74e660ef7d0a0d6a37a6), [`1c55fd5`](https://github.com/TanStack/ai/commit/1c55fd51d2fcafb84f59295736bc42f6d2353868), [`2d89b06`](https://github.com/TanStack/ai/commit/2d89b062d92a3eef44406c015bf6d0ff2b47e6a4), [`a7501eb`](https://github.com/TanStack/ai/commit/a7501eb0a2223b079076bd106c257803742b0e6c), [`1c55fd5`](https://github.com/TanStack/ai/commit/1c55fd51d2fcafb84f59295736bc42f6d2353868)]: + - @tanstack/ai@1.12.0 + ## 1.3.0 ### Minor Changes diff --git a/packages/ai-fal/package.json b/packages/ai-fal/package.json index f983c4f96f..2ef866fbc1 100644 --- a/packages/ai-fal/package.json +++ b/packages/ai-fal/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/ai-fal", - "version": "1.3.0", + "version": "1.4.0", "description": "fal.ai adapter for TanStack AI image, video, live, audio, speech, and transcription generation.", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/ai-gemini/CHANGELOG.md b/packages/ai-gemini/CHANGELOG.md index 6255c90873..5a74c14136 100644 --- a/packages/ai-gemini/CHANGELOG.md +++ b/packages/ai-gemini/CHANGELOG.md @@ -1,5 +1,38 @@ # @tanstack/ai-gemini +## 1.4.0 + +### Minor Changes + +- [#2254](https://github.com/TanStack/ai/pull/2254) [`afed460`](https://github.com/TanStack/ai/commit/afed460573b0e9a2d3672bbe777ed5ec6c28b6fc) - Every first-party adapter takes `defaultModelOptions`, of every kind: text, embedding, image, speech, transcription, audio, voice, video, live video, 3D model, 3D motion, world, rerank, summarize, and evaluate. Reactor, and the Gemini and OpenRouter evaluate adapters, have no model options to send, so they do not take it. Each activity (`chat()`, `embed()`, `generateImage()`, `generateSpeech()`, and the others) merges them under the `modelOptions` of each call, one level deep. A key that the call sets replaces the default key in full. A call key set to `undefined` keeps the default. The middleware, the devtools events or logs, and the adapter all get the merged value. + + ```ts + const adapter = openaiImage('gpt-image-2.6-flare', { + defaultModelOptions: { quality: 'high', output_format: 'webp' }, + }) + ``` + + `summarize()` with a text-backed summarize adapter applies the `defaultModelOptions` of the wrapped text adapter. A `temperature` in those defaults replaces the built-in summarize temperature. A per-call `maxLength` replaces a token limit that only comes from the defaults. + + The OpenAI, Cloudflare, Ollaya, and TypeSafe evaluate adapters now send `modelOptions` in the request. Before, they did not send them. + + `ollamaText()`, `ollamaEmbedding()`, `tripo3dModel()`, and the summarize factories of every text provider take `defaultModelOptions` too. + + `ai-fal`: an explicit `size` on `generateImage()` or `generateVideo()` now replaces `image_size`, `aspect_ratio`, or `resolution` in `modelOptions`. + + `ai-uthana`: the `defaults` config option is deprecated. Use `defaultModelOptions`. + + `ai-ollama`: for a model name that is not in the model list, `modelOptions` no longer accepts `model`. The adapter sets the model. + + Custom adapters: each `Base*Adapter` class in `@tanstack/ai/adapters` takes `defaultModelOptions` in its constructor config and stores it. Pass it to `super()`. Do not declare the field again in the subclass. `DefaultModelOptionsConfig` is the config type to extend. + +### Patch Changes + +- [#2310](https://github.com/TanStack/ai/pull/2310) [`4bc0c2b`](https://github.com/TanStack/ai/commit/4bc0c2b375c485c6b5a43dd5d562643f96fbcc93) - Video understanding with `processing: "agentic"` now ends with `RUN_ERROR` when Gemini ends the interaction with a status such as `failed` or `cancelled`. The error code is the status. Before, the run ended with `RUN_FINISHED` and an empty reply. An `incomplete` (cut-off) answer now ends with `finishReason: 'length'`, not `stop`. + +- Updated dependencies [[`afed460`](https://github.com/TanStack/ai/commit/afed460573b0e9a2d3672bbe777ed5ec6c28b6fc), [`afed460`](https://github.com/TanStack/ai/commit/afed460573b0e9a2d3672bbe777ed5ec6c28b6fc), [`a88ee8d`](https://github.com/TanStack/ai/commit/a88ee8d963aa3693064282b2d7e19640472b484c), [`7ba3926`](https://github.com/TanStack/ai/commit/7ba3926652519bc0e1ea74e660ef7d0a0d6a37a6), [`1c55fd5`](https://github.com/TanStack/ai/commit/1c55fd51d2fcafb84f59295736bc42f6d2353868), [`2d89b06`](https://github.com/TanStack/ai/commit/2d89b062d92a3eef44406c015bf6d0ff2b47e6a4), [`a7501eb`](https://github.com/TanStack/ai/commit/a7501eb0a2223b079076bd106c257803742b0e6c), [`1c55fd5`](https://github.com/TanStack/ai/commit/1c55fd51d2fcafb84f59295736bc42f6d2353868)]: + - @tanstack/ai@1.12.0 + ## 1.3.1 ### Patch Changes diff --git a/packages/ai-gemini/package.json b/packages/ai-gemini/package.json index 9b12d1abd8..d142020b44 100644 --- a/packages/ai-gemini/package.json +++ b/packages/ai-gemini/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/ai-gemini", - "version": "1.3.1", + "version": "1.4.0", "description": "Google Gemini adapter for TanStack AI chat, images, speech, audio generation, and structured outputs.", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/ai-grok-build/CHANGELOG.md b/packages/ai-grok-build/CHANGELOG.md index fe2b98c3d1..3e8a1a5bfe 100644 --- a/packages/ai-grok-build/CHANGELOG.md +++ b/packages/ai-grok-build/CHANGELOG.md @@ -1,5 +1,38 @@ # @tanstack/ai-grok-build +## 1.3.0 + +### Minor Changes + +- [#2254](https://github.com/TanStack/ai/pull/2254) [`afed460`](https://github.com/TanStack/ai/commit/afed460573b0e9a2d3672bbe777ed5ec6c28b6fc) - Every first-party adapter takes `defaultModelOptions`, of every kind: text, embedding, image, speech, transcription, audio, voice, video, live video, 3D model, 3D motion, world, rerank, summarize, and evaluate. Reactor, and the Gemini and OpenRouter evaluate adapters, have no model options to send, so they do not take it. Each activity (`chat()`, `embed()`, `generateImage()`, `generateSpeech()`, and the others) merges them under the `modelOptions` of each call, one level deep. A key that the call sets replaces the default key in full. A call key set to `undefined` keeps the default. The middleware, the devtools events or logs, and the adapter all get the merged value. + + ```ts + const adapter = openaiImage('gpt-image-2.6-flare', { + defaultModelOptions: { quality: 'high', output_format: 'webp' }, + }) + ``` + + `summarize()` with a text-backed summarize adapter applies the `defaultModelOptions` of the wrapped text adapter. A `temperature` in those defaults replaces the built-in summarize temperature. A per-call `maxLength` replaces a token limit that only comes from the defaults. + + The OpenAI, Cloudflare, Ollaya, and TypeSafe evaluate adapters now send `modelOptions` in the request. Before, they did not send them. + + `ollamaText()`, `ollamaEmbedding()`, `tripo3dModel()`, and the summarize factories of every text provider take `defaultModelOptions` too. + + `ai-fal`: an explicit `size` on `generateImage()` or `generateVideo()` now replaces `image_size`, `aspect_ratio`, or `resolution` in `modelOptions`. + + `ai-uthana`: the `defaults` config option is deprecated. Use `defaultModelOptions`. + + `ai-ollama`: for a model name that is not in the model list, `modelOptions` no longer accepts `model`. The adapter sets the model. + + Custom adapters: each `Base*Adapter` class in `@tanstack/ai/adapters` takes `defaultModelOptions` in its constructor config and stores it. Pass it to `super()`. Do not declare the field again in the subclass. `DefaultModelOptionsConfig` is the config type to extend. + +### Patch Changes + +- Updated dependencies [[`afed460`](https://github.com/TanStack/ai/commit/afed460573b0e9a2d3672bbe777ed5ec6c28b6fc), [`afed460`](https://github.com/TanStack/ai/commit/afed460573b0e9a2d3672bbe777ed5ec6c28b6fc), [`a88ee8d`](https://github.com/TanStack/ai/commit/a88ee8d963aa3693064282b2d7e19640472b484c), [`7ba3926`](https://github.com/TanStack/ai/commit/7ba3926652519bc0e1ea74e660ef7d0a0d6a37a6), [`1c55fd5`](https://github.com/TanStack/ai/commit/1c55fd51d2fcafb84f59295736bc42f6d2353868), [`2d89b06`](https://github.com/TanStack/ai/commit/2d89b062d92a3eef44406c015bf6d0ff2b47e6a4), [`a7501eb`](https://github.com/TanStack/ai/commit/a7501eb0a2223b079076bd106c257803742b0e6c), [`1c55fd5`](https://github.com/TanStack/ai/commit/1c55fd51d2fcafb84f59295736bc42f6d2353868)]: + - @tanstack/ai@1.12.0 + - @tanstack/ai-acp@1.2.0 + - @tanstack/ai-sandbox@1.7.1 + ## 1.2.0 ### Minor Changes diff --git a/packages/ai-grok-build/package.json b/packages/ai-grok-build/package.json index 9b0467ec35..a2897b4e35 100644 --- a/packages/ai-grok-build/package.json +++ b/packages/ai-grok-build/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/ai-grok-build", - "version": "1.2.0", + "version": "1.3.0", "description": "Grok Build harness adapter for TanStack AI — run Grok Build as a chat backend with local tool execution and stateful sessions.", "author": "", "license": "MIT", diff --git a/packages/ai-grok/CHANGELOG.md b/packages/ai-grok/CHANGELOG.md index 9478e9af11..02dba154f8 100644 --- a/packages/ai-grok/CHANGELOG.md +++ b/packages/ai-grok/CHANGELOG.md @@ -1,5 +1,37 @@ # @tanstack/ai-grok +## 1.2.0 + +### Minor Changes + +- [#2254](https://github.com/TanStack/ai/pull/2254) [`afed460`](https://github.com/TanStack/ai/commit/afed460573b0e9a2d3672bbe777ed5ec6c28b6fc) - Every first-party adapter takes `defaultModelOptions`, of every kind: text, embedding, image, speech, transcription, audio, voice, video, live video, 3D model, 3D motion, world, rerank, summarize, and evaluate. Reactor, and the Gemini and OpenRouter evaluate adapters, have no model options to send, so they do not take it. Each activity (`chat()`, `embed()`, `generateImage()`, `generateSpeech()`, and the others) merges them under the `modelOptions` of each call, one level deep. A key that the call sets replaces the default key in full. A call key set to `undefined` keeps the default. The middleware, the devtools events or logs, and the adapter all get the merged value. + + ```ts + const adapter = openaiImage('gpt-image-2.6-flare', { + defaultModelOptions: { quality: 'high', output_format: 'webp' }, + }) + ``` + + `summarize()` with a text-backed summarize adapter applies the `defaultModelOptions` of the wrapped text adapter. A `temperature` in those defaults replaces the built-in summarize temperature. A per-call `maxLength` replaces a token limit that only comes from the defaults. + + The OpenAI, Cloudflare, Ollaya, and TypeSafe evaluate adapters now send `modelOptions` in the request. Before, they did not send them. + + `ollamaText()`, `ollamaEmbedding()`, `tripo3dModel()`, and the summarize factories of every text provider take `defaultModelOptions` too. + + `ai-fal`: an explicit `size` on `generateImage()` or `generateVideo()` now replaces `image_size`, `aspect_ratio`, or `resolution` in `modelOptions`. + + `ai-uthana`: the `defaults` config option is deprecated. Use `defaultModelOptions`. + + `ai-ollama`: for a model name that is not in the model list, `modelOptions` no longer accepts `model`. The adapter sets the model. + + Custom adapters: each `Base*Adapter` class in `@tanstack/ai/adapters` takes `defaultModelOptions` in its constructor config and stores it. Pass it to `super()`. Do not declare the field again in the subclass. `DefaultModelOptionsConfig` is the config type to extend. + +### Patch Changes + +- Updated dependencies [[`afed460`](https://github.com/TanStack/ai/commit/afed460573b0e9a2d3672bbe777ed5ec6c28b6fc), [`afed460`](https://github.com/TanStack/ai/commit/afed460573b0e9a2d3672bbe777ed5ec6c28b6fc), [`a88ee8d`](https://github.com/TanStack/ai/commit/a88ee8d963aa3693064282b2d7e19640472b484c), [`7ba3926`](https://github.com/TanStack/ai/commit/7ba3926652519bc0e1ea74e660ef7d0a0d6a37a6), [`1c55fd5`](https://github.com/TanStack/ai/commit/1c55fd51d2fcafb84f59295736bc42f6d2353868), [`2d89b06`](https://github.com/TanStack/ai/commit/2d89b062d92a3eef44406c015bf6d0ff2b47e6a4), [`a7501eb`](https://github.com/TanStack/ai/commit/a7501eb0a2223b079076bd106c257803742b0e6c), [`1c55fd5`](https://github.com/TanStack/ai/commit/1c55fd51d2fcafb84f59295736bc42f6d2353868)]: + - @tanstack/ai@1.12.0 + - @tanstack/openai-base@1.2.0 + ## 1.1.2 ### Patch Changes diff --git a/packages/ai-grok/package.json b/packages/ai-grok/package.json index 76f7bc77ed..1e6b6c4058 100644 --- a/packages/ai-grok/package.json +++ b/packages/ai-grok/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/ai-grok", - "version": "1.1.2", + "version": "1.2.0", "description": "xAI Grok adapter for TanStack AI chat, image generation, realtime, and structured outputs.", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/ai-groq/CHANGELOG.md b/packages/ai-groq/CHANGELOG.md index c36dc063e4..bbc1194b74 100644 --- a/packages/ai-groq/CHANGELOG.md +++ b/packages/ai-groq/CHANGELOG.md @@ -1,5 +1,37 @@ # @tanstack/ai-groq +## 1.1.0 + +### Minor Changes + +- [#2254](https://github.com/TanStack/ai/pull/2254) [`afed460`](https://github.com/TanStack/ai/commit/afed460573b0e9a2d3672bbe777ed5ec6c28b6fc) - Every first-party adapter takes `defaultModelOptions`, of every kind: text, embedding, image, speech, transcription, audio, voice, video, live video, 3D model, 3D motion, world, rerank, summarize, and evaluate. Reactor, and the Gemini and OpenRouter evaluate adapters, have no model options to send, so they do not take it. Each activity (`chat()`, `embed()`, `generateImage()`, `generateSpeech()`, and the others) merges them under the `modelOptions` of each call, one level deep. A key that the call sets replaces the default key in full. A call key set to `undefined` keeps the default. The middleware, the devtools events or logs, and the adapter all get the merged value. + + ```ts + const adapter = openaiImage('gpt-image-2.6-flare', { + defaultModelOptions: { quality: 'high', output_format: 'webp' }, + }) + ``` + + `summarize()` with a text-backed summarize adapter applies the `defaultModelOptions` of the wrapped text adapter. A `temperature` in those defaults replaces the built-in summarize temperature. A per-call `maxLength` replaces a token limit that only comes from the defaults. + + The OpenAI, Cloudflare, Ollaya, and TypeSafe evaluate adapters now send `modelOptions` in the request. Before, they did not send them. + + `ollamaText()`, `ollamaEmbedding()`, `tripo3dModel()`, and the summarize factories of every text provider take `defaultModelOptions` too. + + `ai-fal`: an explicit `size` on `generateImage()` or `generateVideo()` now replaces `image_size`, `aspect_ratio`, or `resolution` in `modelOptions`. + + `ai-uthana`: the `defaults` config option is deprecated. Use `defaultModelOptions`. + + `ai-ollama`: for a model name that is not in the model list, `modelOptions` no longer accepts `model`. The adapter sets the model. + + Custom adapters: each `Base*Adapter` class in `@tanstack/ai/adapters` takes `defaultModelOptions` in its constructor config and stores it. Pass it to `super()`. Do not declare the field again in the subclass. `DefaultModelOptionsConfig` is the config type to extend. + +### Patch Changes + +- Updated dependencies [[`afed460`](https://github.com/TanStack/ai/commit/afed460573b0e9a2d3672bbe777ed5ec6c28b6fc), [`afed460`](https://github.com/TanStack/ai/commit/afed460573b0e9a2d3672bbe777ed5ec6c28b6fc), [`a88ee8d`](https://github.com/TanStack/ai/commit/a88ee8d963aa3693064282b2d7e19640472b484c), [`7ba3926`](https://github.com/TanStack/ai/commit/7ba3926652519bc0e1ea74e660ef7d0a0d6a37a6), [`1c55fd5`](https://github.com/TanStack/ai/commit/1c55fd51d2fcafb84f59295736bc42f6d2353868), [`2d89b06`](https://github.com/TanStack/ai/commit/2d89b062d92a3eef44406c015bf6d0ff2b47e6a4), [`a7501eb`](https://github.com/TanStack/ai/commit/a7501eb0a2223b079076bd106c257803742b0e6c), [`1c55fd5`](https://github.com/TanStack/ai/commit/1c55fd51d2fcafb84f59295736bc42f6d2353868)]: + - @tanstack/ai@1.12.0 + - @tanstack/openai-base@1.2.0 + ## 1.0.2 ### Patch Changes diff --git a/packages/ai-groq/package.json b/packages/ai-groq/package.json index 2263c7634c..58b72735db 100644 --- a/packages/ai-groq/package.json +++ b/packages/ai-groq/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/ai-groq", - "version": "1.0.2", + "version": "1.1.0", "description": "Groq adapter for TanStack AI low-latency chat, tool calling, and structured outputs.", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/ai-harness-cli/CHANGELOG.md b/packages/ai-harness-cli/CHANGELOG.md index 2a94e6c540..386e37e590 100644 --- a/packages/ai-harness-cli/CHANGELOG.md +++ b/packages/ai-harness-cli/CHANGELOG.md @@ -1,5 +1,15 @@ # @tanstack/ai-harness-cli +## 0.1.6 + +### Patch Changes + +- Updated dependencies [[`afed460`](https://github.com/TanStack/ai/commit/afed460573b0e9a2d3672bbe777ed5ec6c28b6fc), [`eae0c44`](https://github.com/TanStack/ai/commit/eae0c44012367b4548ec2f88845eb45be457b985), [`afed460`](https://github.com/TanStack/ai/commit/afed460573b0e9a2d3672bbe777ed5ec6c28b6fc), [`014da3a`](https://github.com/TanStack/ai/commit/014da3a4ca8bfbfaadad8423e2749a9ce5564187), [`a88ee8d`](https://github.com/TanStack/ai/commit/a88ee8d963aa3693064282b2d7e19640472b484c), [`7ba3926`](https://github.com/TanStack/ai/commit/7ba3926652519bc0e1ea74e660ef7d0a0d6a37a6), [`1c55fd5`](https://github.com/TanStack/ai/commit/1c55fd51d2fcafb84f59295736bc42f6d2353868), [`2d89b06`](https://github.com/TanStack/ai/commit/2d89b062d92a3eef44406c015bf6d0ff2b47e6a4), [`a7501eb`](https://github.com/TanStack/ai/commit/a7501eb0a2223b079076bd106c257803742b0e6c), [`1c55fd5`](https://github.com/TanStack/ai/commit/1c55fd51d2fcafb84f59295736bc42f6d2353868)]: + - @tanstack/ai@1.12.0 + - @tanstack/ai-mcp@1.3.4 + - @tanstack/ai-acp@1.2.0 + - @tanstack/ai-harness@0.7.0 + ## 0.1.5 ### Patch Changes diff --git a/packages/ai-harness-cli/package.json b/packages/ai-harness-cli/package.json index c168fa42b8..6e7decd5e4 100644 --- a/packages/ai-harness-cli/package.json +++ b/packages/ai-harness-cli/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/ai-harness-cli", - "version": "0.1.5", + "version": "0.1.6", "description": "Run a TanStack AI harness from the terminal: line mode or your own screen, print mode, NDJSON, ACP, MCP, and an HTTP server", "author": "", "license": "MIT", diff --git a/packages/ai-harness/CHANGELOG.md b/packages/ai-harness/CHANGELOG.md index 9fee0f9c60..538f6b9a3f 100644 --- a/packages/ai-harness/CHANGELOG.md +++ b/packages/ai-harness/CHANGELOG.md @@ -1,5 +1,17 @@ # @tanstack/ai-harness +## 0.7.0 + +### Minor Changes + +- [#2259](https://github.com/TanStack/ai/pull/2259) [`014da3a`](https://github.com/TanStack/ai/commit/014da3a4ca8bfbfaadad8423e2749a9ce5564187) - The session view now shows tool result metadata. A `tool-call` part from `createSessionView` has `resultMetadata` when the server tool called `setResultMetadata`, live and after a reload. The value has only the app keys, as `part.resultMetadata` in `useChat`. + +### Patch Changes + +- Updated dependencies [[`afed460`](https://github.com/TanStack/ai/commit/afed460573b0e9a2d3672bbe777ed5ec6c28b6fc), [`afed460`](https://github.com/TanStack/ai/commit/afed460573b0e9a2d3672bbe777ed5ec6c28b6fc), [`a88ee8d`](https://github.com/TanStack/ai/commit/a88ee8d963aa3693064282b2d7e19640472b484c), [`7ba3926`](https://github.com/TanStack/ai/commit/7ba3926652519bc0e1ea74e660ef7d0a0d6a37a6), [`1c55fd5`](https://github.com/TanStack/ai/commit/1c55fd51d2fcafb84f59295736bc42f6d2353868), [`2d89b06`](https://github.com/TanStack/ai/commit/2d89b062d92a3eef44406c015bf6d0ff2b47e6a4), [`a7501eb`](https://github.com/TanStack/ai/commit/a7501eb0a2223b079076bd106c257803742b0e6c), [`1c55fd5`](https://github.com/TanStack/ai/commit/1c55fd51d2fcafb84f59295736bc42f6d2353868)]: + - @tanstack/ai@1.12.0 + - @tanstack/ai-persistence@1.2.0 + ## 0.6.2 ### Patch Changes diff --git a/packages/ai-harness/package.json b/packages/ai-harness/package.json index 67007a3b35..43e25a2ac2 100644 --- a/packages/ai-harness/package.json +++ b/packages/ai-harness/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/ai-harness", - "version": "0.6.2", + "version": "0.7.0", "description": "Build agent harnesses on TanStack AI: long-lived sessions, typed agents, and plugins", "keywords": [ "agent", diff --git a/packages/ai-isolate-cloudflare/CHANGELOG.md b/packages/ai-isolate-cloudflare/CHANGELOG.md index a2c859f55e..89cc4dab54 100644 --- a/packages/ai-isolate-cloudflare/CHANGELOG.md +++ b/packages/ai-isolate-cloudflare/CHANGELOG.md @@ -1,5 +1,16 @@ # @tanstack/ai-isolate-cloudflare +## 1.1.1 + +### Patch Changes + +- [#2157](https://github.com/TanStack/ai/pull/2157) [`9c1584d`](https://github.com/TanStack/ai/commit/9c1584db1eac57ec4d7c67e0af57cfd29a6b1a6c) - Add `@tanstack/ai-isolate`, the engine-agnostic isolate base. It owns the contract every sandbox driver implements (`IsolateDriver`, `IsolateConfig`, `IsolateContext`, `ExecutionResult`, `NormalizedError`, `ToolBinding`) plus the shared `wrapCode` helper. These previously lived inside `@tanstack/ai-code-mode`, which forced every driver to depend on Code Mode just for the contract. + + Drivers (`quickjs`, `quickjs-bun`, `node`, `cloudflare`, `e2b`, `daytona`) now depend on `@tanstack/ai-isolate` instead of `@tanstack/ai-code-mode`. It is a regular dependency of each driver, so you install nothing extra. `@tanstack/ai-code-mode` re-exports the same types and `wrapCode`, so its public API is unchanged. + +- Updated dependencies [[`9c1584d`](https://github.com/TanStack/ai/commit/9c1584db1eac57ec4d7c67e0af57cfd29a6b1a6c)]: + - @tanstack/ai-isolate@1.2.0 + ## 1.1.0 ### Minor Changes diff --git a/packages/ai-isolate-cloudflare/package.json b/packages/ai-isolate-cloudflare/package.json index 36ddaeacf4..2ae7f8b55f 100644 --- a/packages/ai-isolate-cloudflare/package.json +++ b/packages/ai-isolate-cloudflare/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/ai-isolate-cloudflare", - "version": "1.1.0", + "version": "1.1.1", "description": "Cloudflare Workers sandbox driver for TanStack AI Code Mode TypeScript execution at the edge.", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/ai-isolate-daytona/CHANGELOG.md b/packages/ai-isolate-daytona/CHANGELOG.md index fc93c83894..c1d09c66fd 100644 --- a/packages/ai-isolate-daytona/CHANGELOG.md +++ b/packages/ai-isolate-daytona/CHANGELOG.md @@ -1,5 +1,16 @@ # @tanstack/ai-isolate-daytona +## 1.1.2 + +### Patch Changes + +- [#2157](https://github.com/TanStack/ai/pull/2157) [`9c1584d`](https://github.com/TanStack/ai/commit/9c1584db1eac57ec4d7c67e0af57cfd29a6b1a6c) - Add `@tanstack/ai-isolate`, the engine-agnostic isolate base. It owns the contract every sandbox driver implements (`IsolateDriver`, `IsolateConfig`, `IsolateContext`, `ExecutionResult`, `NormalizedError`, `ToolBinding`) plus the shared `wrapCode` helper. These previously lived inside `@tanstack/ai-code-mode`, which forced every driver to depend on Code Mode just for the contract. + + Drivers (`quickjs`, `quickjs-bun`, `node`, `cloudflare`, `e2b`, `daytona`) now depend on `@tanstack/ai-isolate` instead of `@tanstack/ai-code-mode`. It is a regular dependency of each driver, so you install nothing extra. `@tanstack/ai-code-mode` re-exports the same types and `wrapCode`, so its public API is unchanged. + +- Updated dependencies [[`9c1584d`](https://github.com/TanStack/ai/commit/9c1584db1eac57ec4d7c67e0af57cfd29a6b1a6c)]: + - @tanstack/ai-isolate@1.2.0 + ## 1.1.1 ### Patch Changes diff --git a/packages/ai-isolate-daytona/package.json b/packages/ai-isolate-daytona/package.json index 9543bb9d88..ece227166e 100644 --- a/packages/ai-isolate-daytona/package.json +++ b/packages/ai-isolate-daytona/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/ai-isolate-daytona", - "version": "1.1.1", + "version": "1.1.2", "description": "Daytona sandbox driver for TanStack AI Code Mode TypeScript execution.", "author": "", "license": "MIT", diff --git a/packages/ai-isolate-e2b/CHANGELOG.md b/packages/ai-isolate-e2b/CHANGELOG.md index b65b34b6af..0e6c5227cd 100644 --- a/packages/ai-isolate-e2b/CHANGELOG.md +++ b/packages/ai-isolate-e2b/CHANGELOG.md @@ -1,5 +1,16 @@ # @tanstack/ai-isolate-e2b +## 1.1.1 + +### Patch Changes + +- [#2157](https://github.com/TanStack/ai/pull/2157) [`9c1584d`](https://github.com/TanStack/ai/commit/9c1584db1eac57ec4d7c67e0af57cfd29a6b1a6c) - Add `@tanstack/ai-isolate`, the engine-agnostic isolate base. It owns the contract every sandbox driver implements (`IsolateDriver`, `IsolateConfig`, `IsolateContext`, `ExecutionResult`, `NormalizedError`, `ToolBinding`) plus the shared `wrapCode` helper. These previously lived inside `@tanstack/ai-code-mode`, which forced every driver to depend on Code Mode just for the contract. + + Drivers (`quickjs`, `quickjs-bun`, `node`, `cloudflare`, `e2b`, `daytona`) now depend on `@tanstack/ai-isolate` instead of `@tanstack/ai-code-mode`. It is a regular dependency of each driver, so you install nothing extra. `@tanstack/ai-code-mode` re-exports the same types and `wrapCode`, so its public API is unchanged. + +- Updated dependencies [[`9c1584d`](https://github.com/TanStack/ai/commit/9c1584db1eac57ec4d7c67e0af57cfd29a6b1a6c)]: + - @tanstack/ai-isolate@1.2.0 + ## 1.1.0 ### Minor Changes diff --git a/packages/ai-isolate-e2b/package.json b/packages/ai-isolate-e2b/package.json index d9c876a0c3..274ac81401 100644 --- a/packages/ai-isolate-e2b/package.json +++ b/packages/ai-isolate-e2b/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/ai-isolate-e2b", - "version": "1.1.0", + "version": "1.1.1", "description": "E2B sandbox driver for TanStack AI Code Mode TypeScript execution.", "author": "", "license": "MIT", diff --git a/packages/ai-isolate-node/CHANGELOG.md b/packages/ai-isolate-node/CHANGELOG.md index cb165c5057..171565be1b 100644 --- a/packages/ai-isolate-node/CHANGELOG.md +++ b/packages/ai-isolate-node/CHANGELOG.md @@ -1,5 +1,16 @@ # @tanstack/ai-isolate-node +## 1.1.1 + +### Patch Changes + +- [#2157](https://github.com/TanStack/ai/pull/2157) [`9c1584d`](https://github.com/TanStack/ai/commit/9c1584db1eac57ec4d7c67e0af57cfd29a6b1a6c) - Add `@tanstack/ai-isolate`, the engine-agnostic isolate base. It owns the contract every sandbox driver implements (`IsolateDriver`, `IsolateConfig`, `IsolateContext`, `ExecutionResult`, `NormalizedError`, `ToolBinding`) plus the shared `wrapCode` helper. These previously lived inside `@tanstack/ai-code-mode`, which forced every driver to depend on Code Mode just for the contract. + + Drivers (`quickjs`, `quickjs-bun`, `node`, `cloudflare`, `e2b`, `daytona`) now depend on `@tanstack/ai-isolate` instead of `@tanstack/ai-code-mode`. It is a regular dependency of each driver, so you install nothing extra. `@tanstack/ai-code-mode` re-exports the same types and `wrapCode`, so its public API is unchanged. + +- Updated dependencies [[`9c1584d`](https://github.com/TanStack/ai/commit/9c1584db1eac57ec4d7c67e0af57cfd29a6b1a6c)]: + - @tanstack/ai-isolate@1.2.0 + ## 1.1.0 ### Minor Changes diff --git a/packages/ai-isolate-node/package.json b/packages/ai-isolate-node/package.json index 8882f9179e..125c12192c 100644 --- a/packages/ai-isolate-node/package.json +++ b/packages/ai-isolate-node/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/ai-isolate-node", - "version": "1.1.0", + "version": "1.1.1", "description": "Node.js isolated-vm sandbox driver for TanStack AI Code Mode TypeScript execution.", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/ai-isolate-quickjs-bun/CHANGELOG.md b/packages/ai-isolate-quickjs-bun/CHANGELOG.md index 91856d0088..4a1e4efc92 100644 --- a/packages/ai-isolate-quickjs-bun/CHANGELOG.md +++ b/packages/ai-isolate-quickjs-bun/CHANGELOG.md @@ -1,5 +1,18 @@ # @tanstack/ai-isolate-quickjs-bun +## 1.1.1 + +### Patch Changes + +- [#2157](https://github.com/TanStack/ai/pull/2157) [`9c1584d`](https://github.com/TanStack/ai/commit/9c1584db1eac57ec4d7c67e0af57cfd29a6b1a6c) - Update `quickjs-bun` to 0.2.0. Version 0.1.2 cannot compile its native code on Ubuntu 26.04, so the driver failed to create a context there. The driver now needs Bun 1.4.0 or later. + +- [#2157](https://github.com/TanStack/ai/pull/2157) [`9c1584d`](https://github.com/TanStack/ai/commit/9c1584db1eac57ec4d7c67e0af57cfd29a6b1a6c) - Add `@tanstack/ai-isolate`, the engine-agnostic isolate base. It owns the contract every sandbox driver implements (`IsolateDriver`, `IsolateConfig`, `IsolateContext`, `ExecutionResult`, `NormalizedError`, `ToolBinding`) plus the shared `wrapCode` helper. These previously lived inside `@tanstack/ai-code-mode`, which forced every driver to depend on Code Mode just for the contract. + + Drivers (`quickjs`, `quickjs-bun`, `node`, `cloudflare`, `e2b`, `daytona`) now depend on `@tanstack/ai-isolate` instead of `@tanstack/ai-code-mode`. It is a regular dependency of each driver, so you install nothing extra. `@tanstack/ai-code-mode` re-exports the same types and `wrapCode`, so its public API is unchanged. + +- Updated dependencies [[`9c1584d`](https://github.com/TanStack/ai/commit/9c1584db1eac57ec4d7c67e0af57cfd29a6b1a6c)]: + - @tanstack/ai-isolate@1.2.0 + ## 1.1.0 ### Minor Changes diff --git a/packages/ai-isolate-quickjs-bun/package.json b/packages/ai-isolate-quickjs-bun/package.json index 1c45c3ef7b..97a619f6b9 100644 --- a/packages/ai-isolate-quickjs-bun/package.json +++ b/packages/ai-isolate-quickjs-bun/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/ai-isolate-quickjs-bun", - "version": "1.1.0", + "version": "1.1.1", "description": "Native QuickJS sandbox driver for TanStack AI Code Mode TypeScript execution on Bun via bun:ffi.", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/ai-isolate-quickjs/CHANGELOG.md b/packages/ai-isolate-quickjs/CHANGELOG.md index 954465fdde..cbceeaa028 100644 --- a/packages/ai-isolate-quickjs/CHANGELOG.md +++ b/packages/ai-isolate-quickjs/CHANGELOG.md @@ -1,5 +1,16 @@ # @tanstack/ai-isolate-quickjs +## 1.1.1 + +### Patch Changes + +- [#2157](https://github.com/TanStack/ai/pull/2157) [`9c1584d`](https://github.com/TanStack/ai/commit/9c1584db1eac57ec4d7c67e0af57cfd29a6b1a6c) - Add `@tanstack/ai-isolate`, the engine-agnostic isolate base. It owns the contract every sandbox driver implements (`IsolateDriver`, `IsolateConfig`, `IsolateContext`, `ExecutionResult`, `NormalizedError`, `ToolBinding`) plus the shared `wrapCode` helper. These previously lived inside `@tanstack/ai-code-mode`, which forced every driver to depend on Code Mode just for the contract. + + Drivers (`quickjs`, `quickjs-bun`, `node`, `cloudflare`, `e2b`, `daytona`) now depend on `@tanstack/ai-isolate` instead of `@tanstack/ai-code-mode`. It is a regular dependency of each driver, so you install nothing extra. `@tanstack/ai-code-mode` re-exports the same types and `wrapCode`, so its public API is unchanged. + +- Updated dependencies [[`9c1584d`](https://github.com/TanStack/ai/commit/9c1584db1eac57ec4d7c67e0af57cfd29a6b1a6c)]: + - @tanstack/ai-isolate@1.2.0 + ## 1.1.0 ### Minor Changes diff --git a/packages/ai-isolate-quickjs/package.json b/packages/ai-isolate-quickjs/package.json index bc680b3b59..d1776b3bd5 100644 --- a/packages/ai-isolate-quickjs/package.json +++ b/packages/ai-isolate-quickjs/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/ai-isolate-quickjs", - "version": "1.1.0", + "version": "1.1.1", "description": "QuickJS WASM sandbox driver for TanStack AI Code Mode TypeScript execution across runtimes.", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/ai-isolate/CHANGELOG.md b/packages/ai-isolate/CHANGELOG.md new file mode 100644 index 0000000000..2eff083a0e --- /dev/null +++ b/packages/ai-isolate/CHANGELOG.md @@ -0,0 +1,14 @@ +# @tanstack/ai-isolate + +## 1.2.0 + +### Minor Changes + +- [#2157](https://github.com/TanStack/ai/pull/2157) [`9c1584d`](https://github.com/TanStack/ai/commit/9c1584db1eac57ec4d7c67e0af57cfd29a6b1a6c) - Add `@tanstack/ai-isolate`, the engine-agnostic isolate base. It owns the contract every sandbox driver implements (`IsolateDriver`, `IsolateConfig`, `IsolateContext`, `ExecutionResult`, `NormalizedError`, `ToolBinding`) plus the shared `wrapCode` helper. These previously lived inside `@tanstack/ai-code-mode`, which forced every driver to depend on Code Mode just for the contract. + + Drivers (`quickjs`, `quickjs-bun`, `node`, `cloudflare`, `e2b`, `daytona`) now depend on `@tanstack/ai-isolate` instead of `@tanstack/ai-code-mode`. It is a regular dependency of each driver, so you install nothing extra. `@tanstack/ai-code-mode` re-exports the same types and `wrapCode`, so its public API is unchanged. + +### Patch Changes + +- Updated dependencies [[`afed460`](https://github.com/TanStack/ai/commit/afed460573b0e9a2d3672bbe777ed5ec6c28b6fc), [`afed460`](https://github.com/TanStack/ai/commit/afed460573b0e9a2d3672bbe777ed5ec6c28b6fc), [`a88ee8d`](https://github.com/TanStack/ai/commit/a88ee8d963aa3693064282b2d7e19640472b484c), [`7ba3926`](https://github.com/TanStack/ai/commit/7ba3926652519bc0e1ea74e660ef7d0a0d6a37a6), [`1c55fd5`](https://github.com/TanStack/ai/commit/1c55fd51d2fcafb84f59295736bc42f6d2353868), [`2d89b06`](https://github.com/TanStack/ai/commit/2d89b062d92a3eef44406c015bf6d0ff2b47e6a4), [`a7501eb`](https://github.com/TanStack/ai/commit/a7501eb0a2223b079076bd106c257803742b0e6c), [`1c55fd5`](https://github.com/TanStack/ai/commit/1c55fd51d2fcafb84f59295736bc42f6d2353868)]: + - @tanstack/ai@1.12.0 diff --git a/packages/ai-isolate/package.json b/packages/ai-isolate/package.json index 2cc2be78a5..98264359d1 100644 --- a/packages/ai-isolate/package.json +++ b/packages/ai-isolate/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/ai-isolate", - "version": "1.1.0", + "version": "1.2.0", "description": "Engine-agnostic isolate contract for TanStack AI — the shared IsolateDriver interface that every sandbox driver implements.", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/ai-llmgateway/CHANGELOG.md b/packages/ai-llmgateway/CHANGELOG.md index 32777c3faf..cacc36bff6 100644 --- a/packages/ai-llmgateway/CHANGELOG.md +++ b/packages/ai-llmgateway/CHANGELOG.md @@ -1,5 +1,37 @@ # @tanstack/ai-llmgateway +## 1.1.0 + +### Minor Changes + +- [#2254](https://github.com/TanStack/ai/pull/2254) [`afed460`](https://github.com/TanStack/ai/commit/afed460573b0e9a2d3672bbe777ed5ec6c28b6fc) - Every first-party adapter takes `defaultModelOptions`, of every kind: text, embedding, image, speech, transcription, audio, voice, video, live video, 3D model, 3D motion, world, rerank, summarize, and evaluate. Reactor, and the Gemini and OpenRouter evaluate adapters, have no model options to send, so they do not take it. Each activity (`chat()`, `embed()`, `generateImage()`, `generateSpeech()`, and the others) merges them under the `modelOptions` of each call, one level deep. A key that the call sets replaces the default key in full. A call key set to `undefined` keeps the default. The middleware, the devtools events or logs, and the adapter all get the merged value. + + ```ts + const adapter = openaiImage('gpt-image-2.6-flare', { + defaultModelOptions: { quality: 'high', output_format: 'webp' }, + }) + ``` + + `summarize()` with a text-backed summarize adapter applies the `defaultModelOptions` of the wrapped text adapter. A `temperature` in those defaults replaces the built-in summarize temperature. A per-call `maxLength` replaces a token limit that only comes from the defaults. + + The OpenAI, Cloudflare, Ollaya, and TypeSafe evaluate adapters now send `modelOptions` in the request. Before, they did not send them. + + `ollamaText()`, `ollamaEmbedding()`, `tripo3dModel()`, and the summarize factories of every text provider take `defaultModelOptions` too. + + `ai-fal`: an explicit `size` on `generateImage()` or `generateVideo()` now replaces `image_size`, `aspect_ratio`, or `resolution` in `modelOptions`. + + `ai-uthana`: the `defaults` config option is deprecated. Use `defaultModelOptions`. + + `ai-ollama`: for a model name that is not in the model list, `modelOptions` no longer accepts `model`. The adapter sets the model. + + Custom adapters: each `Base*Adapter` class in `@tanstack/ai/adapters` takes `defaultModelOptions` in its constructor config and stores it. Pass it to `super()`. Do not declare the field again in the subclass. `DefaultModelOptionsConfig` is the config type to extend. + +### Patch Changes + +- Updated dependencies [[`afed460`](https://github.com/TanStack/ai/commit/afed460573b0e9a2d3672bbe777ed5ec6c28b6fc), [`afed460`](https://github.com/TanStack/ai/commit/afed460573b0e9a2d3672bbe777ed5ec6c28b6fc), [`a88ee8d`](https://github.com/TanStack/ai/commit/a88ee8d963aa3693064282b2d7e19640472b484c), [`7ba3926`](https://github.com/TanStack/ai/commit/7ba3926652519bc0e1ea74e660ef7d0a0d6a37a6), [`1c55fd5`](https://github.com/TanStack/ai/commit/1c55fd51d2fcafb84f59295736bc42f6d2353868), [`2d89b06`](https://github.com/TanStack/ai/commit/2d89b062d92a3eef44406c015bf6d0ff2b47e6a4), [`a7501eb`](https://github.com/TanStack/ai/commit/a7501eb0a2223b079076bd106c257803742b0e6c), [`1c55fd5`](https://github.com/TanStack/ai/commit/1c55fd51d2fcafb84f59295736bc42f6d2353868)]: + - @tanstack/ai@1.12.0 + - @tanstack/openai-base@1.2.0 + ## 1.0.2 ### Patch Changes diff --git a/packages/ai-llmgateway/package.json b/packages/ai-llmgateway/package.json index 33601c9d78..3486895cd7 100644 --- a/packages/ai-llmgateway/package.json +++ b/packages/ai-llmgateway/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/ai-llmgateway", - "version": "1.0.2", + "version": "1.1.0", "description": "LLM Gateway adapter for TanStack AI — one OpenAI-compatible endpoint for chat, tool calling, and structured outputs across many providers and models.", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/ai-lovable/CHANGELOG.md b/packages/ai-lovable/CHANGELOG.md index 47d2357eb9..ccd5b8eb92 100644 --- a/packages/ai-lovable/CHANGELOG.md +++ b/packages/ai-lovable/CHANGELOG.md @@ -1,5 +1,37 @@ # @tanstack/ai-lovable +## 1.2.0 + +### Minor Changes + +- [#2254](https://github.com/TanStack/ai/pull/2254) [`afed460`](https://github.com/TanStack/ai/commit/afed460573b0e9a2d3672bbe777ed5ec6c28b6fc) - Every first-party adapter takes `defaultModelOptions`, of every kind: text, embedding, image, speech, transcription, audio, voice, video, live video, 3D model, 3D motion, world, rerank, summarize, and evaluate. Reactor, and the Gemini and OpenRouter evaluate adapters, have no model options to send, so they do not take it. Each activity (`chat()`, `embed()`, `generateImage()`, `generateSpeech()`, and the others) merges them under the `modelOptions` of each call, one level deep. A key that the call sets replaces the default key in full. A call key set to `undefined` keeps the default. The middleware, the devtools events or logs, and the adapter all get the merged value. + + ```ts + const adapter = openaiImage('gpt-image-2.6-flare', { + defaultModelOptions: { quality: 'high', output_format: 'webp' }, + }) + ``` + + `summarize()` with a text-backed summarize adapter applies the `defaultModelOptions` of the wrapped text adapter. A `temperature` in those defaults replaces the built-in summarize temperature. A per-call `maxLength` replaces a token limit that only comes from the defaults. + + The OpenAI, Cloudflare, Ollaya, and TypeSafe evaluate adapters now send `modelOptions` in the request. Before, they did not send them. + + `ollamaText()`, `ollamaEmbedding()`, `tripo3dModel()`, and the summarize factories of every text provider take `defaultModelOptions` too. + + `ai-fal`: an explicit `size` on `generateImage()` or `generateVideo()` now replaces `image_size`, `aspect_ratio`, or `resolution` in `modelOptions`. + + `ai-uthana`: the `defaults` config option is deprecated. Use `defaultModelOptions`. + + `ai-ollama`: for a model name that is not in the model list, `modelOptions` no longer accepts `model`. The adapter sets the model. + + Custom adapters: each `Base*Adapter` class in `@tanstack/ai/adapters` takes `defaultModelOptions` in its constructor config and stores it. Pass it to `super()`. Do not declare the field again in the subclass. `DefaultModelOptionsConfig` is the config type to extend. + +### Patch Changes + +- Updated dependencies [[`afed460`](https://github.com/TanStack/ai/commit/afed460573b0e9a2d3672bbe777ed5ec6c28b6fc), [`afed460`](https://github.com/TanStack/ai/commit/afed460573b0e9a2d3672bbe777ed5ec6c28b6fc), [`a88ee8d`](https://github.com/TanStack/ai/commit/a88ee8d963aa3693064282b2d7e19640472b484c), [`7ba3926`](https://github.com/TanStack/ai/commit/7ba3926652519bc0e1ea74e660ef7d0a0d6a37a6), [`1c55fd5`](https://github.com/TanStack/ai/commit/1c55fd51d2fcafb84f59295736bc42f6d2353868), [`2d89b06`](https://github.com/TanStack/ai/commit/2d89b062d92a3eef44406c015bf6d0ff2b47e6a4), [`a7501eb`](https://github.com/TanStack/ai/commit/a7501eb0a2223b079076bd106c257803742b0e6c), [`1c55fd5`](https://github.com/TanStack/ai/commit/1c55fd51d2fcafb84f59295736bc42f6d2353868)]: + - @tanstack/ai@1.12.0 + - @tanstack/openai-base@1.2.0 + ## 1.1.1 ### Patch Changes diff --git a/packages/ai-lovable/package.json b/packages/ai-lovable/package.json index 320be2b0a1..af0567a928 100644 --- a/packages/ai-lovable/package.json +++ b/packages/ai-lovable/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/ai-lovable", - "version": "1.1.1", + "version": "1.2.0", "description": "Lovable AI Gateway adapter for TanStack AI chat, embeddings, image, video, speech, and transcription.", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/ai-mcp/CHANGELOG.md b/packages/ai-mcp/CHANGELOG.md index 104331c6c1..1c74dbe789 100644 --- a/packages/ai-mcp/CHANGELOG.md +++ b/packages/ai-mcp/CHANGELOG.md @@ -1,5 +1,15 @@ # @tanstack/ai-mcp +## 1.3.4 + +### Patch Changes + +- [#2309](https://github.com/TanStack/ai/pull/2309) [`eae0c44`](https://github.com/TanStack/ai/commit/eae0c44012367b4548ec2f88845eb45be457b985) - `createMCPServer` runs a tool's own `inputSchema` before the tool executes, so a transform and a default apply to the input the tool receives, as they already did under `chat()`. The MCP SDK checks the JSON Schema view of the schema, which cannot carry either. An input that the schema refuses now answers as a tool error (`isError`) naming the failed paths, instead of running the tool on the raw arguments. + +- Updated dependencies [[`afed460`](https://github.com/TanStack/ai/commit/afed460573b0e9a2d3672bbe777ed5ec6c28b6fc), [`afed460`](https://github.com/TanStack/ai/commit/afed460573b0e9a2d3672bbe777ed5ec6c28b6fc), [`014da3a`](https://github.com/TanStack/ai/commit/014da3a4ca8bfbfaadad8423e2749a9ce5564187), [`a88ee8d`](https://github.com/TanStack/ai/commit/a88ee8d963aa3693064282b2d7e19640472b484c), [`7ba3926`](https://github.com/TanStack/ai/commit/7ba3926652519bc0e1ea74e660ef7d0a0d6a37a6), [`1c55fd5`](https://github.com/TanStack/ai/commit/1c55fd51d2fcafb84f59295736bc42f6d2353868), [`2d89b06`](https://github.com/TanStack/ai/commit/2d89b062d92a3eef44406c015bf6d0ff2b47e6a4), [`a7501eb`](https://github.com/TanStack/ai/commit/a7501eb0a2223b079076bd106c257803742b0e6c), [`1c55fd5`](https://github.com/TanStack/ai/commit/1c55fd51d2fcafb84f59295736bc42f6d2353868)]: + - @tanstack/ai@1.12.0 + - @tanstack/ai-harness@0.7.0 + ## 1.3.3 ### Patch Changes diff --git a/packages/ai-mcp/package.json b/packages/ai-mcp/package.json index 4a93a84ff1..60cc402a6f 100644 --- a/packages/ai-mcp/package.json +++ b/packages/ai-mcp/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/ai-mcp", - "version": "1.3.3", + "version": "1.3.4", "description": "Host-side Model Context Protocol client for TanStack AI: discover and run MCP server tools, resources, and prompts in any adapter's chat() loop, with generated end-to-end types.", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/ai-meshy/CHANGELOG.md b/packages/ai-meshy/CHANGELOG.md index 71a683efc4..2efeb1e740 100644 --- a/packages/ai-meshy/CHANGELOG.md +++ b/packages/ai-meshy/CHANGELOG.md @@ -1,5 +1,36 @@ # @tanstack/ai-meshy +## 0.3.0 + +### Minor Changes + +- [#2254](https://github.com/TanStack/ai/pull/2254) [`afed460`](https://github.com/TanStack/ai/commit/afed460573b0e9a2d3672bbe777ed5ec6c28b6fc) - Every first-party adapter takes `defaultModelOptions`, of every kind: text, embedding, image, speech, transcription, audio, voice, video, live video, 3D model, 3D motion, world, rerank, summarize, and evaluate. Reactor, and the Gemini and OpenRouter evaluate adapters, have no model options to send, so they do not take it. Each activity (`chat()`, `embed()`, `generateImage()`, `generateSpeech()`, and the others) merges them under the `modelOptions` of each call, one level deep. A key that the call sets replaces the default key in full. A call key set to `undefined` keeps the default. The middleware, the devtools events or logs, and the adapter all get the merged value. + + ```ts + const adapter = openaiImage('gpt-image-2.6-flare', { + defaultModelOptions: { quality: 'high', output_format: 'webp' }, + }) + ``` + + `summarize()` with a text-backed summarize adapter applies the `defaultModelOptions` of the wrapped text adapter. A `temperature` in those defaults replaces the built-in summarize temperature. A per-call `maxLength` replaces a token limit that only comes from the defaults. + + The OpenAI, Cloudflare, Ollaya, and TypeSafe evaluate adapters now send `modelOptions` in the request. Before, they did not send them. + + `ollamaText()`, `ollamaEmbedding()`, `tripo3dModel()`, and the summarize factories of every text provider take `defaultModelOptions` too. + + `ai-fal`: an explicit `size` on `generateImage()` or `generateVideo()` now replaces `image_size`, `aspect_ratio`, or `resolution` in `modelOptions`. + + `ai-uthana`: the `defaults` config option is deprecated. Use `defaultModelOptions`. + + `ai-ollama`: for a model name that is not in the model list, `modelOptions` no longer accepts `model`. The adapter sets the model. + + Custom adapters: each `Base*Adapter` class in `@tanstack/ai/adapters` takes `defaultModelOptions` in its constructor config and stores it. Pass it to `super()`. Do not declare the field again in the subclass. `DefaultModelOptionsConfig` is the config type to extend. + +### Patch Changes + +- Updated dependencies [[`afed460`](https://github.com/TanStack/ai/commit/afed460573b0e9a2d3672bbe777ed5ec6c28b6fc), [`afed460`](https://github.com/TanStack/ai/commit/afed460573b0e9a2d3672bbe777ed5ec6c28b6fc), [`a88ee8d`](https://github.com/TanStack/ai/commit/a88ee8d963aa3693064282b2d7e19640472b484c), [`7ba3926`](https://github.com/TanStack/ai/commit/7ba3926652519bc0e1ea74e660ef7d0a0d6a37a6), [`1c55fd5`](https://github.com/TanStack/ai/commit/1c55fd51d2fcafb84f59295736bc42f6d2353868), [`2d89b06`](https://github.com/TanStack/ai/commit/2d89b062d92a3eef44406c015bf6d0ff2b47e6a4), [`a7501eb`](https://github.com/TanStack/ai/commit/a7501eb0a2223b079076bd106c257803742b0e6c), [`1c55fd5`](https://github.com/TanStack/ai/commit/1c55fd51d2fcafb84f59295736bc42f6d2353868)]: + - @tanstack/ai@1.12.0 + ## 0.2.0 ### Minor Changes diff --git a/packages/ai-meshy/package.json b/packages/ai-meshy/package.json index ac8089407c..461e77a5c2 100644 --- a/packages/ai-meshy/package.json +++ b/packages/ai-meshy/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/ai-meshy", - "version": "0.2.0", + "version": "0.3.0", "description": "Meshy adapter for TanStack AI 3D model and motion generation.", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/ai-mistral/CHANGELOG.md b/packages/ai-mistral/CHANGELOG.md index 7be7074102..b2f4500e78 100644 --- a/packages/ai-mistral/CHANGELOG.md +++ b/packages/ai-mistral/CHANGELOG.md @@ -1,5 +1,36 @@ # @tanstack/ai-mistral +## 1.2.0 + +### Minor Changes + +- [#2254](https://github.com/TanStack/ai/pull/2254) [`afed460`](https://github.com/TanStack/ai/commit/afed460573b0e9a2d3672bbe777ed5ec6c28b6fc) - Every first-party adapter takes `defaultModelOptions`, of every kind: text, embedding, image, speech, transcription, audio, voice, video, live video, 3D model, 3D motion, world, rerank, summarize, and evaluate. Reactor, and the Gemini and OpenRouter evaluate adapters, have no model options to send, so they do not take it. Each activity (`chat()`, `embed()`, `generateImage()`, `generateSpeech()`, and the others) merges them under the `modelOptions` of each call, one level deep. A key that the call sets replaces the default key in full. A call key set to `undefined` keeps the default. The middleware, the devtools events or logs, and the adapter all get the merged value. + + ```ts + const adapter = openaiImage('gpt-image-2.6-flare', { + defaultModelOptions: { quality: 'high', output_format: 'webp' }, + }) + ``` + + `summarize()` with a text-backed summarize adapter applies the `defaultModelOptions` of the wrapped text adapter. A `temperature` in those defaults replaces the built-in summarize temperature. A per-call `maxLength` replaces a token limit that only comes from the defaults. + + The OpenAI, Cloudflare, Ollaya, and TypeSafe evaluate adapters now send `modelOptions` in the request. Before, they did not send them. + + `ollamaText()`, `ollamaEmbedding()`, `tripo3dModel()`, and the summarize factories of every text provider take `defaultModelOptions` too. + + `ai-fal`: an explicit `size` on `generateImage()` or `generateVideo()` now replaces `image_size`, `aspect_ratio`, or `resolution` in `modelOptions`. + + `ai-uthana`: the `defaults` config option is deprecated. Use `defaultModelOptions`. + + `ai-ollama`: for a model name that is not in the model list, `modelOptions` no longer accepts `model`. The adapter sets the model. + + Custom adapters: each `Base*Adapter` class in `@tanstack/ai/adapters` takes `defaultModelOptions` in its constructor config and stores it. Pass it to `super()`. Do not declare the field again in the subclass. `DefaultModelOptionsConfig` is the config type to extend. + +### Patch Changes + +- Updated dependencies [[`afed460`](https://github.com/TanStack/ai/commit/afed460573b0e9a2d3672bbe777ed5ec6c28b6fc), [`afed460`](https://github.com/TanStack/ai/commit/afed460573b0e9a2d3672bbe777ed5ec6c28b6fc), [`a88ee8d`](https://github.com/TanStack/ai/commit/a88ee8d963aa3693064282b2d7e19640472b484c), [`7ba3926`](https://github.com/TanStack/ai/commit/7ba3926652519bc0e1ea74e660ef7d0a0d6a37a6), [`1c55fd5`](https://github.com/TanStack/ai/commit/1c55fd51d2fcafb84f59295736bc42f6d2353868), [`2d89b06`](https://github.com/TanStack/ai/commit/2d89b062d92a3eef44406c015bf6d0ff2b47e6a4), [`a7501eb`](https://github.com/TanStack/ai/commit/a7501eb0a2223b079076bd106c257803742b0e6c), [`1c55fd5`](https://github.com/TanStack/ai/commit/1c55fd51d2fcafb84f59295736bc42f6d2353868)]: + - @tanstack/ai@1.12.0 + ## 1.1.3 ### Patch Changes diff --git a/packages/ai-mistral/package.json b/packages/ai-mistral/package.json index 5d358afddc..2d800c0c12 100644 --- a/packages/ai-mistral/package.json +++ b/packages/ai-mistral/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/ai-mistral", - "version": "1.1.3", + "version": "1.2.0", "type": "module", "description": "Mistral adapter for TanStack AI", "author": "", diff --git a/packages/ai-muse/CHANGELOG.md b/packages/ai-muse/CHANGELOG.md index 7028564099..1cc24bfd3f 100644 --- a/packages/ai-muse/CHANGELOG.md +++ b/packages/ai-muse/CHANGELOG.md @@ -1,5 +1,37 @@ # @tanstack/ai-muse +## 0.2.0 + +### Minor Changes + +- [#2254](https://github.com/TanStack/ai/pull/2254) [`afed460`](https://github.com/TanStack/ai/commit/afed460573b0e9a2d3672bbe777ed5ec6c28b6fc) - Every first-party adapter takes `defaultModelOptions`, of every kind: text, embedding, image, speech, transcription, audio, voice, video, live video, 3D model, 3D motion, world, rerank, summarize, and evaluate. Reactor, and the Gemini and OpenRouter evaluate adapters, have no model options to send, so they do not take it. Each activity (`chat()`, `embed()`, `generateImage()`, `generateSpeech()`, and the others) merges them under the `modelOptions` of each call, one level deep. A key that the call sets replaces the default key in full. A call key set to `undefined` keeps the default. The middleware, the devtools events or logs, and the adapter all get the merged value. + + ```ts + const adapter = openaiImage('gpt-image-2.6-flare', { + defaultModelOptions: { quality: 'high', output_format: 'webp' }, + }) + ``` + + `summarize()` with a text-backed summarize adapter applies the `defaultModelOptions` of the wrapped text adapter. A `temperature` in those defaults replaces the built-in summarize temperature. A per-call `maxLength` replaces a token limit that only comes from the defaults. + + The OpenAI, Cloudflare, Ollaya, and TypeSafe evaluate adapters now send `modelOptions` in the request. Before, they did not send them. + + `ollamaText()`, `ollamaEmbedding()`, `tripo3dModel()`, and the summarize factories of every text provider take `defaultModelOptions` too. + + `ai-fal`: an explicit `size` on `generateImage()` or `generateVideo()` now replaces `image_size`, `aspect_ratio`, or `resolution` in `modelOptions`. + + `ai-uthana`: the `defaults` config option is deprecated. Use `defaultModelOptions`. + + `ai-ollama`: for a model name that is not in the model list, `modelOptions` no longer accepts `model`. The adapter sets the model. + + Custom adapters: each `Base*Adapter` class in `@tanstack/ai/adapters` takes `defaultModelOptions` in its constructor config and stores it. Pass it to `super()`. Do not declare the field again in the subclass. `DefaultModelOptionsConfig` is the config type to extend. + +### Patch Changes + +- Updated dependencies [[`afed460`](https://github.com/TanStack/ai/commit/afed460573b0e9a2d3672bbe777ed5ec6c28b6fc), [`afed460`](https://github.com/TanStack/ai/commit/afed460573b0e9a2d3672bbe777ed5ec6c28b6fc), [`a88ee8d`](https://github.com/TanStack/ai/commit/a88ee8d963aa3693064282b2d7e19640472b484c), [`7ba3926`](https://github.com/TanStack/ai/commit/7ba3926652519bc0e1ea74e660ef7d0a0d6a37a6), [`1c55fd5`](https://github.com/TanStack/ai/commit/1c55fd51d2fcafb84f59295736bc42f6d2353868), [`2d89b06`](https://github.com/TanStack/ai/commit/2d89b062d92a3eef44406c015bf6d0ff2b47e6a4), [`a7501eb`](https://github.com/TanStack/ai/commit/a7501eb0a2223b079076bd106c257803742b0e6c), [`1c55fd5`](https://github.com/TanStack/ai/commit/1c55fd51d2fcafb84f59295736bc42f6d2353868)]: + - @tanstack/ai@1.12.0 + - @tanstack/openai-base@1.2.0 + ## 0.1.0 ### Minor Changes diff --git a/packages/ai-muse/package.json b/packages/ai-muse/package.json index 66494ec774..19525c572b 100644 --- a/packages/ai-muse/package.json +++ b/packages/ai-muse/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/ai-muse", - "version": "0.1.0", + "version": "0.2.0", "description": "Muse adapter for TanStack AI chat, tool calling, and structured outputs.", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/ai-neon/CHANGELOG.md b/packages/ai-neon/CHANGELOG.md index 678aa679ae..bdd08ae5f9 100644 --- a/packages/ai-neon/CHANGELOG.md +++ b/packages/ai-neon/CHANGELOG.md @@ -1,5 +1,38 @@ # @tanstack/ai-neon +## 0.3.0 + +### Minor Changes + +- [#2254](https://github.com/TanStack/ai/pull/2254) [`afed460`](https://github.com/TanStack/ai/commit/afed460573b0e9a2d3672bbe777ed5ec6c28b6fc) - Every first-party adapter takes `defaultModelOptions`, of every kind: text, embedding, image, speech, transcription, audio, voice, video, live video, 3D model, 3D motion, world, rerank, summarize, and evaluate. Reactor, and the Gemini and OpenRouter evaluate adapters, have no model options to send, so they do not take it. Each activity (`chat()`, `embed()`, `generateImage()`, `generateSpeech()`, and the others) merges them under the `modelOptions` of each call, one level deep. A key that the call sets replaces the default key in full. A call key set to `undefined` keeps the default. The middleware, the devtools events or logs, and the adapter all get the merged value. + + ```ts + const adapter = openaiImage('gpt-image-2.6-flare', { + defaultModelOptions: { quality: 'high', output_format: 'webp' }, + }) + ``` + + `summarize()` with a text-backed summarize adapter applies the `defaultModelOptions` of the wrapped text adapter. A `temperature` in those defaults replaces the built-in summarize temperature. A per-call `maxLength` replaces a token limit that only comes from the defaults. + + The OpenAI, Cloudflare, Ollaya, and TypeSafe evaluate adapters now send `modelOptions` in the request. Before, they did not send them. + + `ollamaText()`, `ollamaEmbedding()`, `tripo3dModel()`, and the summarize factories of every text provider take `defaultModelOptions` too. + + `ai-fal`: an explicit `size` on `generateImage()` or `generateVideo()` now replaces `image_size`, `aspect_ratio`, or `resolution` in `modelOptions`. + + `ai-uthana`: the `defaults` config option is deprecated. Use `defaultModelOptions`. + + `ai-ollama`: for a model name that is not in the model list, `modelOptions` no longer accepts `model`. The adapter sets the model. + + Custom adapters: each `Base*Adapter` class in `@tanstack/ai/adapters` takes `defaultModelOptions` in its constructor config and stores it. Pass it to `super()`. Do not declare the field again in the subclass. `DefaultModelOptionsConfig` is the config type to extend. + +### Patch Changes + +- Updated dependencies [[`afed460`](https://github.com/TanStack/ai/commit/afed460573b0e9a2d3672bbe777ed5ec6c28b6fc), [`afed460`](https://github.com/TanStack/ai/commit/afed460573b0e9a2d3672bbe777ed5ec6c28b6fc), [`a88ee8d`](https://github.com/TanStack/ai/commit/a88ee8d963aa3693064282b2d7e19640472b484c), [`7ba3926`](https://github.com/TanStack/ai/commit/7ba3926652519bc0e1ea74e660ef7d0a0d6a37a6), [`1c55fd5`](https://github.com/TanStack/ai/commit/1c55fd51d2fcafb84f59295736bc42f6d2353868), [`2d89b06`](https://github.com/TanStack/ai/commit/2d89b062d92a3eef44406c015bf6d0ff2b47e6a4), [`a7501eb`](https://github.com/TanStack/ai/commit/a7501eb0a2223b079076bd106c257803742b0e6c), [`1c55fd5`](https://github.com/TanStack/ai/commit/1c55fd51d2fcafb84f59295736bc42f6d2353868)]: + - @tanstack/ai@1.12.0 + - @tanstack/ai-anthropic@1.3.0 + - @tanstack/openai-base@1.2.0 + ## 0.2.2 ### Patch Changes diff --git a/packages/ai-neon/package.json b/packages/ai-neon/package.json index 87863353ef..f69852eb55 100644 --- a/packages/ai-neon/package.json +++ b/packages/ai-neon/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/ai-neon", - "version": "0.2.2", + "version": "0.3.0", "description": "Neon AI Gateway adapter for TanStack AI chat, embeddings, and summarization.", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/ai-octane/CHANGELOG.md b/packages/ai-octane/CHANGELOG.md index 7e7f9c1c73..a48447efaa 100644 --- a/packages/ai-octane/CHANGELOG.md +++ b/packages/ai-octane/CHANGELOG.md @@ -1,5 +1,36 @@ # @tanstack/ai-octane +## 1.4.0 + +### Minor Changes + +- [#2258](https://github.com/TanStack/ai/pull/2258) [`518dee9`](https://github.com/TanStack/ai/commit/518dee986e84e1869008c67f9e4841832777c062) - Export `StreamHttpError` from `@tanstack/ai-client` and re-export it from the framework packages. The fetch and XHR chat transports throw this class when the response status is not 2xx. It has `status`, and `retryAfterMs` when the response has a valid `Retry-After` header. Import it to check the status with `instanceof` in `onError` instead of parsing the error message. + +- [#2239](https://github.com/TanStack/ai/pull/2239) [`7ba3926`](https://github.com/TanStack/ai/commit/7ba3926652519bc0e1ea74e660ef7d0a0d6a37a6) - Add OpenAI GPT-Live voice (`gpt-live-1` and `gpt-live-1.1`). On the server, `openaiLiveSession()` creates the session. In the browser, `openaiLive()` connects over WebRTC. + + GPT-Live has no browser token, so this release adds a relay path: + - `realtimeSession()` in `@tanstack/ai` takes the WebRTC offer from the browser, gives it to a `RealtimeSessionAdapter`, and returns the answer. + - `RealtimeRelayAdapter` (`kind: 'relay'`) is a browser adapter that connects through your server. + - `RealtimeClient`, `useRealtimeChat`, and `createRealtimeChat` take `createSession` in place of `getToken` for a relay adapter. + + The options type is now a union of the token form and the relay form. If you read the type of `getToken` from it (for example `UseRealtimeChatOptions['getToken']`), the type now includes `undefined`. + + `RealtimeClient.updateSession()` now sends `providerOptions` to the connection. Before, the client kept `providerOptions` but did not send them. + + Realtime adapters now get `RealtimeConnectOptions` (`abortSignal`, `autoCapture`) in `connect()`. With `autoCapture: false`, `openaiRealtime()` and `openaiLive()` open the microphone on the first `startAudioCapture()`, not on connect. + + `RealtimeClient` sends a tool result only to the connection that asked for it. After a reconnect, a result from the old session is dropped. + + `createSession` receives the connect `AbortSignal` as its second argument. Pass it to the session request so a cancelled connect does not open a provider session. + + A delegated response that fails, or ends before it is complete, reports an error. The client does not continue that turn. + +### Patch Changes + +- Updated dependencies [[`afed460`](https://github.com/TanStack/ai/commit/afed460573b0e9a2d3672bbe777ed5ec6c28b6fc), [`afed460`](https://github.com/TanStack/ai/commit/afed460573b0e9a2d3672bbe777ed5ec6c28b6fc), [`518dee9`](https://github.com/TanStack/ai/commit/518dee986e84e1869008c67f9e4841832777c062), [`a88ee8d`](https://github.com/TanStack/ai/commit/a88ee8d963aa3693064282b2d7e19640472b484c), [`7ba3926`](https://github.com/TanStack/ai/commit/7ba3926652519bc0e1ea74e660ef7d0a0d6a37a6), [`1c55fd5`](https://github.com/TanStack/ai/commit/1c55fd51d2fcafb84f59295736bc42f6d2353868), [`2d89b06`](https://github.com/TanStack/ai/commit/2d89b062d92a3eef44406c015bf6d0ff2b47e6a4), [`a7501eb`](https://github.com/TanStack/ai/commit/a7501eb0a2223b079076bd106c257803742b0e6c), [`1c55fd5`](https://github.com/TanStack/ai/commit/1c55fd51d2fcafb84f59295736bc42f6d2353868)]: + - @tanstack/ai@1.12.0 + - @tanstack/ai-client@1.5.0 + ## 1.3.0 ### Minor Changes diff --git a/packages/ai-octane/package.json b/packages/ai-octane/package.json index 7ef9a98013..ad85d766fc 100644 --- a/packages/ai-octane/package.json +++ b/packages/ai-octane/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/ai-octane", - "version": "1.3.0", + "version": "1.4.0", "description": "Octane bindings for TanStack AI streaming chat, structured outputs, and media generation.", "author": "Dominic Gannaway", "license": "MIT", diff --git a/packages/ai-ollama/CHANGELOG.md b/packages/ai-ollama/CHANGELOG.md index 0b8a98a017..6efd1895c0 100644 --- a/packages/ai-ollama/CHANGELOG.md +++ b/packages/ai-ollama/CHANGELOG.md @@ -1,5 +1,38 @@ # @tanstack/ai-ollama +## 1.2.0 + +### Minor Changes + +- [#2254](https://github.com/TanStack/ai/pull/2254) [`afed460`](https://github.com/TanStack/ai/commit/afed460573b0e9a2d3672bbe777ed5ec6c28b6fc) - Every first-party adapter takes `defaultModelOptions`, of every kind: text, embedding, image, speech, transcription, audio, voice, video, live video, 3D model, 3D motion, world, rerank, summarize, and evaluate. Reactor, and the Gemini and OpenRouter evaluate adapters, have no model options to send, so they do not take it. Each activity (`chat()`, `embed()`, `generateImage()`, `generateSpeech()`, and the others) merges them under the `modelOptions` of each call, one level deep. A key that the call sets replaces the default key in full. A call key set to `undefined` keeps the default. The middleware, the devtools events or logs, and the adapter all get the merged value. + + ```ts + const adapter = openaiImage('gpt-image-2.6-flare', { + defaultModelOptions: { quality: 'high', output_format: 'webp' }, + }) + ``` + + `summarize()` with a text-backed summarize adapter applies the `defaultModelOptions` of the wrapped text adapter. A `temperature` in those defaults replaces the built-in summarize temperature. A per-call `maxLength` replaces a token limit that only comes from the defaults. + + The OpenAI, Cloudflare, Ollaya, and TypeSafe evaluate adapters now send `modelOptions` in the request. Before, they did not send them. + + `ollamaText()`, `ollamaEmbedding()`, `tripo3dModel()`, and the summarize factories of every text provider take `defaultModelOptions` too. + + `ai-fal`: an explicit `size` on `generateImage()` or `generateVideo()` now replaces `image_size`, `aspect_ratio`, or `resolution` in `modelOptions`. + + `ai-uthana`: the `defaults` config option is deprecated. Use `defaultModelOptions`. + + `ai-ollama`: for a model name that is not in the model list, `modelOptions` no longer accepts `model`. The adapter sets the model. + + Custom adapters: each `Base*Adapter` class in `@tanstack/ai/adapters` takes `defaultModelOptions` in its constructor config and stores it. Pass it to `super()`. Do not declare the field again in the subclass. `DefaultModelOptionsConfig` is the config type to extend. + +### Patch Changes + +- [#2311](https://github.com/TanStack/ai/pull/2311) [`70c1a64`](https://github.com/TanStack/ai/commit/70c1a646c47e2b1d0ec4d472bc738458172e2e8c) - Close the Ollama request when the consumer stops reading a chat stream early. The `ollama` SDK does not cancel the response body when iteration ends, and the adapter only aborted the stream for an injected client with a caller signal. In every other case, including the default `ollamaText()` and `createOllamaChat()` with no abort controller, the request stayed open after the loop exited. + +- Updated dependencies [[`afed460`](https://github.com/TanStack/ai/commit/afed460573b0e9a2d3672bbe777ed5ec6c28b6fc), [`afed460`](https://github.com/TanStack/ai/commit/afed460573b0e9a2d3672bbe777ed5ec6c28b6fc), [`a88ee8d`](https://github.com/TanStack/ai/commit/a88ee8d963aa3693064282b2d7e19640472b484c), [`7ba3926`](https://github.com/TanStack/ai/commit/7ba3926652519bc0e1ea74e660ef7d0a0d6a37a6), [`1c55fd5`](https://github.com/TanStack/ai/commit/1c55fd51d2fcafb84f59295736bc42f6d2353868), [`2d89b06`](https://github.com/TanStack/ai/commit/2d89b062d92a3eef44406c015bf6d0ff2b47e6a4), [`a7501eb`](https://github.com/TanStack/ai/commit/a7501eb0a2223b079076bd106c257803742b0e6c), [`1c55fd5`](https://github.com/TanStack/ai/commit/1c55fd51d2fcafb84f59295736bc42f6d2353868)]: + - @tanstack/ai@1.12.0 + ## 1.1.1 ### Patch Changes diff --git a/packages/ai-ollama/package.json b/packages/ai-ollama/package.json index f556be6d0a..a38b77cbc8 100644 --- a/packages/ai-ollama/package.json +++ b/packages/ai-ollama/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/ai-ollama", - "version": "1.1.1", + "version": "1.2.0", "description": "Ollama adapter for TanStack AI local LLM chat, tool calling, and structured outputs.", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/ai-ollaya/CHANGELOG.md b/packages/ai-ollaya/CHANGELOG.md index 71764236f3..66bea139c5 100644 --- a/packages/ai-ollaya/CHANGELOG.md +++ b/packages/ai-ollaya/CHANGELOG.md @@ -1,5 +1,36 @@ # @tanstack/ai-ollaya +## 1.1.0 + +### Minor Changes + +- [#2254](https://github.com/TanStack/ai/pull/2254) [`afed460`](https://github.com/TanStack/ai/commit/afed460573b0e9a2d3672bbe777ed5ec6c28b6fc) - Every first-party adapter takes `defaultModelOptions`, of every kind: text, embedding, image, speech, transcription, audio, voice, video, live video, 3D model, 3D motion, world, rerank, summarize, and evaluate. Reactor, and the Gemini and OpenRouter evaluate adapters, have no model options to send, so they do not take it. Each activity (`chat()`, `embed()`, `generateImage()`, `generateSpeech()`, and the others) merges them under the `modelOptions` of each call, one level deep. A key that the call sets replaces the default key in full. A call key set to `undefined` keeps the default. The middleware, the devtools events or logs, and the adapter all get the merged value. + + ```ts + const adapter = openaiImage('gpt-image-2.6-flare', { + defaultModelOptions: { quality: 'high', output_format: 'webp' }, + }) + ``` + + `summarize()` with a text-backed summarize adapter applies the `defaultModelOptions` of the wrapped text adapter. A `temperature` in those defaults replaces the built-in summarize temperature. A per-call `maxLength` replaces a token limit that only comes from the defaults. + + The OpenAI, Cloudflare, Ollaya, and TypeSafe evaluate adapters now send `modelOptions` in the request. Before, they did not send them. + + `ollamaText()`, `ollamaEmbedding()`, `tripo3dModel()`, and the summarize factories of every text provider take `defaultModelOptions` too. + + `ai-fal`: an explicit `size` on `generateImage()` or `generateVideo()` now replaces `image_size`, `aspect_ratio`, or `resolution` in `modelOptions`. + + `ai-uthana`: the `defaults` config option is deprecated. Use `defaultModelOptions`. + + `ai-ollama`: for a model name that is not in the model list, `modelOptions` no longer accepts `model`. The adapter sets the model. + + Custom adapters: each `Base*Adapter` class in `@tanstack/ai/adapters` takes `defaultModelOptions` in its constructor config and stores it. Pass it to `super()`. Do not declare the field again in the subclass. `DefaultModelOptionsConfig` is the config type to extend. + +### Patch Changes + +- Updated dependencies [[`afed460`](https://github.com/TanStack/ai/commit/afed460573b0e9a2d3672bbe777ed5ec6c28b6fc), [`afed460`](https://github.com/TanStack/ai/commit/afed460573b0e9a2d3672bbe777ed5ec6c28b6fc), [`a88ee8d`](https://github.com/TanStack/ai/commit/a88ee8d963aa3693064282b2d7e19640472b484c), [`7ba3926`](https://github.com/TanStack/ai/commit/7ba3926652519bc0e1ea74e660ef7d0a0d6a37a6), [`1c55fd5`](https://github.com/TanStack/ai/commit/1c55fd51d2fcafb84f59295736bc42f6d2353868), [`2d89b06`](https://github.com/TanStack/ai/commit/2d89b062d92a3eef44406c015bf6d0ff2b47e6a4), [`a7501eb`](https://github.com/TanStack/ai/commit/a7501eb0a2223b079076bd106c257803742b0e6c), [`1c55fd5`](https://github.com/TanStack/ai/commit/1c55fd51d2fcafb84f59295736bc42f6d2353868)]: + - @tanstack/ai@1.12.0 + ## 1.0.0 ### Major Changes diff --git a/packages/ai-ollaya/package.json b/packages/ai-ollaya/package.json index 34f24d0660..c29499db83 100644 --- a/packages/ai-ollaya/package.json +++ b/packages/ai-ollaya/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/ai-ollaya", - "version": "1.0.0", + "version": "1.1.0", "description": "Ollaya adapter for TanStack AI — typed evaluate decisions against a local Ollaya / laya decision server.", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/ai-openai/CHANGELOG.md b/packages/ai-openai/CHANGELOG.md index 32cfb69e99..cce90ae70e 100644 --- a/packages/ai-openai/CHANGELOG.md +++ b/packages/ai-openai/CHANGELOG.md @@ -1,5 +1,65 @@ # @tanstack/ai-openai +## 1.3.0 + +### Minor Changes + +- [#2254](https://github.com/TanStack/ai/pull/2254) [`afed460`](https://github.com/TanStack/ai/commit/afed460573b0e9a2d3672bbe777ed5ec6c28b6fc) - Every first-party adapter takes `defaultModelOptions`, of every kind: text, embedding, image, speech, transcription, audio, voice, video, live video, 3D model, 3D motion, world, rerank, summarize, and evaluate. Reactor, and the Gemini and OpenRouter evaluate adapters, have no model options to send, so they do not take it. Each activity (`chat()`, `embed()`, `generateImage()`, `generateSpeech()`, and the others) merges them under the `modelOptions` of each call, one level deep. A key that the call sets replaces the default key in full. A call key set to `undefined` keeps the default. The middleware, the devtools events or logs, and the adapter all get the merged value. + + ```ts + const adapter = openaiImage('gpt-image-2.6-flare', { + defaultModelOptions: { quality: 'high', output_format: 'webp' }, + }) + ``` + + `summarize()` with a text-backed summarize adapter applies the `defaultModelOptions` of the wrapped text adapter. A `temperature` in those defaults replaces the built-in summarize temperature. A per-call `maxLength` replaces a token limit that only comes from the defaults. + + The OpenAI, Cloudflare, Ollaya, and TypeSafe evaluate adapters now send `modelOptions` in the request. Before, they did not send them. + + `ollamaText()`, `ollamaEmbedding()`, `tripo3dModel()`, and the summarize factories of every text provider take `defaultModelOptions` too. + + `ai-fal`: an explicit `size` on `generateImage()` or `generateVideo()` now replaces `image_size`, `aspect_ratio`, or `resolution` in `modelOptions`. + + `ai-uthana`: the `defaults` config option is deprecated. Use `defaultModelOptions`. + + `ai-ollama`: for a model name that is not in the model list, `modelOptions` no longer accepts `model`. The adapter sets the model. + + Custom adapters: each `Base*Adapter` class in `@tanstack/ai/adapters` takes `defaultModelOptions` in its constructor config and stores it. Pass it to `super()`. Do not declare the field again in the subclass. `DefaultModelOptionsConfig` is the config type to extend. + +- [#2239](https://github.com/TanStack/ai/pull/2239) [`7ba3926`](https://github.com/TanStack/ai/commit/7ba3926652519bc0e1ea74e660ef7d0a0d6a37a6) - Add OpenAI GPT-Live voice (`gpt-live-1` and `gpt-live-1.1`). On the server, `openaiLiveSession()` creates the session. In the browser, `openaiLive()` connects over WebRTC. + + GPT-Live has no browser token, so this release adds a relay path: + - `realtimeSession()` in `@tanstack/ai` takes the WebRTC offer from the browser, gives it to a `RealtimeSessionAdapter`, and returns the answer. + - `RealtimeRelayAdapter` (`kind: 'relay'`) is a browser adapter that connects through your server. + - `RealtimeClient`, `useRealtimeChat`, and `createRealtimeChat` take `createSession` in place of `getToken` for a relay adapter. + + The options type is now a union of the token form and the relay form. If you read the type of `getToken` from it (for example `UseRealtimeChatOptions['getToken']`), the type now includes `undefined`. + + `RealtimeClient.updateSession()` now sends `providerOptions` to the connection. Before, the client kept `providerOptions` but did not send them. + + Realtime adapters now get `RealtimeConnectOptions` (`abortSignal`, `autoCapture`) in `connect()`. With `autoCapture: false`, `openaiRealtime()` and `openaiLive()` open the microphone on the first `startAudioCapture()`, not on connect. + + `RealtimeClient` sends a tool result only to the connection that asked for it. After a reconnect, a result from the old session is dropped. + + `createSession` receives the connect `AbortSignal` as its second argument. Pass it to the session request so a cancelled connect does not open a provider session. + + A delegated response that fails, or ends before it is complete, reports an error. The client does not continue that turn. + +- [#2179](https://github.com/TanStack/ai/pull/2179) [`1c55fd5`](https://github.com/TanStack/ai/commit/1c55fd51d2fcafb84f59295736bc42f6d2353868) - Add incremental transcription streaming for OpenAI models that support it. + +- [#2242](https://github.com/TanStack/ai/pull/2242) [`2d89b06`](https://github.com/TanStack/ai/commit/2d89b062d92a3eef44406c015bf6d0ff2b47e6a4) - Fix model option types that did not match what the provider accepts. + - `@tanstack/ai`: an adapter can mark `modelOptions` keys that work only with `reasoning: 'off'` (`offOnlyOptions` on its reasoning capability). `chat()`, `ctx.chat()` and `createChatOptions()` then make those keys a type error when `reasoning` is not `'off'` or not set. + - `@tanstack/ai-openai`: on reasoning models (o-series, `gpt-5*`, `gpt-6*`, except `*-chat-latest`), `temperature`, `top_p` and `top_logprobs` type-check only with `reasoning: 'off'`. `o3-deep-research` and `o4-mini-deep-research` have no `'off'` level, so these options are always a type error there. The adapter still drops them at runtime for JS callers. Before, the types accepted them and nothing told you that they were dropped. + - `@tanstack/ai-openai`: `gpt-6.1-terra` (`off` to `max`) and `gpt-6.1-terra-pro` (`low` to `max`) now have their reasoning levels. Before, every `reasoning` value was a type error, and the adapter sent no reasoning effort. + - `@tanstack/ai-openai`: `service_tier` uses the `ServiceTier` type of the OpenAI SDK. It now accepts `'scale'`, `'fast'` and `'ultrafast'`. + - `@tanstack/ai-anthropic`: `claude-opus-5` and `claude-opus-5-5` no longer accept `temperature`, `top_p` or `top_k`. Anthropic returns a 400 for them on these models. + +### Patch Changes + +- Updated dependencies [[`afed460`](https://github.com/TanStack/ai/commit/afed460573b0e9a2d3672bbe777ed5ec6c28b6fc), [`afed460`](https://github.com/TanStack/ai/commit/afed460573b0e9a2d3672bbe777ed5ec6c28b6fc), [`a88ee8d`](https://github.com/TanStack/ai/commit/a88ee8d963aa3693064282b2d7e19640472b484c), [`7ba3926`](https://github.com/TanStack/ai/commit/7ba3926652519bc0e1ea74e660ef7d0a0d6a37a6), [`1c55fd5`](https://github.com/TanStack/ai/commit/1c55fd51d2fcafb84f59295736bc42f6d2353868), [`2d89b06`](https://github.com/TanStack/ai/commit/2d89b062d92a3eef44406c015bf6d0ff2b47e6a4), [`a7501eb`](https://github.com/TanStack/ai/commit/a7501eb0a2223b079076bd106c257803742b0e6c), [`1c55fd5`](https://github.com/TanStack/ai/commit/1c55fd51d2fcafb84f59295736bc42f6d2353868)]: + - @tanstack/ai@1.12.0 + - @tanstack/openai-base@1.2.0 + ## 1.2.1 ### Patch Changes diff --git a/packages/ai-openai/package.json b/packages/ai-openai/package.json index d51a39526f..5ddc9371e8 100644 --- a/packages/ai-openai/package.json +++ b/packages/ai-openai/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/ai-openai", - "version": "1.2.1", + "version": "1.3.0", "description": "OpenAI adapter for TanStack AI chat, tools, images, video, speech, transcription, realtime, and structured outputs.", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/ai-opencode/CHANGELOG.md b/packages/ai-opencode/CHANGELOG.md index 8c3ef638a3..b356fc7d2c 100644 --- a/packages/ai-opencode/CHANGELOG.md +++ b/packages/ai-opencode/CHANGELOG.md @@ -1,5 +1,37 @@ # @tanstack/ai-opencode +## 1.2.0 + +### Minor Changes + +- [#2254](https://github.com/TanStack/ai/pull/2254) [`afed460`](https://github.com/TanStack/ai/commit/afed460573b0e9a2d3672bbe777ed5ec6c28b6fc) - Every first-party adapter takes `defaultModelOptions`, of every kind: text, embedding, image, speech, transcription, audio, voice, video, live video, 3D model, 3D motion, world, rerank, summarize, and evaluate. Reactor, and the Gemini and OpenRouter evaluate adapters, have no model options to send, so they do not take it. Each activity (`chat()`, `embed()`, `generateImage()`, `generateSpeech()`, and the others) merges them under the `modelOptions` of each call, one level deep. A key that the call sets replaces the default key in full. A call key set to `undefined` keeps the default. The middleware, the devtools events or logs, and the adapter all get the merged value. + + ```ts + const adapter = openaiImage('gpt-image-2.6-flare', { + defaultModelOptions: { quality: 'high', output_format: 'webp' }, + }) + ``` + + `summarize()` with a text-backed summarize adapter applies the `defaultModelOptions` of the wrapped text adapter. A `temperature` in those defaults replaces the built-in summarize temperature. A per-call `maxLength` replaces a token limit that only comes from the defaults. + + The OpenAI, Cloudflare, Ollaya, and TypeSafe evaluate adapters now send `modelOptions` in the request. Before, they did not send them. + + `ollamaText()`, `ollamaEmbedding()`, `tripo3dModel()`, and the summarize factories of every text provider take `defaultModelOptions` too. + + `ai-fal`: an explicit `size` on `generateImage()` or `generateVideo()` now replaces `image_size`, `aspect_ratio`, or `resolution` in `modelOptions`. + + `ai-uthana`: the `defaults` config option is deprecated. Use `defaultModelOptions`. + + `ai-ollama`: for a model name that is not in the model list, `modelOptions` no longer accepts `model`. The adapter sets the model. + + Custom adapters: each `Base*Adapter` class in `@tanstack/ai/adapters` takes `defaultModelOptions` in its constructor config and stores it. Pass it to `super()`. Do not declare the field again in the subclass. `DefaultModelOptionsConfig` is the config type to extend. + +### Patch Changes + +- Updated dependencies [[`afed460`](https://github.com/TanStack/ai/commit/afed460573b0e9a2d3672bbe777ed5ec6c28b6fc), [`afed460`](https://github.com/TanStack/ai/commit/afed460573b0e9a2d3672bbe777ed5ec6c28b6fc), [`a88ee8d`](https://github.com/TanStack/ai/commit/a88ee8d963aa3693064282b2d7e19640472b484c), [`7ba3926`](https://github.com/TanStack/ai/commit/7ba3926652519bc0e1ea74e660ef7d0a0d6a37a6), [`1c55fd5`](https://github.com/TanStack/ai/commit/1c55fd51d2fcafb84f59295736bc42f6d2353868), [`2d89b06`](https://github.com/TanStack/ai/commit/2d89b062d92a3eef44406c015bf6d0ff2b47e6a4), [`a7501eb`](https://github.com/TanStack/ai/commit/a7501eb0a2223b079076bd106c257803742b0e6c), [`1c55fd5`](https://github.com/TanStack/ai/commit/1c55fd51d2fcafb84f59295736bc42f6d2353868)]: + - @tanstack/ai@1.12.0 + - @tanstack/ai-sandbox@1.7.1 + ## 1.1.0 ### Minor Changes diff --git a/packages/ai-opencode/package.json b/packages/ai-opencode/package.json index fc5aab868f..46273174fd 100644 --- a/packages/ai-opencode/package.json +++ b/packages/ai-opencode/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/ai-opencode", - "version": "1.1.0", + "version": "1.2.0", "description": "OpenCode harness adapter for TanStack AI — run OpenCode as a chat backend with local tool execution and stateful sessions.", "author": "", "license": "MIT", diff --git a/packages/ai-openrouter/CHANGELOG.md b/packages/ai-openrouter/CHANGELOG.md index 3c82f50964..a19365bfce 100644 --- a/packages/ai-openrouter/CHANGELOG.md +++ b/packages/ai-openrouter/CHANGELOG.md @@ -1,5 +1,50 @@ # @tanstack/ai-openrouter +## 1.2.0 + +### Minor Changes + +- [#2254](https://github.com/TanStack/ai/pull/2254) [`afed460`](https://github.com/TanStack/ai/commit/afed460573b0e9a2d3672bbe777ed5ec6c28b6fc) - Text adapters can carry `defaultModelOptions`. `chat()` merges them under the `modelOptions` of each call, one level deep. A key that the call sets replaces the default key in full. The engine, the middleware, and the adapter all get the merged value. + + `createOpenRouterText()`, `openRouterText()`, `createOpenRouterResponsesText()`, and `openRouterResponsesText()` take a `defaultModelOptions` option, for example to set provider routing for every call: + + ```ts + const adapter = openRouterText('openai/gpt-6.1-sol', { + defaultModelOptions: { + provider: { sort: 'latency', preferredMaxLatency: { p90: 2.5 } }, + }, + }) + ``` + +- [#2254](https://github.com/TanStack/ai/pull/2254) [`afed460`](https://github.com/TanStack/ai/commit/afed460573b0e9a2d3672bbe777ed5ec6c28b6fc) - Every first-party adapter takes `defaultModelOptions`, of every kind: text, embedding, image, speech, transcription, audio, voice, video, live video, 3D model, 3D motion, world, rerank, summarize, and evaluate. Reactor, and the Gemini and OpenRouter evaluate adapters, have no model options to send, so they do not take it. Each activity (`chat()`, `embed()`, `generateImage()`, `generateSpeech()`, and the others) merges them under the `modelOptions` of each call, one level deep. A key that the call sets replaces the default key in full. A call key set to `undefined` keeps the default. The middleware, the devtools events or logs, and the adapter all get the merged value. + + ```ts + const adapter = openaiImage('gpt-image-2.6-flare', { + defaultModelOptions: { quality: 'high', output_format: 'webp' }, + }) + ``` + + `summarize()` with a text-backed summarize adapter applies the `defaultModelOptions` of the wrapped text adapter. A `temperature` in those defaults replaces the built-in summarize temperature. A per-call `maxLength` replaces a token limit that only comes from the defaults. + + The OpenAI, Cloudflare, Ollaya, and TypeSafe evaluate adapters now send `modelOptions` in the request. Before, they did not send them. + + `ollamaText()`, `ollamaEmbedding()`, `tripo3dModel()`, and the summarize factories of every text provider take `defaultModelOptions` too. + + `ai-fal`: an explicit `size` on `generateImage()` or `generateVideo()` now replaces `image_size`, `aspect_ratio`, or `resolution` in `modelOptions`. + + `ai-uthana`: the `defaults` config option is deprecated. Use `defaultModelOptions`. + + `ai-ollama`: for a model name that is not in the model list, `modelOptions` no longer accepts `model`. The adapter sets the model. + + Custom adapters: each `Base*Adapter` class in `@tanstack/ai/adapters` takes `defaultModelOptions` in its constructor config and stores it. Pass it to `super()`. Do not declare the field again in the subclass. `DefaultModelOptionsConfig` is the config type to extend. + +### Patch Changes + +- [#2304](https://github.com/TanStack/ai/pull/2304) [`945a3af`](https://github.com/TanStack/ai/commit/945a3afe64f64e855207500c3627725b8ea522dc) - Ignore and log Responses argument deltas that arrive after a tool call's `TOOL_CALL_END`. + +- Updated dependencies [[`afed460`](https://github.com/TanStack/ai/commit/afed460573b0e9a2d3672bbe777ed5ec6c28b6fc), [`afed460`](https://github.com/TanStack/ai/commit/afed460573b0e9a2d3672bbe777ed5ec6c28b6fc), [`a88ee8d`](https://github.com/TanStack/ai/commit/a88ee8d963aa3693064282b2d7e19640472b484c), [`7ba3926`](https://github.com/TanStack/ai/commit/7ba3926652519bc0e1ea74e660ef7d0a0d6a37a6), [`1c55fd5`](https://github.com/TanStack/ai/commit/1c55fd51d2fcafb84f59295736bc42f6d2353868), [`2d89b06`](https://github.com/TanStack/ai/commit/2d89b062d92a3eef44406c015bf6d0ff2b47e6a4), [`a7501eb`](https://github.com/TanStack/ai/commit/a7501eb0a2223b079076bd106c257803742b0e6c), [`1c55fd5`](https://github.com/TanStack/ai/commit/1c55fd51d2fcafb84f59295736bc42f6d2353868)]: + - @tanstack/ai@1.12.0 + ## 1.1.3 ### Patch Changes diff --git a/packages/ai-openrouter/package.json b/packages/ai-openrouter/package.json index e6a107cf83..28c5cf4a46 100644 --- a/packages/ai-openrouter/package.json +++ b/packages/ai-openrouter/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/ai-openrouter", - "version": "1.1.3", + "version": "1.2.0", "description": "TanStack AI adapter for OpenRouter chat, provider tools, structured outputs, and access to hundreds of LLMs.", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/ai-preact/CHANGELOG.md b/packages/ai-preact/CHANGELOG.md index aa4383c965..88a35f83ae 100644 --- a/packages/ai-preact/CHANGELOG.md +++ b/packages/ai-preact/CHANGELOG.md @@ -1,5 +1,17 @@ # @tanstack/ai-preact +## 1.2.0 + +### Minor Changes + +- [#2258](https://github.com/TanStack/ai/pull/2258) [`518dee9`](https://github.com/TanStack/ai/commit/518dee986e84e1869008c67f9e4841832777c062) - Export `StreamHttpError` from `@tanstack/ai-client` and re-export it from the framework packages. The fetch and XHR chat transports throw this class when the response status is not 2xx. It has `status`, and `retryAfterMs` when the response has a valid `Retry-After` header. Import it to check the status with `instanceof` in `onError` instead of parsing the error message. + +### Patch Changes + +- Updated dependencies [[`afed460`](https://github.com/TanStack/ai/commit/afed460573b0e9a2d3672bbe777ed5ec6c28b6fc), [`afed460`](https://github.com/TanStack/ai/commit/afed460573b0e9a2d3672bbe777ed5ec6c28b6fc), [`518dee9`](https://github.com/TanStack/ai/commit/518dee986e84e1869008c67f9e4841832777c062), [`a88ee8d`](https://github.com/TanStack/ai/commit/a88ee8d963aa3693064282b2d7e19640472b484c), [`7ba3926`](https://github.com/TanStack/ai/commit/7ba3926652519bc0e1ea74e660ef7d0a0d6a37a6), [`1c55fd5`](https://github.com/TanStack/ai/commit/1c55fd51d2fcafb84f59295736bc42f6d2353868), [`2d89b06`](https://github.com/TanStack/ai/commit/2d89b062d92a3eef44406c015bf6d0ff2b47e6a4), [`a7501eb`](https://github.com/TanStack/ai/commit/a7501eb0a2223b079076bd106c257803742b0e6c), [`1c55fd5`](https://github.com/TanStack/ai/commit/1c55fd51d2fcafb84f59295736bc42f6d2353868)]: + - @tanstack/ai@1.12.0 + - @tanstack/ai-client@1.5.0 + ## 1.1.0 ### Minor Changes diff --git a/packages/ai-preact/package.json b/packages/ai-preact/package.json index 75a9d78554..d5908ca1f8 100644 --- a/packages/ai-preact/package.json +++ b/packages/ai-preact/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/ai-preact", - "version": "1.1.0", + "version": "1.2.0", "description": "Preact hooks for TanStack AI streaming chat and typed messages.", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/ai-react/CHANGELOG.md b/packages/ai-react/CHANGELOG.md index 6e52029c78..211ea1cf70 100644 --- a/packages/ai-react/CHANGELOG.md +++ b/packages/ai-react/CHANGELOG.md @@ -1,5 +1,36 @@ # @tanstack/ai-react +## 1.4.0 + +### Minor Changes + +- [#2258](https://github.com/TanStack/ai/pull/2258) [`518dee9`](https://github.com/TanStack/ai/commit/518dee986e84e1869008c67f9e4841832777c062) - Export `StreamHttpError` from `@tanstack/ai-client` and re-export it from the framework packages. The fetch and XHR chat transports throw this class when the response status is not 2xx. It has `status`, and `retryAfterMs` when the response has a valid `Retry-After` header. Import it to check the status with `instanceof` in `onError` instead of parsing the error message. + +- [#2239](https://github.com/TanStack/ai/pull/2239) [`7ba3926`](https://github.com/TanStack/ai/commit/7ba3926652519bc0e1ea74e660ef7d0a0d6a37a6) - Add OpenAI GPT-Live voice (`gpt-live-1` and `gpt-live-1.1`). On the server, `openaiLiveSession()` creates the session. In the browser, `openaiLive()` connects over WebRTC. + + GPT-Live has no browser token, so this release adds a relay path: + - `realtimeSession()` in `@tanstack/ai` takes the WebRTC offer from the browser, gives it to a `RealtimeSessionAdapter`, and returns the answer. + - `RealtimeRelayAdapter` (`kind: 'relay'`) is a browser adapter that connects through your server. + - `RealtimeClient`, `useRealtimeChat`, and `createRealtimeChat` take `createSession` in place of `getToken` for a relay adapter. + + The options type is now a union of the token form and the relay form. If you read the type of `getToken` from it (for example `UseRealtimeChatOptions['getToken']`), the type now includes `undefined`. + + `RealtimeClient.updateSession()` now sends `providerOptions` to the connection. Before, the client kept `providerOptions` but did not send them. + + Realtime adapters now get `RealtimeConnectOptions` (`abortSignal`, `autoCapture`) in `connect()`. With `autoCapture: false`, `openaiRealtime()` and `openaiLive()` open the microphone on the first `startAudioCapture()`, not on connect. + + `RealtimeClient` sends a tool result only to the connection that asked for it. After a reconnect, a result from the old session is dropped. + + `createSession` receives the connect `AbortSignal` as its second argument. Pass it to the session request so a cancelled connect does not open a provider session. + + A delegated response that fails, or ends before it is complete, reports an error. The client does not continue that turn. + +### Patch Changes + +- Updated dependencies [[`afed460`](https://github.com/TanStack/ai/commit/afed460573b0e9a2d3672bbe777ed5ec6c28b6fc), [`afed460`](https://github.com/TanStack/ai/commit/afed460573b0e9a2d3672bbe777ed5ec6c28b6fc), [`518dee9`](https://github.com/TanStack/ai/commit/518dee986e84e1869008c67f9e4841832777c062), [`a88ee8d`](https://github.com/TanStack/ai/commit/a88ee8d963aa3693064282b2d7e19640472b484c), [`7ba3926`](https://github.com/TanStack/ai/commit/7ba3926652519bc0e1ea74e660ef7d0a0d6a37a6), [`1c55fd5`](https://github.com/TanStack/ai/commit/1c55fd51d2fcafb84f59295736bc42f6d2353868), [`2d89b06`](https://github.com/TanStack/ai/commit/2d89b062d92a3eef44406c015bf6d0ff2b47e6a4), [`a7501eb`](https://github.com/TanStack/ai/commit/a7501eb0a2223b079076bd106c257803742b0e6c), [`1c55fd5`](https://github.com/TanStack/ai/commit/1c55fd51d2fcafb84f59295736bc42f6d2353868)]: + - @tanstack/ai@1.12.0 + - @tanstack/ai-client@1.5.0 + ## 1.3.0 ### Minor Changes diff --git a/packages/ai-react/package.json b/packages/ai-react/package.json index e55a0f43f7..4128b4f80d 100644 --- a/packages/ai-react/package.json +++ b/packages/ai-react/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/ai-react", - "version": "1.3.0", + "version": "1.4.0", "description": "React hooks for TanStack AI streaming chat, realtime voice, structured outputs, and media generation.", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/ai-remix/CHANGELOG.md b/packages/ai-remix/CHANGELOG.md index a651dd96db..f22a9cc783 100644 --- a/packages/ai-remix/CHANGELOG.md +++ b/packages/ai-remix/CHANGELOG.md @@ -1,5 +1,36 @@ # @tanstack/ai-remix +## 1.4.0 + +### Minor Changes + +- [#2258](https://github.com/TanStack/ai/pull/2258) [`518dee9`](https://github.com/TanStack/ai/commit/518dee986e84e1869008c67f9e4841832777c062) - Export `StreamHttpError` from `@tanstack/ai-client` and re-export it from the framework packages. The fetch and XHR chat transports throw this class when the response status is not 2xx. It has `status`, and `retryAfterMs` when the response has a valid `Retry-After` header. Import it to check the status with `instanceof` in `onError` instead of parsing the error message. + +- [#2239](https://github.com/TanStack/ai/pull/2239) [`7ba3926`](https://github.com/TanStack/ai/commit/7ba3926652519bc0e1ea74e660ef7d0a0d6a37a6) - Add OpenAI GPT-Live voice (`gpt-live-1` and `gpt-live-1.1`). On the server, `openaiLiveSession()` creates the session. In the browser, `openaiLive()` connects over WebRTC. + + GPT-Live has no browser token, so this release adds a relay path: + - `realtimeSession()` in `@tanstack/ai` takes the WebRTC offer from the browser, gives it to a `RealtimeSessionAdapter`, and returns the answer. + - `RealtimeRelayAdapter` (`kind: 'relay'`) is a browser adapter that connects through your server. + - `RealtimeClient`, `useRealtimeChat`, and `createRealtimeChat` take `createSession` in place of `getToken` for a relay adapter. + + The options type is now a union of the token form and the relay form. If you read the type of `getToken` from it (for example `UseRealtimeChatOptions['getToken']`), the type now includes `undefined`. + + `RealtimeClient.updateSession()` now sends `providerOptions` to the connection. Before, the client kept `providerOptions` but did not send them. + + Realtime adapters now get `RealtimeConnectOptions` (`abortSignal`, `autoCapture`) in `connect()`. With `autoCapture: false`, `openaiRealtime()` and `openaiLive()` open the microphone on the first `startAudioCapture()`, not on connect. + + `RealtimeClient` sends a tool result only to the connection that asked for it. After a reconnect, a result from the old session is dropped. + + `createSession` receives the connect `AbortSignal` as its second argument. Pass it to the session request so a cancelled connect does not open a provider session. + + A delegated response that fails, or ends before it is complete, reports an error. The client does not continue that turn. + +### Patch Changes + +- Updated dependencies [[`afed460`](https://github.com/TanStack/ai/commit/afed460573b0e9a2d3672bbe777ed5ec6c28b6fc), [`afed460`](https://github.com/TanStack/ai/commit/afed460573b0e9a2d3672bbe777ed5ec6c28b6fc), [`518dee9`](https://github.com/TanStack/ai/commit/518dee986e84e1869008c67f9e4841832777c062), [`a88ee8d`](https://github.com/TanStack/ai/commit/a88ee8d963aa3693064282b2d7e19640472b484c), [`7ba3926`](https://github.com/TanStack/ai/commit/7ba3926652519bc0e1ea74e660ef7d0a0d6a37a6), [`1c55fd5`](https://github.com/TanStack/ai/commit/1c55fd51d2fcafb84f59295736bc42f6d2353868), [`2d89b06`](https://github.com/TanStack/ai/commit/2d89b062d92a3eef44406c015bf6d0ff2b47e6a4), [`a7501eb`](https://github.com/TanStack/ai/commit/a7501eb0a2223b079076bd106c257803742b0e6c), [`1c55fd5`](https://github.com/TanStack/ai/commit/1c55fd51d2fcafb84f59295736bc42f6d2353868)]: + - @tanstack/ai@1.12.0 + - @tanstack/ai-client@1.5.0 + ## 1.3.0 ### Minor Changes diff --git a/packages/ai-remix/package.json b/packages/ai-remix/package.json index 4cc295aeac..184da05656 100644 --- a/packages/ai-remix/package.json +++ b/packages/ai-remix/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/ai-remix", - "version": "1.3.0", + "version": "1.4.0", "description": "Remix 3 bindings for TanStack AI streaming chat, structured outputs, and media generation.", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/ai-sandbox/CHANGELOG.md b/packages/ai-sandbox/CHANGELOG.md index 43cc756d72..b88e6e260c 100644 --- a/packages/ai-sandbox/CHANGELOG.md +++ b/packages/ai-sandbox/CHANGELOG.md @@ -1,5 +1,15 @@ # @tanstack/ai-sandbox +## 1.7.1 + +### Patch Changes + +- Updated dependencies [[`afed460`](https://github.com/TanStack/ai/commit/afed460573b0e9a2d3672bbe777ed5ec6c28b6fc), [`afed460`](https://github.com/TanStack/ai/commit/afed460573b0e9a2d3672bbe777ed5ec6c28b6fc), [`014da3a`](https://github.com/TanStack/ai/commit/014da3a4ca8bfbfaadad8423e2749a9ce5564187), [`a88ee8d`](https://github.com/TanStack/ai/commit/a88ee8d963aa3693064282b2d7e19640472b484c), [`7ba3926`](https://github.com/TanStack/ai/commit/7ba3926652519bc0e1ea74e660ef7d0a0d6a37a6), [`1c55fd5`](https://github.com/TanStack/ai/commit/1c55fd51d2fcafb84f59295736bc42f6d2353868), [`2d89b06`](https://github.com/TanStack/ai/commit/2d89b062d92a3eef44406c015bf6d0ff2b47e6a4), [`a7501eb`](https://github.com/TanStack/ai/commit/a7501eb0a2223b079076bd106c257803742b0e6c), [`1c55fd5`](https://github.com/TanStack/ai/commit/1c55fd51d2fcafb84f59295736bc42f6d2353868)]: + - @tanstack/ai@1.12.0 + - @tanstack/ai-harness@0.7.0 + - @tanstack/ai-persistence@1.2.0 + - @tanstack/ai-skills@1.0.6 + ## 1.7.0 ### Minor Changes diff --git a/packages/ai-sandbox/package.json b/packages/ai-sandbox/package.json index 3bd39675a4..93467b6468 100644 --- a/packages/ai-sandbox/package.json +++ b/packages/ai-sandbox/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/ai-sandbox", - "version": "1.7.0", + "version": "1.7.1", "description": "Provider-agnostic sandbox layer for TanStack AI — run harness adapters inside isolated sandboxes (defineSandbox, defineWorkspace, withSandbox) with a uniform SandboxHandle, workspace bootstrap, policy, and resumable lifecycle.", "author": "", "license": "MIT", diff --git a/packages/ai-secure-mcp/CHANGELOG.md b/packages/ai-secure-mcp/CHANGELOG.md new file mode 100644 index 0000000000..c7547c9882 --- /dev/null +++ b/packages/ai-secure-mcp/CHANGELOG.md @@ -0,0 +1,13 @@ +# @tanstack/ai-secure-mcp + +## 1.2.0 + +### Minor Changes + +- [#2157](https://github.com/TanStack/ai/pull/2157) [`9c1584d`](https://github.com/TanStack/ai/commit/9c1584db1eac57ec4d7c67e0af57cfd29a6b1a6c) - Add `@tanstack/ai-secure-mcp`, a security envelope around `createMCPServer` for self-hosting an MCP server on the internet. `createSecureMcpServer` wraps your tools with hashed-token bearer auth, scopes and a per-client target allowlist, a deny-by-default egress helper a tool opts into (it is not an enforced network boundary — a tool that calls global `fetch` still reaches the network), a per-client sliding-window rate limit, a redacted append-only JSONL audit log, a pluggable tripwire notifier (`ntfyNotifier`, `webhookNotifier`, `silentNotifier`), and two-phase propose/confirm approval. A go-live preflight refuses a public Tailscale funnel while a secure default is off (unhashed token, audit off, or notifier off or silent). + +### Patch Changes + +- Updated dependencies [[`afed460`](https://github.com/TanStack/ai/commit/afed460573b0e9a2d3672bbe777ed5ec6c28b6fc), [`eae0c44`](https://github.com/TanStack/ai/commit/eae0c44012367b4548ec2f88845eb45be457b985), [`afed460`](https://github.com/TanStack/ai/commit/afed460573b0e9a2d3672bbe777ed5ec6c28b6fc), [`a88ee8d`](https://github.com/TanStack/ai/commit/a88ee8d963aa3693064282b2d7e19640472b484c), [`7ba3926`](https://github.com/TanStack/ai/commit/7ba3926652519bc0e1ea74e660ef7d0a0d6a37a6), [`1c55fd5`](https://github.com/TanStack/ai/commit/1c55fd51d2fcafb84f59295736bc42f6d2353868), [`2d89b06`](https://github.com/TanStack/ai/commit/2d89b062d92a3eef44406c015bf6d0ff2b47e6a4), [`a7501eb`](https://github.com/TanStack/ai/commit/a7501eb0a2223b079076bd106c257803742b0e6c), [`1c55fd5`](https://github.com/TanStack/ai/commit/1c55fd51d2fcafb84f59295736bc42f6d2353868)]: + - @tanstack/ai@1.12.0 + - @tanstack/ai-mcp@1.3.4 diff --git a/packages/ai-secure-mcp/package.json b/packages/ai-secure-mcp/package.json index 2cf8f458ed..291afdea95 100644 --- a/packages/ai-secure-mcp/package.json +++ b/packages/ai-secure-mcp/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/ai-secure-mcp", - "version": "1.1.0", + "version": "1.2.0", "description": "Security envelope for self-hosting a TanStack AI MCP server: hashed-token auth, scopes, deny-by-default egress, rate limits, redacted audit, a tripwire notifier, and two-phase approval.", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/ai-skills/CHANGELOG.md b/packages/ai-skills/CHANGELOG.md index 4d99feb625..a413d60be4 100644 --- a/packages/ai-skills/CHANGELOG.md +++ b/packages/ai-skills/CHANGELOG.md @@ -1,5 +1,13 @@ # @tanstack/ai-skills +## 1.0.6 + +### Patch Changes + +- Updated dependencies [[`afed460`](https://github.com/TanStack/ai/commit/afed460573b0e9a2d3672bbe777ed5ec6c28b6fc), [`afed460`](https://github.com/TanStack/ai/commit/afed460573b0e9a2d3672bbe777ed5ec6c28b6fc), [`014da3a`](https://github.com/TanStack/ai/commit/014da3a4ca8bfbfaadad8423e2749a9ce5564187), [`a88ee8d`](https://github.com/TanStack/ai/commit/a88ee8d963aa3693064282b2d7e19640472b484c), [`7ba3926`](https://github.com/TanStack/ai/commit/7ba3926652519bc0e1ea74e660ef7d0a0d6a37a6), [`1c55fd5`](https://github.com/TanStack/ai/commit/1c55fd51d2fcafb84f59295736bc42f6d2353868), [`2d89b06`](https://github.com/TanStack/ai/commit/2d89b062d92a3eef44406c015bf6d0ff2b47e6a4), [`a7501eb`](https://github.com/TanStack/ai/commit/a7501eb0a2223b079076bd106c257803742b0e6c), [`1c55fd5`](https://github.com/TanStack/ai/commit/1c55fd51d2fcafb84f59295736bc42f6d2353868)]: + - @tanstack/ai@1.12.0 + - @tanstack/ai-harness@0.7.0 + ## 1.0.5 ### Patch Changes diff --git a/packages/ai-skills/package.json b/packages/ai-skills/package.json index 8caf84fe7b..67cbf3d5a0 100644 --- a/packages/ai-skills/package.json +++ b/packages/ai-skills/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/ai-skills", - "version": "1.0.5", + "version": "1.0.6", "description": "Portable Agent Skills (SKILL.md) as a first-class chat() middleware for TanStack AI.", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/ai-solid/CHANGELOG.md b/packages/ai-solid/CHANGELOG.md index 635967554c..77bba39734 100644 --- a/packages/ai-solid/CHANGELOG.md +++ b/packages/ai-solid/CHANGELOG.md @@ -1,5 +1,17 @@ # @tanstack/ai-solid +## 1.4.0 + +### Minor Changes + +- [#2258](https://github.com/TanStack/ai/pull/2258) [`518dee9`](https://github.com/TanStack/ai/commit/518dee986e84e1869008c67f9e4841832777c062) - Export `StreamHttpError` from `@tanstack/ai-client` and re-export it from the framework packages. The fetch and XHR chat transports throw this class when the response status is not 2xx. It has `status`, and `retryAfterMs` when the response has a valid `Retry-After` header. Import it to check the status with `instanceof` in `onError` instead of parsing the error message. + +### Patch Changes + +- Updated dependencies [[`afed460`](https://github.com/TanStack/ai/commit/afed460573b0e9a2d3672bbe777ed5ec6c28b6fc), [`afed460`](https://github.com/TanStack/ai/commit/afed460573b0e9a2d3672bbe777ed5ec6c28b6fc), [`518dee9`](https://github.com/TanStack/ai/commit/518dee986e84e1869008c67f9e4841832777c062), [`a88ee8d`](https://github.com/TanStack/ai/commit/a88ee8d963aa3693064282b2d7e19640472b484c), [`7ba3926`](https://github.com/TanStack/ai/commit/7ba3926652519bc0e1ea74e660ef7d0a0d6a37a6), [`1c55fd5`](https://github.com/TanStack/ai/commit/1c55fd51d2fcafb84f59295736bc42f6d2353868), [`2d89b06`](https://github.com/TanStack/ai/commit/2d89b062d92a3eef44406c015bf6d0ff2b47e6a4), [`a7501eb`](https://github.com/TanStack/ai/commit/a7501eb0a2223b079076bd106c257803742b0e6c), [`1c55fd5`](https://github.com/TanStack/ai/commit/1c55fd51d2fcafb84f59295736bc42f6d2353868)]: + - @tanstack/ai@1.12.0 + - @tanstack/ai-client@1.5.0 + ## 1.3.0 ### Minor Changes diff --git a/packages/ai-solid/package.json b/packages/ai-solid/package.json index 153593675f..0b788cf769 100644 --- a/packages/ai-solid/package.json +++ b/packages/ai-solid/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/ai-solid", - "version": "1.3.0", + "version": "1.4.0", "description": "Solid hooks for TanStack AI streaming chat, structured outputs, and media generation.", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/ai-svelte/CHANGELOG.md b/packages/ai-svelte/CHANGELOG.md index 0f69d462ce..dae36ed020 100644 --- a/packages/ai-svelte/CHANGELOG.md +++ b/packages/ai-svelte/CHANGELOG.md @@ -1,5 +1,17 @@ # @tanstack/ai-svelte +## 1.4.0 + +### Minor Changes + +- [#2258](https://github.com/TanStack/ai/pull/2258) [`518dee9`](https://github.com/TanStack/ai/commit/518dee986e84e1869008c67f9e4841832777c062) - Export `StreamHttpError` from `@tanstack/ai-client` and re-export it from the framework packages. The fetch and XHR chat transports throw this class when the response status is not 2xx. It has `status`, and `retryAfterMs` when the response has a valid `Retry-After` header. Import it to check the status with `instanceof` in `onError` instead of parsing the error message. + +### Patch Changes + +- Updated dependencies [[`afed460`](https://github.com/TanStack/ai/commit/afed460573b0e9a2d3672bbe777ed5ec6c28b6fc), [`afed460`](https://github.com/TanStack/ai/commit/afed460573b0e9a2d3672bbe777ed5ec6c28b6fc), [`518dee9`](https://github.com/TanStack/ai/commit/518dee986e84e1869008c67f9e4841832777c062), [`a88ee8d`](https://github.com/TanStack/ai/commit/a88ee8d963aa3693064282b2d7e19640472b484c), [`7ba3926`](https://github.com/TanStack/ai/commit/7ba3926652519bc0e1ea74e660ef7d0a0d6a37a6), [`1c55fd5`](https://github.com/TanStack/ai/commit/1c55fd51d2fcafb84f59295736bc42f6d2353868), [`2d89b06`](https://github.com/TanStack/ai/commit/2d89b062d92a3eef44406c015bf6d0ff2b47e6a4), [`a7501eb`](https://github.com/TanStack/ai/commit/a7501eb0a2223b079076bd106c257803742b0e6c), [`1c55fd5`](https://github.com/TanStack/ai/commit/1c55fd51d2fcafb84f59295736bc42f6d2353868)]: + - @tanstack/ai@1.12.0 + - @tanstack/ai-client@1.5.0 + ## 1.3.0 ### Minor Changes diff --git a/packages/ai-svelte/package.json b/packages/ai-svelte/package.json index 12efef58c7..156eed3448 100644 --- a/packages/ai-svelte/package.json +++ b/packages/ai-svelte/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/ai-svelte", - "version": "1.3.0", + "version": "1.4.0", "description": "Svelte 5 bindings for TanStack AI streaming chat, structured outputs, and media generation.", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/ai-tripo/CHANGELOG.md b/packages/ai-tripo/CHANGELOG.md index 42ec718304..f22f4a54f0 100644 --- a/packages/ai-tripo/CHANGELOG.md +++ b/packages/ai-tripo/CHANGELOG.md @@ -1,5 +1,36 @@ # @tanstack/ai-tripo +## 0.3.0 + +### Minor Changes + +- [#2254](https://github.com/TanStack/ai/pull/2254) [`afed460`](https://github.com/TanStack/ai/commit/afed460573b0e9a2d3672bbe777ed5ec6c28b6fc) - Every first-party adapter takes `defaultModelOptions`, of every kind: text, embedding, image, speech, transcription, audio, voice, video, live video, 3D model, 3D motion, world, rerank, summarize, and evaluate. Reactor, and the Gemini and OpenRouter evaluate adapters, have no model options to send, so they do not take it. Each activity (`chat()`, `embed()`, `generateImage()`, `generateSpeech()`, and the others) merges them under the `modelOptions` of each call, one level deep. A key that the call sets replaces the default key in full. A call key set to `undefined` keeps the default. The middleware, the devtools events or logs, and the adapter all get the merged value. + + ```ts + const adapter = openaiImage('gpt-image-2.6-flare', { + defaultModelOptions: { quality: 'high', output_format: 'webp' }, + }) + ``` + + `summarize()` with a text-backed summarize adapter applies the `defaultModelOptions` of the wrapped text adapter. A `temperature` in those defaults replaces the built-in summarize temperature. A per-call `maxLength` replaces a token limit that only comes from the defaults. + + The OpenAI, Cloudflare, Ollaya, and TypeSafe evaluate adapters now send `modelOptions` in the request. Before, they did not send them. + + `ollamaText()`, `ollamaEmbedding()`, `tripo3dModel()`, and the summarize factories of every text provider take `defaultModelOptions` too. + + `ai-fal`: an explicit `size` on `generateImage()` or `generateVideo()` now replaces `image_size`, `aspect_ratio`, or `resolution` in `modelOptions`. + + `ai-uthana`: the `defaults` config option is deprecated. Use `defaultModelOptions`. + + `ai-ollama`: for a model name that is not in the model list, `modelOptions` no longer accepts `model`. The adapter sets the model. + + Custom adapters: each `Base*Adapter` class in `@tanstack/ai/adapters` takes `defaultModelOptions` in its constructor config and stores it. Pass it to `super()`. Do not declare the field again in the subclass. `DefaultModelOptionsConfig` is the config type to extend. + +### Patch Changes + +- Updated dependencies [[`afed460`](https://github.com/TanStack/ai/commit/afed460573b0e9a2d3672bbe777ed5ec6c28b6fc), [`afed460`](https://github.com/TanStack/ai/commit/afed460573b0e9a2d3672bbe777ed5ec6c28b6fc), [`a88ee8d`](https://github.com/TanStack/ai/commit/a88ee8d963aa3693064282b2d7e19640472b484c), [`7ba3926`](https://github.com/TanStack/ai/commit/7ba3926652519bc0e1ea74e660ef7d0a0d6a37a6), [`1c55fd5`](https://github.com/TanStack/ai/commit/1c55fd51d2fcafb84f59295736bc42f6d2353868), [`2d89b06`](https://github.com/TanStack/ai/commit/2d89b062d92a3eef44406c015bf6d0ff2b47e6a4), [`a7501eb`](https://github.com/TanStack/ai/commit/a7501eb0a2223b079076bd106c257803742b0e6c), [`1c55fd5`](https://github.com/TanStack/ai/commit/1c55fd51d2fcafb84f59295736bc42f6d2353868)]: + - @tanstack/ai@1.12.0 + ## 0.2.0 ### Minor Changes diff --git a/packages/ai-tripo/package.json b/packages/ai-tripo/package.json index bc41a62cf5..6135d42e99 100644 --- a/packages/ai-tripo/package.json +++ b/packages/ai-tripo/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/ai-tripo", - "version": "0.2.0", + "version": "0.3.0", "description": "Tripo adapter for TanStack AI 3D model generation.", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/ai-typesafe/CHANGELOG.md b/packages/ai-typesafe/CHANGELOG.md index e1ac4f17be..c9254482fa 100644 --- a/packages/ai-typesafe/CHANGELOG.md +++ b/packages/ai-typesafe/CHANGELOG.md @@ -1,5 +1,36 @@ # @tanstack/ai-typesafe +## 1.1.0 + +### Minor Changes + +- [#2254](https://github.com/TanStack/ai/pull/2254) [`afed460`](https://github.com/TanStack/ai/commit/afed460573b0e9a2d3672bbe777ed5ec6c28b6fc) - Every first-party adapter takes `defaultModelOptions`, of every kind: text, embedding, image, speech, transcription, audio, voice, video, live video, 3D model, 3D motion, world, rerank, summarize, and evaluate. Reactor, and the Gemini and OpenRouter evaluate adapters, have no model options to send, so they do not take it. Each activity (`chat()`, `embed()`, `generateImage()`, `generateSpeech()`, and the others) merges them under the `modelOptions` of each call, one level deep. A key that the call sets replaces the default key in full. A call key set to `undefined` keeps the default. The middleware, the devtools events or logs, and the adapter all get the merged value. + + ```ts + const adapter = openaiImage('gpt-image-2.6-flare', { + defaultModelOptions: { quality: 'high', output_format: 'webp' }, + }) + ``` + + `summarize()` with a text-backed summarize adapter applies the `defaultModelOptions` of the wrapped text adapter. A `temperature` in those defaults replaces the built-in summarize temperature. A per-call `maxLength` replaces a token limit that only comes from the defaults. + + The OpenAI, Cloudflare, Ollaya, and TypeSafe evaluate adapters now send `modelOptions` in the request. Before, they did not send them. + + `ollamaText()`, `ollamaEmbedding()`, `tripo3dModel()`, and the summarize factories of every text provider take `defaultModelOptions` too. + + `ai-fal`: an explicit `size` on `generateImage()` or `generateVideo()` now replaces `image_size`, `aspect_ratio`, or `resolution` in `modelOptions`. + + `ai-uthana`: the `defaults` config option is deprecated. Use `defaultModelOptions`. + + `ai-ollama`: for a model name that is not in the model list, `modelOptions` no longer accepts `model`. The adapter sets the model. + + Custom adapters: each `Base*Adapter` class in `@tanstack/ai/adapters` takes `defaultModelOptions` in its constructor config and stores it. Pass it to `super()`. Do not declare the field again in the subclass. `DefaultModelOptionsConfig` is the config type to extend. + +### Patch Changes + +- Updated dependencies [[`afed460`](https://github.com/TanStack/ai/commit/afed460573b0e9a2d3672bbe777ed5ec6c28b6fc), [`afed460`](https://github.com/TanStack/ai/commit/afed460573b0e9a2d3672bbe777ed5ec6c28b6fc), [`a88ee8d`](https://github.com/TanStack/ai/commit/a88ee8d963aa3693064282b2d7e19640472b484c), [`7ba3926`](https://github.com/TanStack/ai/commit/7ba3926652519bc0e1ea74e660ef7d0a0d6a37a6), [`1c55fd5`](https://github.com/TanStack/ai/commit/1c55fd51d2fcafb84f59295736bc42f6d2353868), [`2d89b06`](https://github.com/TanStack/ai/commit/2d89b062d92a3eef44406c015bf6d0ff2b47e6a4), [`a7501eb`](https://github.com/TanStack/ai/commit/a7501eb0a2223b079076bd106c257803742b0e6c), [`1c55fd5`](https://github.com/TanStack/ai/commit/1c55fd51d2fcafb84f59295736bc42f6d2353868)]: + - @tanstack/ai@1.12.0 + ## 1.0.0 ### Major Changes diff --git a/packages/ai-typesafe/package.json b/packages/ai-typesafe/package.json index 4c5e2efc2b..47dcd8ca46 100644 --- a/packages/ai-typesafe/package.json +++ b/packages/ai-typesafe/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/ai-typesafe", - "version": "1.0.0", + "version": "1.1.0", "description": "TypeSafe Jev adapter for TanStack AI — typed evaluate decisions over HTTP.", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/ai-uthana/CHANGELOG.md b/packages/ai-uthana/CHANGELOG.md index 29b8952df3..e6c3e5b10b 100644 --- a/packages/ai-uthana/CHANGELOG.md +++ b/packages/ai-uthana/CHANGELOG.md @@ -1,5 +1,36 @@ # @tanstack/ai-uthana +## 0.3.0 + +### Minor Changes + +- [#2254](https://github.com/TanStack/ai/pull/2254) [`afed460`](https://github.com/TanStack/ai/commit/afed460573b0e9a2d3672bbe777ed5ec6c28b6fc) - Every first-party adapter takes `defaultModelOptions`, of every kind: text, embedding, image, speech, transcription, audio, voice, video, live video, 3D model, 3D motion, world, rerank, summarize, and evaluate. Reactor, and the Gemini and OpenRouter evaluate adapters, have no model options to send, so they do not take it. Each activity (`chat()`, `embed()`, `generateImage()`, `generateSpeech()`, and the others) merges them under the `modelOptions` of each call, one level deep. A key that the call sets replaces the default key in full. A call key set to `undefined` keeps the default. The middleware, the devtools events or logs, and the adapter all get the merged value. + + ```ts + const adapter = openaiImage('gpt-image-2.6-flare', { + defaultModelOptions: { quality: 'high', output_format: 'webp' }, + }) + ``` + + `summarize()` with a text-backed summarize adapter applies the `defaultModelOptions` of the wrapped text adapter. A `temperature` in those defaults replaces the built-in summarize temperature. A per-call `maxLength` replaces a token limit that only comes from the defaults. + + The OpenAI, Cloudflare, Ollaya, and TypeSafe evaluate adapters now send `modelOptions` in the request. Before, they did not send them. + + `ollamaText()`, `ollamaEmbedding()`, `tripo3dModel()`, and the summarize factories of every text provider take `defaultModelOptions` too. + + `ai-fal`: an explicit `size` on `generateImage()` or `generateVideo()` now replaces `image_size`, `aspect_ratio`, or `resolution` in `modelOptions`. + + `ai-uthana`: the `defaults` config option is deprecated. Use `defaultModelOptions`. + + `ai-ollama`: for a model name that is not in the model list, `modelOptions` no longer accepts `model`. The adapter sets the model. + + Custom adapters: each `Base*Adapter` class in `@tanstack/ai/adapters` takes `defaultModelOptions` in its constructor config and stores it. Pass it to `super()`. Do not declare the field again in the subclass. `DefaultModelOptionsConfig` is the config type to extend. + +### Patch Changes + +- Updated dependencies [[`afed460`](https://github.com/TanStack/ai/commit/afed460573b0e9a2d3672bbe777ed5ec6c28b6fc), [`afed460`](https://github.com/TanStack/ai/commit/afed460573b0e9a2d3672bbe777ed5ec6c28b6fc), [`a88ee8d`](https://github.com/TanStack/ai/commit/a88ee8d963aa3693064282b2d7e19640472b484c), [`7ba3926`](https://github.com/TanStack/ai/commit/7ba3926652519bc0e1ea74e660ef7d0a0d6a37a6), [`1c55fd5`](https://github.com/TanStack/ai/commit/1c55fd51d2fcafb84f59295736bc42f6d2353868), [`2d89b06`](https://github.com/TanStack/ai/commit/2d89b062d92a3eef44406c015bf6d0ff2b47e6a4), [`a7501eb`](https://github.com/TanStack/ai/commit/a7501eb0a2223b079076bd106c257803742b0e6c), [`1c55fd5`](https://github.com/TanStack/ai/commit/1c55fd51d2fcafb84f59295736bc42f6d2353868)]: + - @tanstack/ai@1.12.0 + ## 0.2.0 ### Minor Changes diff --git a/packages/ai-uthana/package.json b/packages/ai-uthana/package.json index f21b9d8079..27c3a12abc 100644 --- a/packages/ai-uthana/package.json +++ b/packages/ai-uthana/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/ai-uthana", - "version": "0.2.0", + "version": "0.3.0", "description": "Uthana adapter for TanStack AI motion generation: text-to-motion skeletal animation (FBX, GLB) retargeted onto your own characters.", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/ai-vercel-gateway/CHANGELOG.md b/packages/ai-vercel-gateway/CHANGELOG.md index 94949a49ca..6d6cc45f27 100644 --- a/packages/ai-vercel-gateway/CHANGELOG.md +++ b/packages/ai-vercel-gateway/CHANGELOG.md @@ -1,5 +1,37 @@ # @tanstack/ai-vercel-gateway +## 1.2.0 + +### Minor Changes + +- [#2254](https://github.com/TanStack/ai/pull/2254) [`afed460`](https://github.com/TanStack/ai/commit/afed460573b0e9a2d3672bbe777ed5ec6c28b6fc) - Every first-party adapter takes `defaultModelOptions`, of every kind: text, embedding, image, speech, transcription, audio, voice, video, live video, 3D model, 3D motion, world, rerank, summarize, and evaluate. Reactor, and the Gemini and OpenRouter evaluate adapters, have no model options to send, so they do not take it. Each activity (`chat()`, `embed()`, `generateImage()`, `generateSpeech()`, and the others) merges them under the `modelOptions` of each call, one level deep. A key that the call sets replaces the default key in full. A call key set to `undefined` keeps the default. The middleware, the devtools events or logs, and the adapter all get the merged value. + + ```ts + const adapter = openaiImage('gpt-image-2.6-flare', { + defaultModelOptions: { quality: 'high', output_format: 'webp' }, + }) + ``` + + `summarize()` with a text-backed summarize adapter applies the `defaultModelOptions` of the wrapped text adapter. A `temperature` in those defaults replaces the built-in summarize temperature. A per-call `maxLength` replaces a token limit that only comes from the defaults. + + The OpenAI, Cloudflare, Ollaya, and TypeSafe evaluate adapters now send `modelOptions` in the request. Before, they did not send them. + + `ollamaText()`, `ollamaEmbedding()`, `tripo3dModel()`, and the summarize factories of every text provider take `defaultModelOptions` too. + + `ai-fal`: an explicit `size` on `generateImage()` or `generateVideo()` now replaces `image_size`, `aspect_ratio`, or `resolution` in `modelOptions`. + + `ai-uthana`: the `defaults` config option is deprecated. Use `defaultModelOptions`. + + `ai-ollama`: for a model name that is not in the model list, `modelOptions` no longer accepts `model`. The adapter sets the model. + + Custom adapters: each `Base*Adapter` class in `@tanstack/ai/adapters` takes `defaultModelOptions` in its constructor config and stores it. Pass it to `super()`. Do not declare the field again in the subclass. `DefaultModelOptionsConfig` is the config type to extend. + +### Patch Changes + +- Updated dependencies [[`afed460`](https://github.com/TanStack/ai/commit/afed460573b0e9a2d3672bbe777ed5ec6c28b6fc), [`afed460`](https://github.com/TanStack/ai/commit/afed460573b0e9a2d3672bbe777ed5ec6c28b6fc), [`a88ee8d`](https://github.com/TanStack/ai/commit/a88ee8d963aa3693064282b2d7e19640472b484c), [`7ba3926`](https://github.com/TanStack/ai/commit/7ba3926652519bc0e1ea74e660ef7d0a0d6a37a6), [`1c55fd5`](https://github.com/TanStack/ai/commit/1c55fd51d2fcafb84f59295736bc42f6d2353868), [`2d89b06`](https://github.com/TanStack/ai/commit/2d89b062d92a3eef44406c015bf6d0ff2b47e6a4), [`a7501eb`](https://github.com/TanStack/ai/commit/a7501eb0a2223b079076bd106c257803742b0e6c), [`1c55fd5`](https://github.com/TanStack/ai/commit/1c55fd51d2fcafb84f59295736bc42f6d2353868)]: + - @tanstack/ai@1.12.0 + - @tanstack/openai-base@1.2.0 + ## 1.1.3 ### Patch Changes diff --git a/packages/ai-vercel-gateway/package.json b/packages/ai-vercel-gateway/package.json index 315bd1b464..4c303adbc2 100644 --- a/packages/ai-vercel-gateway/package.json +++ b/packages/ai-vercel-gateway/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/ai-vercel-gateway", - "version": "1.1.3", + "version": "1.2.0", "description": "Vercel AI Gateway adapter for TanStack AI chat, embeddings, and image generation.", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/ai-vertex/CHANGELOG.md b/packages/ai-vertex/CHANGELOG.md index 324ed6c417..aad0cde316 100644 --- a/packages/ai-vertex/CHANGELOG.md +++ b/packages/ai-vertex/CHANGELOG.md @@ -1,5 +1,37 @@ # @tanstack/ai-vertex +## 1.1.0 + +### Minor Changes + +- [#2254](https://github.com/TanStack/ai/pull/2254) [`afed460`](https://github.com/TanStack/ai/commit/afed460573b0e9a2d3672bbe777ed5ec6c28b6fc) - Every first-party adapter takes `defaultModelOptions`, of every kind: text, embedding, image, speech, transcription, audio, voice, video, live video, 3D model, 3D motion, world, rerank, summarize, and evaluate. Reactor, and the Gemini and OpenRouter evaluate adapters, have no model options to send, so they do not take it. Each activity (`chat()`, `embed()`, `generateImage()`, `generateSpeech()`, and the others) merges them under the `modelOptions` of each call, one level deep. A key that the call sets replaces the default key in full. A call key set to `undefined` keeps the default. The middleware, the devtools events or logs, and the adapter all get the merged value. + + ```ts + const adapter = openaiImage('gpt-image-2.6-flare', { + defaultModelOptions: { quality: 'high', output_format: 'webp' }, + }) + ``` + + `summarize()` with a text-backed summarize adapter applies the `defaultModelOptions` of the wrapped text adapter. A `temperature` in those defaults replaces the built-in summarize temperature. A per-call `maxLength` replaces a token limit that only comes from the defaults. + + The OpenAI, Cloudflare, Ollaya, and TypeSafe evaluate adapters now send `modelOptions` in the request. Before, they did not send them. + + `ollamaText()`, `ollamaEmbedding()`, `tripo3dModel()`, and the summarize factories of every text provider take `defaultModelOptions` too. + + `ai-fal`: an explicit `size` on `generateImage()` or `generateVideo()` now replaces `image_size`, `aspect_ratio`, or `resolution` in `modelOptions`. + + `ai-uthana`: the `defaults` config option is deprecated. Use `defaultModelOptions`. + + `ai-ollama`: for a model name that is not in the model list, `modelOptions` no longer accepts `model`. The adapter sets the model. + + Custom adapters: each `Base*Adapter` class in `@tanstack/ai/adapters` takes `defaultModelOptions` in its constructor config and stores it. Pass it to `super()`. Do not declare the field again in the subclass. `DefaultModelOptionsConfig` is the config type to extend. + +### Patch Changes + +- Updated dependencies [[`afed460`](https://github.com/TanStack/ai/commit/afed460573b0e9a2d3672bbe777ed5ec6c28b6fc), [`afed460`](https://github.com/TanStack/ai/commit/afed460573b0e9a2d3672bbe777ed5ec6c28b6fc), [`4bc0c2b`](https://github.com/TanStack/ai/commit/4bc0c2b375c485c6b5a43dd5d562643f96fbcc93), [`a88ee8d`](https://github.com/TanStack/ai/commit/a88ee8d963aa3693064282b2d7e19640472b484c), [`7ba3926`](https://github.com/TanStack/ai/commit/7ba3926652519bc0e1ea74e660ef7d0a0d6a37a6), [`1c55fd5`](https://github.com/TanStack/ai/commit/1c55fd51d2fcafb84f59295736bc42f6d2353868), [`2d89b06`](https://github.com/TanStack/ai/commit/2d89b062d92a3eef44406c015bf6d0ff2b47e6a4), [`a7501eb`](https://github.com/TanStack/ai/commit/a7501eb0a2223b079076bd106c257803742b0e6c), [`1c55fd5`](https://github.com/TanStack/ai/commit/1c55fd51d2fcafb84f59295736bc42f6d2353868)]: + - @tanstack/ai@1.12.0 + - @tanstack/ai-gemini@1.4.0 + ## 1.0.1 ### Patch Changes diff --git a/packages/ai-vertex/package.json b/packages/ai-vertex/package.json index 0a097a1ad5..a6aac5d841 100644 --- a/packages/ai-vertex/package.json +++ b/packages/ai-vertex/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/ai-vertex", - "version": "1.0.1", + "version": "1.1.0", "description": "Google Vertex AI adapter for TanStack AI. Runs Gemini models on Vertex with regional endpoints and Google Cloud credentials.", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/ai-vue/CHANGELOG.md b/packages/ai-vue/CHANGELOG.md index 034d39ea2c..7a3a583436 100644 --- a/packages/ai-vue/CHANGELOG.md +++ b/packages/ai-vue/CHANGELOG.md @@ -1,5 +1,17 @@ # @tanstack/ai-vue +## 1.4.0 + +### Minor Changes + +- [#2258](https://github.com/TanStack/ai/pull/2258) [`518dee9`](https://github.com/TanStack/ai/commit/518dee986e84e1869008c67f9e4841832777c062) - Export `StreamHttpError` from `@tanstack/ai-client` and re-export it from the framework packages. The fetch and XHR chat transports throw this class when the response status is not 2xx. It has `status`, and `retryAfterMs` when the response has a valid `Retry-After` header. Import it to check the status with `instanceof` in `onError` instead of parsing the error message. + +### Patch Changes + +- Updated dependencies [[`afed460`](https://github.com/TanStack/ai/commit/afed460573b0e9a2d3672bbe777ed5ec6c28b6fc), [`afed460`](https://github.com/TanStack/ai/commit/afed460573b0e9a2d3672bbe777ed5ec6c28b6fc), [`518dee9`](https://github.com/TanStack/ai/commit/518dee986e84e1869008c67f9e4841832777c062), [`a88ee8d`](https://github.com/TanStack/ai/commit/a88ee8d963aa3693064282b2d7e19640472b484c), [`7ba3926`](https://github.com/TanStack/ai/commit/7ba3926652519bc0e1ea74e660ef7d0a0d6a37a6), [`1c55fd5`](https://github.com/TanStack/ai/commit/1c55fd51d2fcafb84f59295736bc42f6d2353868), [`2d89b06`](https://github.com/TanStack/ai/commit/2d89b062d92a3eef44406c015bf6d0ff2b47e6a4), [`a7501eb`](https://github.com/TanStack/ai/commit/a7501eb0a2223b079076bd106c257803742b0e6c), [`1c55fd5`](https://github.com/TanStack/ai/commit/1c55fd51d2fcafb84f59295736bc42f6d2353868)]: + - @tanstack/ai@1.12.0 + - @tanstack/ai-client@1.5.0 + ## 1.3.0 ### Minor Changes diff --git a/packages/ai-vue/package.json b/packages/ai-vue/package.json index 7af16a47f5..46e743f5a3 100644 --- a/packages/ai-vue/package.json +++ b/packages/ai-vue/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/ai-vue", - "version": "1.3.0", + "version": "1.4.0", "description": "Vue composables for TanStack AI streaming chat, structured outputs, and media generation.", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/ai-worldlabs/CHANGELOG.md b/packages/ai-worldlabs/CHANGELOG.md index 4f8361889e..a074581406 100644 --- a/packages/ai-worldlabs/CHANGELOG.md +++ b/packages/ai-worldlabs/CHANGELOG.md @@ -1,5 +1,36 @@ # @tanstack/ai-worldlabs +## 1.1.0 + +### Minor Changes + +- [#2254](https://github.com/TanStack/ai/pull/2254) [`afed460`](https://github.com/TanStack/ai/commit/afed460573b0e9a2d3672bbe777ed5ec6c28b6fc) - Every first-party adapter takes `defaultModelOptions`, of every kind: text, embedding, image, speech, transcription, audio, voice, video, live video, 3D model, 3D motion, world, rerank, summarize, and evaluate. Reactor, and the Gemini and OpenRouter evaluate adapters, have no model options to send, so they do not take it. Each activity (`chat()`, `embed()`, `generateImage()`, `generateSpeech()`, and the others) merges them under the `modelOptions` of each call, one level deep. A key that the call sets replaces the default key in full. A call key set to `undefined` keeps the default. The middleware, the devtools events or logs, and the adapter all get the merged value. + + ```ts + const adapter = openaiImage('gpt-image-2.6-flare', { + defaultModelOptions: { quality: 'high', output_format: 'webp' }, + }) + ``` + + `summarize()` with a text-backed summarize adapter applies the `defaultModelOptions` of the wrapped text adapter. A `temperature` in those defaults replaces the built-in summarize temperature. A per-call `maxLength` replaces a token limit that only comes from the defaults. + + The OpenAI, Cloudflare, Ollaya, and TypeSafe evaluate adapters now send `modelOptions` in the request. Before, they did not send them. + + `ollamaText()`, `ollamaEmbedding()`, `tripo3dModel()`, and the summarize factories of every text provider take `defaultModelOptions` too. + + `ai-fal`: an explicit `size` on `generateImage()` or `generateVideo()` now replaces `image_size`, `aspect_ratio`, or `resolution` in `modelOptions`. + + `ai-uthana`: the `defaults` config option is deprecated. Use `defaultModelOptions`. + + `ai-ollama`: for a model name that is not in the model list, `modelOptions` no longer accepts `model`. The adapter sets the model. + + Custom adapters: each `Base*Adapter` class in `@tanstack/ai/adapters` takes `defaultModelOptions` in its constructor config and stores it. Pass it to `super()`. Do not declare the field again in the subclass. `DefaultModelOptionsConfig` is the config type to extend. + +### Patch Changes + +- Updated dependencies [[`afed460`](https://github.com/TanStack/ai/commit/afed460573b0e9a2d3672bbe777ed5ec6c28b6fc), [`afed460`](https://github.com/TanStack/ai/commit/afed460573b0e9a2d3672bbe777ed5ec6c28b6fc), [`a88ee8d`](https://github.com/TanStack/ai/commit/a88ee8d963aa3693064282b2d7e19640472b484c), [`7ba3926`](https://github.com/TanStack/ai/commit/7ba3926652519bc0e1ea74e660ef7d0a0d6a37a6), [`1c55fd5`](https://github.com/TanStack/ai/commit/1c55fd51d2fcafb84f59295736bc42f6d2353868), [`2d89b06`](https://github.com/TanStack/ai/commit/2d89b062d92a3eef44406c015bf6d0ff2b47e6a4), [`a7501eb`](https://github.com/TanStack/ai/commit/a7501eb0a2223b079076bd106c257803742b0e6c), [`1c55fd5`](https://github.com/TanStack/ai/commit/1c55fd51d2fcafb84f59295736bc42f6d2353868)]: + - @tanstack/ai@1.12.0 + ## 1.0.0 ### Major Changes diff --git a/packages/ai-worldlabs/package.json b/packages/ai-worldlabs/package.json index fc52e670ca..580e36b858 100644 --- a/packages/ai-worldlabs/package.json +++ b/packages/ai-worldlabs/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/ai-worldlabs", - "version": "1.0.0", + "version": "1.1.0", "description": "World Labs adapter for TanStack AI world generation (Marble).", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/ai/CHANGELOG.md b/packages/ai/CHANGELOG.md index f70e8a6e21..5766d3d4c6 100644 --- a/packages/ai/CHANGELOG.md +++ b/packages/ai/CHANGELOG.md @@ -1,5 +1,79 @@ # @tanstack/ai +## 1.12.0 + +### Minor Changes + +- [#2254](https://github.com/TanStack/ai/pull/2254) [`afed460`](https://github.com/TanStack/ai/commit/afed460573b0e9a2d3672bbe777ed5ec6c28b6fc) - Text adapters can carry `defaultModelOptions`. `chat()` merges them under the `modelOptions` of each call, one level deep. A key that the call sets replaces the default key in full. The engine, the middleware, and the adapter all get the merged value. + + `createOpenRouterText()`, `openRouterText()`, `createOpenRouterResponsesText()`, and `openRouterResponsesText()` take a `defaultModelOptions` option, for example to set provider routing for every call: + + ```ts + const adapter = openRouterText('openai/gpt-6.1-sol', { + defaultModelOptions: { + provider: { sort: 'latency', preferredMaxLatency: { p90: 2.5 } }, + }, + }) + ``` + +- [#2254](https://github.com/TanStack/ai/pull/2254) [`afed460`](https://github.com/TanStack/ai/commit/afed460573b0e9a2d3672bbe777ed5ec6c28b6fc) - Every first-party adapter takes `defaultModelOptions`, of every kind: text, embedding, image, speech, transcription, audio, voice, video, live video, 3D model, 3D motion, world, rerank, summarize, and evaluate. Reactor, and the Gemini and OpenRouter evaluate adapters, have no model options to send, so they do not take it. Each activity (`chat()`, `embed()`, `generateImage()`, `generateSpeech()`, and the others) merges them under the `modelOptions` of each call, one level deep. A key that the call sets replaces the default key in full. A call key set to `undefined` keeps the default. The middleware, the devtools events or logs, and the adapter all get the merged value. + + ```ts + const adapter = openaiImage('gpt-image-2.6-flare', { + defaultModelOptions: { quality: 'high', output_format: 'webp' }, + }) + ``` + + `summarize()` with a text-backed summarize adapter applies the `defaultModelOptions` of the wrapped text adapter. A `temperature` in those defaults replaces the built-in summarize temperature. A per-call `maxLength` replaces a token limit that only comes from the defaults. + + The OpenAI, Cloudflare, Ollaya, and TypeSafe evaluate adapters now send `modelOptions` in the request. Before, they did not send them. + + `ollamaText()`, `ollamaEmbedding()`, `tripo3dModel()`, and the summarize factories of every text provider take `defaultModelOptions` too. + + `ai-fal`: an explicit `size` on `generateImage()` or `generateVideo()` now replaces `image_size`, `aspect_ratio`, or `resolution` in `modelOptions`. + + `ai-uthana`: the `defaults` config option is deprecated. Use `defaultModelOptions`. + + `ai-ollama`: for a model name that is not in the model list, `modelOptions` no longer accepts `model`. The adapter sets the model. + + Custom adapters: each `Base*Adapter` class in `@tanstack/ai/adapters` takes `defaultModelOptions` in its constructor config and stores it. Pass it to `super()`. Do not declare the field again in the subclass. `DefaultModelOptionsConfig` is the config type to extend. + +- [#2239](https://github.com/TanStack/ai/pull/2239) [`7ba3926`](https://github.com/TanStack/ai/commit/7ba3926652519bc0e1ea74e660ef7d0a0d6a37a6) - Add OpenAI GPT-Live voice (`gpt-live-1` and `gpt-live-1.1`). On the server, `openaiLiveSession()` creates the session. In the browser, `openaiLive()` connects over WebRTC. + + GPT-Live has no browser token, so this release adds a relay path: + - `realtimeSession()` in `@tanstack/ai` takes the WebRTC offer from the browser, gives it to a `RealtimeSessionAdapter`, and returns the answer. + - `RealtimeRelayAdapter` (`kind: 'relay'`) is a browser adapter that connects through your server. + - `RealtimeClient`, `useRealtimeChat`, and `createRealtimeChat` take `createSession` in place of `getToken` for a relay adapter. + + The options type is now a union of the token form and the relay form. If you read the type of `getToken` from it (for example `UseRealtimeChatOptions['getToken']`), the type now includes `undefined`. + + `RealtimeClient.updateSession()` now sends `providerOptions` to the connection. Before, the client kept `providerOptions` but did not send them. + + Realtime adapters now get `RealtimeConnectOptions` (`abortSignal`, `autoCapture`) in `connect()`. With `autoCapture: false`, `openaiRealtime()` and `openaiLive()` open the microphone on the first `startAudioCapture()`, not on connect. + + `RealtimeClient` sends a tool result only to the connection that asked for it. After a reconnect, a result from the old session is dropped. + + `createSession` receives the connect `AbortSignal` as its second argument. Pass it to the session request so a cancelled connect does not open a provider session. + + A delegated response that fails, or ends before it is complete, reports an error. The client does not continue that turn. + +- [#2179](https://github.com/TanStack/ai/pull/2179) [`1c55fd5`](https://github.com/TanStack/ai/commit/1c55fd51d2fcafb84f59295736bc42f6d2353868) - Add incremental transcription streaming for OpenAI models that support it. + +- [#2242](https://github.com/TanStack/ai/pull/2242) [`2d89b06`](https://github.com/TanStack/ai/commit/2d89b062d92a3eef44406c015bf6d0ff2b47e6a4) - Fix model option types that did not match what the provider accepts. + - `@tanstack/ai`: an adapter can mark `modelOptions` keys that work only with `reasoning: 'off'` (`offOnlyOptions` on its reasoning capability). `chat()`, `ctx.chat()` and `createChatOptions()` then make those keys a type error when `reasoning` is not `'off'` or not set. + - `@tanstack/ai-openai`: on reasoning models (o-series, `gpt-5*`, `gpt-6*`, except `*-chat-latest`), `temperature`, `top_p` and `top_logprobs` type-check only with `reasoning: 'off'`. `o3-deep-research` and `o4-mini-deep-research` have no `'off'` level, so these options are always a type error there. The adapter still drops them at runtime for JS callers. Before, the types accepted them and nothing told you that they were dropped. + - `@tanstack/ai-openai`: `gpt-6.1-terra` (`off` to `max`) and `gpt-6.1-terra-pro` (`low` to `max`) now have their reasoning levels. Before, every `reasoning` value was a type error, and the adapter sent no reasoning effort. + - `@tanstack/ai-openai`: `service_tier` uses the `ServiceTier` type of the OpenAI SDK. It now accepts `'scale'`, `'fast'` and `'ultrafast'`. + - `@tanstack/ai-anthropic`: `claude-opus-5` and `claude-opus-5-5` no longer accept `temperature`, `top_p` or `top_k`. Anthropic returns a 400 for them on these models. + +### Patch Changes + +- [#2300](https://github.com/TanStack/ai/pull/2300) [`a88ee8d`](https://github.com/TanStack/ai/commit/a88ee8d963aa3693064282b2d7e19640472b484c) - `chat({ stream: false }).text` and `streamToText` no longer include the text of a subagent that a tool call started. That text stays in `chunks`, on events that have `subagentRunId`. The text of a subagent that the router picked is still in `text`. + +- [#2308](https://github.com/TanStack/ai/pull/2308) [`a7501eb`](https://github.com/TanStack/ai/commit/a7501eb0a2223b079076bd106c257803742b0e6c) - `StreamProcessor` no longer appends a slice of the accumulated text segment to the message content for each `TEXT_MESSAGE_CONTENT` delta. In V8 such a slice can keep the segment's whole backing string alive, so memory grew with the square of the message length. 3,000 deltas of 16 characters retained about 69 MiB. They now retain about 0.4 MiB. The text that streams out is unchanged. + +- [#2179](https://github.com/TanStack/ai/pull/2179) [`1c55fd5`](https://github.com/TanStack/ai/commit/1c55fd51d2fcafb84f59295736bc42f6d2353868) - Emit a final text delta for streamed transcriptions when the adapter does not provide `transcribeStream`. Report startup cancellation through middleware `onAbort`. + ## 1.11.0 ### Minor Changes diff --git a/packages/ai/package.json b/packages/ai/package.json index e62ebf439c..f6ba0b6f2d 100644 --- a/packages/ai/package.json +++ b/packages/ai/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/ai", - "version": "1.11.0", + "version": "1.12.0", "description": "Type-safe TypeScript AI SDK for streaming chat, tool calling, agents, structured outputs, and multimodal generation.", "author": "Tanner Linsley", "license": "MIT", diff --git a/packages/openai-base/CHANGELOG.md b/packages/openai-base/CHANGELOG.md index 3a4ce5b9c6..3258c3022a 100644 --- a/packages/openai-base/CHANGELOG.md +++ b/packages/openai-base/CHANGELOG.md @@ -1,5 +1,36 @@ # @tanstack/openai-base +## 1.2.0 + +### Minor Changes + +- [#2254](https://github.com/TanStack/ai/pull/2254) [`afed460`](https://github.com/TanStack/ai/commit/afed460573b0e9a2d3672bbe777ed5ec6c28b6fc) - Every first-party adapter takes `defaultModelOptions`, of every kind: text, embedding, image, speech, transcription, audio, voice, video, live video, 3D model, 3D motion, world, rerank, summarize, and evaluate. Reactor, and the Gemini and OpenRouter evaluate adapters, have no model options to send, so they do not take it. Each activity (`chat()`, `embed()`, `generateImage()`, `generateSpeech()`, and the others) merges them under the `modelOptions` of each call, one level deep. A key that the call sets replaces the default key in full. A call key set to `undefined` keeps the default. The middleware, the devtools events or logs, and the adapter all get the merged value. + + ```ts + const adapter = openaiImage('gpt-image-2.6-flare', { + defaultModelOptions: { quality: 'high', output_format: 'webp' }, + }) + ``` + + `summarize()` with a text-backed summarize adapter applies the `defaultModelOptions` of the wrapped text adapter. A `temperature` in those defaults replaces the built-in summarize temperature. A per-call `maxLength` replaces a token limit that only comes from the defaults. + + The OpenAI, Cloudflare, Ollaya, and TypeSafe evaluate adapters now send `modelOptions` in the request. Before, they did not send them. + + `ollamaText()`, `ollamaEmbedding()`, `tripo3dModel()`, and the summarize factories of every text provider take `defaultModelOptions` too. + + `ai-fal`: an explicit `size` on `generateImage()` or `generateVideo()` now replaces `image_size`, `aspect_ratio`, or `resolution` in `modelOptions`. + + `ai-uthana`: the `defaults` config option is deprecated. Use `defaultModelOptions`. + + `ai-ollama`: for a model name that is not in the model list, `modelOptions` no longer accepts `model`. The adapter sets the model. + + Custom adapters: each `Base*Adapter` class in `@tanstack/ai/adapters` takes `defaultModelOptions` in its constructor config and stores it. Pass it to `super()`. Do not declare the field again in the subclass. `DefaultModelOptionsConfig` is the config type to extend. + +### Patch Changes + +- Updated dependencies [[`afed460`](https://github.com/TanStack/ai/commit/afed460573b0e9a2d3672bbe777ed5ec6c28b6fc), [`afed460`](https://github.com/TanStack/ai/commit/afed460573b0e9a2d3672bbe777ed5ec6c28b6fc), [`a88ee8d`](https://github.com/TanStack/ai/commit/a88ee8d963aa3693064282b2d7e19640472b484c), [`7ba3926`](https://github.com/TanStack/ai/commit/7ba3926652519bc0e1ea74e660ef7d0a0d6a37a6), [`1c55fd5`](https://github.com/TanStack/ai/commit/1c55fd51d2fcafb84f59295736bc42f6d2353868), [`2d89b06`](https://github.com/TanStack/ai/commit/2d89b062d92a3eef44406c015bf6d0ff2b47e6a4), [`a7501eb`](https://github.com/TanStack/ai/commit/a7501eb0a2223b079076bd106c257803742b0e6c), [`1c55fd5`](https://github.com/TanStack/ai/commit/1c55fd51d2fcafb84f59295736bc42f6d2353868)]: + - @tanstack/ai@1.12.0 + ## 1.1.3 ### Patch Changes diff --git a/packages/openai-base/package.json b/packages/openai-base/package.json index 6a2cfb845d..56b22b5d03 100644 --- a/packages/openai-base/package.json +++ b/packages/openai-base/package.json @@ -1,6 +1,6 @@ { "name": "@tanstack/openai-base", - "version": "1.1.3", + "version": "1.2.0", "description": "Shared OpenAI SDK base adapters for TanStack AI providers using Chat Completions and Responses APIs.", "author": "Tanner Linsley", "license": "MIT",