Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 0 additions & 33 deletions .changeset/sampling-options-to-model-options.md

This file was deleted.

30 changes: 30 additions & 0 deletions packages/ai-anthropic/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,35 @@
# @tanstack/ai-anthropic

## 0.14.0

### Minor Changes

- [#660](https://github.com/TanStack/ai/pull/660) [`6df32b5`](https://github.com/TanStack/ai/commit/6df32b53026673d159e6df0892ce89effcb5c7b8) - **BREAKING:** Sampling options (`temperature`, `topP`, `maxTokens`) have moved off the root of `chat()` / `ai()` / `generate()` and into provider-native `modelOptions`. There is no longer a generic root-level sampling surface — each provider accepts its own native keys, fully typed per model:
- OpenAI (Responses): `modelOptions: { temperature, top_p, max_output_tokens }`
- Anthropic: `modelOptions: { temperature, top_p, max_tokens }`
- Gemini: `modelOptions: { temperature, topP, maxOutputTokens }`
- Grok: `modelOptions: { temperature, top_p, max_tokens }`
- Groq: `modelOptions: { temperature, top_p, max_completion_tokens }`
- Ollama: `modelOptions: { options: { temperature, top_p, num_predict } }` (nested)
- OpenRouter (chat): `modelOptions: { temperature, topP, maxCompletionTokens }`

Middleware no longer sees `temperature`/`topP`/`maxTokens` as first-class fields on `ChatMiddlewareConfig`; mutate `config.modelOptions` (with the provider-native keys above) instead. `metadata` is unaffected and stays at the root.

The public `OllamaTextProviderOptions` type export has also been removed from `@tanstack/ai-ollama`. `modelOptions` is now typed per model — use the exported `OllamaChatModelOptionsByName` map (indexed by model name) or the underlying `ChatRequest` from the `ollama` SDK for arbitrary model strings.

Migrate automatically with the codemod, which resolves the provider from the adapter and rewrites the keys for you:

```bash
pnpm codemod:move-sampling-to-model-options "src/**/*.{ts,tsx}"
```

See the [Sampling Options migration guide](https://tanstack.com/ai/latest/docs/migration/sampling-options-to-model-options) for details.

### Patch Changes

- Updated dependencies [[`6df32b5`](https://github.com/TanStack/ai/commit/6df32b53026673d159e6df0892ce89effcb5c7b8)]:
- @tanstack/ai@0.27.0

## 0.13.1

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/ai-anthropic/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@tanstack/ai-anthropic",
"version": "0.13.1",
"version": "0.14.0",
"description": "Anthropic Claude adapter for TanStack AI chat, tool calling, thinking, and structured outputs.",
"author": "",
"license": "MIT",
Expand Down
8 changes: 8 additions & 0 deletions packages/ai-client/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# @tanstack/ai-client

## 0.16.2

### Patch Changes

- Updated dependencies [[`6df32b5`](https://github.com/TanStack/ai/commit/6df32b53026673d159e6df0892ce89effcb5c7b8)]:
- @tanstack/ai@0.27.0
- @tanstack/ai-event-client@0.5.3

## 0.16.1

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/ai-client/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@tanstack/ai-client",
"version": "0.16.1",
"version": "0.16.2",
"description": "Framework-agnostic headless client for TanStack AI chat, realtime sessions, streaming transports, and media generations.",
"author": "",
"license": "MIT",
Expand Down
8 changes: 8 additions & 0 deletions packages/ai-code-mode-skills/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# @tanstack/ai-code-mode-skills

## 0.2.4

### Patch Changes

- Updated dependencies [[`6df32b5`](https://github.com/TanStack/ai/commit/6df32b53026673d159e6df0892ce89effcb5c7b8)]:
- @tanstack/ai@0.27.0
- @tanstack/ai-code-mode@0.2.4

## 0.2.3

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/ai-code-mode-skills/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@tanstack/ai-code-mode-skills",
"version": "0.2.3",
"version": "0.2.4",
"description": "Persistent runtime skill library for TanStack AI Code Mode agents and sandboxed tool orchestration.",
"author": "",
"license": "MIT",
Expand Down
7 changes: 7 additions & 0 deletions packages/ai-code-mode/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @tanstack/ai-code-mode

## 0.2.4

### Patch Changes

- Updated dependencies [[`6df32b5`](https://github.com/TanStack/ai/commit/6df32b53026673d159e6df0892ce89effcb5c7b8)]:
- @tanstack/ai@0.27.0

## 0.2.3

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/ai-code-mode/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@tanstack/ai-code-mode",
"version": "0.2.3",
"version": "0.2.4",
"description": "Secure TypeScript Code Mode for TanStack AI agents to execute sandboxed tool orchestration programs.",
"author": "",
"license": "MIT",
Expand Down
8 changes: 8 additions & 0 deletions packages/ai-devtools/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# @tanstack/ai-devtools-core

## 0.4.7

### Patch Changes

- Updated dependencies [[`6df32b5`](https://github.com/TanStack/ai/commit/6df32b53026673d159e6df0892ce89effcb5c7b8)]:
- @tanstack/ai@0.27.0
- @tanstack/ai-event-client@0.5.3

## 0.4.6

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/ai-devtools/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@tanstack/ai-devtools-core",
"version": "0.4.6",
"version": "0.4.7",
"description": "Core TanStack AI Devtools plugin for inspecting chat messages, tool calls, streams, and errors.",
"author": "",
"license": "MIT",
Expand Down
8 changes: 8 additions & 0 deletions packages/ai-elevenlabs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# @tanstack/ai-elevenlabs

## 0.2.19

### Patch Changes

- Updated dependencies [[`6df32b5`](https://github.com/TanStack/ai/commit/6df32b53026673d159e6df0892ce89effcb5c7b8)]:
- @tanstack/ai@0.27.0
- @tanstack/ai-client@0.16.2

## 0.2.18

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/ai-elevenlabs/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@tanstack/ai-elevenlabs",
"version": "0.2.18",
"version": "0.2.19",
"description": "ElevenLabs adapter for TanStack AI realtime voice, text-to-speech, transcription, music, and sound effects.",
"author": "",
"license": "MIT",
Expand Down
7 changes: 7 additions & 0 deletions packages/ai-event-client/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @tanstack/ai-event-client

## 0.5.3

### Patch Changes

- Updated dependencies [[`6df32b5`](https://github.com/TanStack/ai/commit/6df32b53026673d159e6df0892ce89effcb5c7b8)]:
- @tanstack/ai@0.27.0

## 0.5.2

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/ai-event-client/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@tanstack/ai-event-client",
"version": "0.5.2",
"version": "0.5.3",
"description": "Typed event client for TanStack AI devtools, observability, and streamed runtime events.",
"author": "",
"license": "MIT",
Expand Down
7 changes: 7 additions & 0 deletions packages/ai-fal/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @tanstack/ai-fal

## 0.7.22

### Patch Changes

- Updated dependencies [[`6df32b5`](https://github.com/TanStack/ai/commit/6df32b53026673d159e6df0892ce89effcb5c7b8)]:
- @tanstack/ai@0.27.0

## 0.7.21

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/ai-fal/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@tanstack/ai-fal",
"version": "0.7.21",
"version": "0.7.22",
"description": "fal.ai adapter for TanStack AI image, video, audio, speech, and transcription generation.",
"author": "",
"license": "MIT",
Expand Down
30 changes: 30 additions & 0 deletions packages/ai-gemini/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,35 @@
# @tanstack/ai-gemini

## 0.15.0

### Minor Changes

- [#660](https://github.com/TanStack/ai/pull/660) [`6df32b5`](https://github.com/TanStack/ai/commit/6df32b53026673d159e6df0892ce89effcb5c7b8) - **BREAKING:** Sampling options (`temperature`, `topP`, `maxTokens`) have moved off the root of `chat()` / `ai()` / `generate()` and into provider-native `modelOptions`. There is no longer a generic root-level sampling surface — each provider accepts its own native keys, fully typed per model:
- OpenAI (Responses): `modelOptions: { temperature, top_p, max_output_tokens }`
- Anthropic: `modelOptions: { temperature, top_p, max_tokens }`
- Gemini: `modelOptions: { temperature, topP, maxOutputTokens }`
- Grok: `modelOptions: { temperature, top_p, max_tokens }`
- Groq: `modelOptions: { temperature, top_p, max_completion_tokens }`
- Ollama: `modelOptions: { options: { temperature, top_p, num_predict } }` (nested)
- OpenRouter (chat): `modelOptions: { temperature, topP, maxCompletionTokens }`

Middleware no longer sees `temperature`/`topP`/`maxTokens` as first-class fields on `ChatMiddlewareConfig`; mutate `config.modelOptions` (with the provider-native keys above) instead. `metadata` is unaffected and stays at the root.

The public `OllamaTextProviderOptions` type export has also been removed from `@tanstack/ai-ollama`. `modelOptions` is now typed per model — use the exported `OllamaChatModelOptionsByName` map (indexed by model name) or the underlying `ChatRequest` from the `ollama` SDK for arbitrary model strings.

Migrate automatically with the codemod, which resolves the provider from the adapter and rewrites the keys for you:

```bash
pnpm codemod:move-sampling-to-model-options "src/**/*.{ts,tsx}"
```

See the [Sampling Options migration guide](https://tanstack.com/ai/latest/docs/migration/sampling-options-to-model-options) for details.

### Patch Changes

- Updated dependencies [[`6df32b5`](https://github.com/TanStack/ai/commit/6df32b53026673d159e6df0892ce89effcb5c7b8)]:
- @tanstack/ai@0.27.0

## 0.14.1

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/ai-gemini/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@tanstack/ai-gemini",
"version": "0.14.1",
"version": "0.15.0",
"description": "Google Gemini adapter for TanStack AI chat, images, speech, audio generation, and structured outputs.",
"author": "",
"license": "MIT",
Expand Down
31 changes: 31 additions & 0 deletions packages/ai-grok/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,36 @@
# @tanstack/ai-grok

## 0.11.0

### Minor Changes

- [#660](https://github.com/TanStack/ai/pull/660) [`6df32b5`](https://github.com/TanStack/ai/commit/6df32b53026673d159e6df0892ce89effcb5c7b8) - **BREAKING:** Sampling options (`temperature`, `topP`, `maxTokens`) have moved off the root of `chat()` / `ai()` / `generate()` and into provider-native `modelOptions`. There is no longer a generic root-level sampling surface — each provider accepts its own native keys, fully typed per model:
- OpenAI (Responses): `modelOptions: { temperature, top_p, max_output_tokens }`
- Anthropic: `modelOptions: { temperature, top_p, max_tokens }`
- Gemini: `modelOptions: { temperature, topP, maxOutputTokens }`
- Grok: `modelOptions: { temperature, top_p, max_tokens }`
- Groq: `modelOptions: { temperature, top_p, max_completion_tokens }`
- Ollama: `modelOptions: { options: { temperature, top_p, num_predict } }` (nested)
- OpenRouter (chat): `modelOptions: { temperature, topP, maxCompletionTokens }`

Middleware no longer sees `temperature`/`topP`/`maxTokens` as first-class fields on `ChatMiddlewareConfig`; mutate `config.modelOptions` (with the provider-native keys above) instead. `metadata` is unaffected and stays at the root.

The public `OllamaTextProviderOptions` type export has also been removed from `@tanstack/ai-ollama`. `modelOptions` is now typed per model — use the exported `OllamaChatModelOptionsByName` map (indexed by model name) or the underlying `ChatRequest` from the `ollama` SDK for arbitrary model strings.

Migrate automatically with the codemod, which resolves the provider from the adapter and rewrites the keys for you:

```bash
pnpm codemod:move-sampling-to-model-options "src/**/*.{ts,tsx}"
```

See the [Sampling Options migration guide](https://tanstack.com/ai/latest/docs/migration/sampling-options-to-model-options) for details.

### Patch Changes

- Updated dependencies [[`6df32b5`](https://github.com/TanStack/ai/commit/6df32b53026673d159e6df0892ce89effcb5c7b8)]:
- @tanstack/ai@0.27.0
- @tanstack/openai-base@0.7.0

## 0.10.1

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/ai-grok/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@tanstack/ai-grok",
"version": "0.10.1",
"version": "0.11.0",
"description": "xAI Grok adapter for TanStack AI chat, image generation, realtime, and structured outputs.",
"author": "",
"license": "MIT",
Expand Down
31 changes: 31 additions & 0 deletions packages/ai-groq/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,36 @@
# @tanstack/ai-groq

## 0.4.0

### Minor Changes

- [#660](https://github.com/TanStack/ai/pull/660) [`6df32b5`](https://github.com/TanStack/ai/commit/6df32b53026673d159e6df0892ce89effcb5c7b8) - **BREAKING:** Sampling options (`temperature`, `topP`, `maxTokens`) have moved off the root of `chat()` / `ai()` / `generate()` and into provider-native `modelOptions`. There is no longer a generic root-level sampling surface — each provider accepts its own native keys, fully typed per model:
- OpenAI (Responses): `modelOptions: { temperature, top_p, max_output_tokens }`
- Anthropic: `modelOptions: { temperature, top_p, max_tokens }`
- Gemini: `modelOptions: { temperature, topP, maxOutputTokens }`
- Grok: `modelOptions: { temperature, top_p, max_tokens }`
- Groq: `modelOptions: { temperature, top_p, max_completion_tokens }`
- Ollama: `modelOptions: { options: { temperature, top_p, num_predict } }` (nested)
- OpenRouter (chat): `modelOptions: { temperature, topP, maxCompletionTokens }`

Middleware no longer sees `temperature`/`topP`/`maxTokens` as first-class fields on `ChatMiddlewareConfig`; mutate `config.modelOptions` (with the provider-native keys above) instead. `metadata` is unaffected and stays at the root.

The public `OllamaTextProviderOptions` type export has also been removed from `@tanstack/ai-ollama`. `modelOptions` is now typed per model — use the exported `OllamaChatModelOptionsByName` map (indexed by model name) or the underlying `ChatRequest` from the `ollama` SDK for arbitrary model strings.

Migrate automatically with the codemod, which resolves the provider from the adapter and rewrites the keys for you:

```bash
pnpm codemod:move-sampling-to-model-options "src/**/*.{ts,tsx}"
```

See the [Sampling Options migration guide](https://tanstack.com/ai/latest/docs/migration/sampling-options-to-model-options) for details.

### Patch Changes

- Updated dependencies [[`6df32b5`](https://github.com/TanStack/ai/commit/6df32b53026673d159e6df0892ce89effcb5c7b8)]:
- @tanstack/ai@0.27.0
- @tanstack/openai-base@0.7.0

## 0.3.1

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/ai-groq/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@tanstack/ai-groq",
"version": "0.3.1",
"version": "0.4.0",
"type": "module",
"description": "Groq adapter for TanStack AI low-latency chat, tool calling, and structured outputs.",
"author": "",
Expand Down
7 changes: 7 additions & 0 deletions packages/ai-isolate-cloudflare/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @tanstack/ai-isolate-cloudflare

## 0.2.20

### Patch Changes

- Updated dependencies []:
- @tanstack/ai-code-mode@0.2.4

## 0.2.19

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/ai-isolate-cloudflare/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@tanstack/ai-isolate-cloudflare",
"version": "0.2.19",
"version": "0.2.20",
"description": "Cloudflare Workers sandbox driver for TanStack AI Code Mode TypeScript execution at the edge.",
"author": "",
"license": "MIT",
Expand Down
7 changes: 7 additions & 0 deletions packages/ai-isolate-node/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @tanstack/ai-isolate-node

## 0.1.29

### Patch Changes

- Updated dependencies []:
- @tanstack/ai-code-mode@0.2.4

## 0.1.28

### Patch Changes
Expand Down
Loading