@mastra/mcp-docs-server 1.2.24-alpha.20 → 1.2.24-alpha.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.docs/docs/evals/datasets.md +13 -3
- package/.docs/docs/evals/experiments.md +8 -0
- package/.docs/docs/server/middleware.md +17 -7
- package/.docs/integrations/frameworks/tanstack-start.md +3 -3
- package/.docs/models/gateways/openrouter.md +1 -3
- package/.docs/models/index.md +1 -1
- package/.docs/models/providers/302ai.md +52 -33
- package/.docs/models/providers/anthropic.md +1 -31
- package/.docs/models/providers/cerebras.md +1 -31
- package/.docs/models/providers/deepinfra.md +1 -31
- package/.docs/models/providers/edenai.md +7 -7
- package/.docs/models/providers/freemodel.md +0 -28
- package/.docs/models/providers/google.md +1 -31
- package/.docs/models/providers/groq.md +1 -31
- package/.docs/models/providers/hyper.md +3 -3
- package/.docs/models/providers/kilo.md +3 -5
- package/.docs/models/providers/kimi-for-coding.md +0 -28
- package/.docs/models/providers/llmgateway-providers.md +1 -2
- package/.docs/models/providers/llmgateway.md +1 -1
- package/.docs/models/providers/meta.md +0 -28
- package/.docs/models/providers/minimax-cn-coding-plan.md +0 -28
- package/.docs/models/providers/minimax-cn.md +0 -28
- package/.docs/models/providers/minimax-coding-plan.md +0 -28
- package/.docs/models/providers/minimax.md +1 -31
- package/.docs/models/providers/mistral.md +1 -31
- package/.docs/models/providers/nano-gpt.md +2 -5
- package/.docs/models/providers/neosmith.md +0 -28
- package/.docs/models/providers/openai.md +1 -31
- package/.docs/models/providers/orcarouter.md +2 -2
- package/.docs/models/providers/perplexity-agent.md +0 -28
- package/.docs/models/providers/perplexity.md +1 -31
- package/.docs/models/providers/subconscious.md +0 -28
- package/.docs/models/providers/thinkingmachines.md +0 -28
- package/.docs/models/providers/togetherai.md +1 -31
- package/.docs/models/providers/vivgrid.md +0 -28
- package/.docs/models/providers/xai.md +1 -31
- package/.docs/reference/client-js/datasets.md +56 -1
- package/.docs/reference/datasets/dataset.md +1 -0
- package/.docs/reference/datasets/datasets-manager.md +14 -0
- package/.docs/reference/datasets/deleteExperiment.md +47 -9
- package/.docs/reference/datasets/purgeItem.md +41 -0
- package/.docs/reference/index.md +1 -0
- package/.docs/reference/server/routes.md +44 -19
- package/package.json +5 -5
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
# Kilo Gateway
|
|
6
6
|
|
|
7
|
-
Access
|
|
7
|
+
Access 365 Kilo Gateway models through Mastra's model router. Authentication is handled automatically using the `KILO_API_KEY` environment variable.
|
|
8
8
|
|
|
9
9
|
Learn more in the [Kilo Gateway documentation](https://kilo.ai).
|
|
10
10
|
|
|
@@ -50,7 +50,7 @@ for await (const chunk of stream) {
|
|
|
50
50
|
| `kilo/~openai/gpt-mini-latest` | 400K | | | | | | $0.75 | $5 |
|
|
51
51
|
| `kilo/~x-ai/grok-latest` | 500K | | | | | | $2 | $6 |
|
|
52
52
|
| `kilo/~z-ai/glm-flash-latest` | 1.0M | | | | | | $0.07 | $0.24 |
|
|
53
|
-
| `kilo/~z-ai/glm-latest` | 1.0M | | | | | | $1 | $
|
|
53
|
+
| `kilo/~z-ai/glm-latest` | 1.0M | | | | | | $1 | $3 |
|
|
54
54
|
| `kilo/aion-labs/aion-2.0` | 131K | | | | | | $0.80 | $2 |
|
|
55
55
|
| `kilo/aion-labs/aion-3.0` | 131K | | | | | | $3 | $6 |
|
|
56
56
|
| `kilo/aion-labs/aion-3.0-mini` | 131K | | | | | | $0.70 | $1 |
|
|
@@ -206,8 +206,6 @@ for await (const chunk of stream) {
|
|
|
206
206
|
| `kilo/moonshotai/kimi-k3` | 1.0M | | | | | | $3 | $15 |
|
|
207
207
|
| `kilo/morph/morph-v3-fast` | 82K | | | | | | $0.80 | $1 |
|
|
208
208
|
| `kilo/morph/morph-v3-large` | 262K | | | | | | $0.90 | $2 |
|
|
209
|
-
| `kilo/nex-agi/nex-n2-mini` | 262K | | | | | | $0.03 | $0.10 |
|
|
210
|
-
| `kilo/nex-agi/nex-n2-pro` | 262K | | | | | | $0.25 | $1 |
|
|
211
209
|
| `kilo/nousresearch/hermes-3-llama-3.1-405b` | 131K | | | | | | $1 | $1 |
|
|
212
210
|
| `kilo/nousresearch/hermes-3-llama-3.1-70b` | 131K | | | | | | $0.70 | $0.70 |
|
|
213
211
|
| `kilo/nousresearch/hermes-4-405b` | 131K | | | | | | $1 | $3 |
|
|
@@ -369,7 +367,7 @@ for await (const chunk of stream) {
|
|
|
369
367
|
| `kilo/tencent/hy-mt2-1.8b` | 8K | | | | | | $0.04 | $0.18 |
|
|
370
368
|
| `kilo/tencent/hy-mt2-30b-a3b` | 8K | | | | | | $0.07 | $0.29 |
|
|
371
369
|
| `kilo/tencent/hy-mt2-7b` | 8K | | | | | | $0.07 | $0.29 |
|
|
372
|
-
| `kilo/tencent/hy3` | 262K | | | | | | $0.
|
|
370
|
+
| `kilo/tencent/hy3` | 262K | | | | | | $0.08 | $0.33 |
|
|
373
371
|
| `kilo/tencent/hy3-preview` | 262K | | | | | | $0.18 | $0.60 |
|
|
374
372
|
| `kilo/tencent/hy4-preview` | 1.0M | | | | | | $0.83 | $3 |
|
|
375
373
|
| `kilo/thedrummer/cydonia-24b-v4.1` | 131K | | | | | | $0.30 | $0.50 |
|
|
@@ -77,32 +77,4 @@ const agent = new Agent({
|
|
|
77
77
|
: "kimi-for-coding/k3";
|
|
78
78
|
}
|
|
79
79
|
});
|
|
80
|
-
```
|
|
81
|
-
|
|
82
|
-
## Direct provider installation
|
|
83
|
-
|
|
84
|
-
This provider can also be installed directly as a standalone package, which can be used instead of the Mastra model router string. View the [package documentation](https://www.npmjs.com/package/@ai-sdk/anthropic) for more details.
|
|
85
|
-
|
|
86
|
-
**npm**:
|
|
87
|
-
|
|
88
|
-
```bash
|
|
89
|
-
npm install @ai-sdk/anthropic
|
|
90
|
-
```
|
|
91
|
-
|
|
92
|
-
**pnpm**:
|
|
93
|
-
|
|
94
|
-
```bash
|
|
95
|
-
pnpm add @ai-sdk/anthropic
|
|
96
|
-
```
|
|
97
|
-
|
|
98
|
-
**Yarn**:
|
|
99
|
-
|
|
100
|
-
```bash
|
|
101
|
-
yarn add @ai-sdk/anthropic
|
|
102
|
-
```
|
|
103
|
-
|
|
104
|
-
**Bun**:
|
|
105
|
-
|
|
106
|
-
```bash
|
|
107
|
-
bun add @ai-sdk/anthropic
|
|
108
80
|
```
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
# LLM Gateway
|
|
6
6
|
|
|
7
|
-
Access
|
|
7
|
+
Access 372 LLM Gateway models through Mastra's model router. Authentication is handled automatically using the `LLMGATEWAY_API_KEY` environment variable.
|
|
8
8
|
|
|
9
9
|
Learn more in the [LLM Gateway documentation](https://llmgateway.io/docs).
|
|
10
10
|
|
|
@@ -200,7 +200,6 @@ for await (const chunk of stream) {
|
|
|
200
200
|
| `llmgateway-providers/fireworks/kimi-k3` | 1.0M | | | | | | $3 | $15 |
|
|
201
201
|
| `llmgateway-providers/fireworks/kimi-k3-fast` | 1.0M | | | | | | $5 | $23 |
|
|
202
202
|
| `llmgateway-providers/gonka24/deepseek-v4-flash` | 390K | | | | | | $0.05 | $0.10 |
|
|
203
|
-
| `llmgateway-providers/gonka24/kimi-k2.6` | 262K | | | | | | $0.22 | $1 |
|
|
204
203
|
| `llmgateway-providers/gonka24/minimax-m2.7` | 205K | | | | | | $0.08 | $0.32 |
|
|
205
204
|
| `llmgateway-providers/google-ai-studio/gemini-2.5-flash` | 1.0M | | | | | | $0.30 | $3 |
|
|
206
205
|
| `llmgateway-providers/google-ai-studio/gemini-2.5-flash-lite` | 1.0M | | | | | | $0.10 | $0.40 |
|
|
@@ -141,7 +141,7 @@ for await (const chunk of stream) {
|
|
|
141
141
|
| `llmgateway/kimi-k2` | 256K | | | | | | $0.57 | $2 |
|
|
142
142
|
| `llmgateway/kimi-k2-thinking` | 262K | | | | | | $0.60 | $3 |
|
|
143
143
|
| `llmgateway/kimi-k2.5` | 262K | | | | | | $0.41 | $2 |
|
|
144
|
-
| `llmgateway/kimi-k2.6` | 262K | | | | | | $0.
|
|
144
|
+
| `llmgateway/kimi-k2.6` | 262K | | | | | | $0.60 | $3 |
|
|
145
145
|
| `llmgateway/kimi-k2.7-code` | 262K | | | | | | $0.89 | $4 |
|
|
146
146
|
| `llmgateway/kimi-k2.7-code-highspeed` | 262K | | | | | | $2 | $8 |
|
|
147
147
|
| `llmgateway/kimi-k3` | 1.0M | | | | | | $3 | $14 |
|
|
@@ -78,32 +78,4 @@ const agent = new Agent({
|
|
|
78
78
|
: "meta/muse-spark-1.1";
|
|
79
79
|
}
|
|
80
80
|
});
|
|
81
|
-
```
|
|
82
|
-
|
|
83
|
-
## Direct provider installation
|
|
84
|
-
|
|
85
|
-
This provider can also be installed directly as a standalone package, which can be used instead of the Mastra model router string. View the [package documentation](https://www.npmjs.com/package/@ai-sdk/openai) for more details.
|
|
86
|
-
|
|
87
|
-
**npm**:
|
|
88
|
-
|
|
89
|
-
```bash
|
|
90
|
-
npm install @ai-sdk/openai
|
|
91
|
-
```
|
|
92
|
-
|
|
93
|
-
**pnpm**:
|
|
94
|
-
|
|
95
|
-
```bash
|
|
96
|
-
pnpm add @ai-sdk/openai
|
|
97
|
-
```
|
|
98
|
-
|
|
99
|
-
**Yarn**:
|
|
100
|
-
|
|
101
|
-
```bash
|
|
102
|
-
yarn add @ai-sdk/openai
|
|
103
|
-
```
|
|
104
|
-
|
|
105
|
-
**Bun**:
|
|
106
|
-
|
|
107
|
-
```bash
|
|
108
|
-
bun add @ai-sdk/openai
|
|
109
81
|
```
|
|
@@ -80,32 +80,4 @@ const agent = new Agent({
|
|
|
80
80
|
: "minimax-cn-coding-plan/MiniMax-M2";
|
|
81
81
|
}
|
|
82
82
|
});
|
|
83
|
-
```
|
|
84
|
-
|
|
85
|
-
## Direct provider installation
|
|
86
|
-
|
|
87
|
-
This provider can also be installed directly as a standalone package, which can be used instead of the Mastra model router string. View the [package documentation](https://www.npmjs.com/package/@ai-sdk/anthropic) for more details.
|
|
88
|
-
|
|
89
|
-
**npm**:
|
|
90
|
-
|
|
91
|
-
```bash
|
|
92
|
-
npm install @ai-sdk/anthropic
|
|
93
|
-
```
|
|
94
|
-
|
|
95
|
-
**pnpm**:
|
|
96
|
-
|
|
97
|
-
```bash
|
|
98
|
-
pnpm add @ai-sdk/anthropic
|
|
99
|
-
```
|
|
100
|
-
|
|
101
|
-
**Yarn**:
|
|
102
|
-
|
|
103
|
-
```bash
|
|
104
|
-
yarn add @ai-sdk/anthropic
|
|
105
|
-
```
|
|
106
|
-
|
|
107
|
-
**Bun**:
|
|
108
|
-
|
|
109
|
-
```bash
|
|
110
|
-
bun add @ai-sdk/anthropic
|
|
111
83
|
```
|
|
@@ -80,32 +80,4 @@ const agent = new Agent({
|
|
|
80
80
|
: "minimax-cn/MiniMax-M2";
|
|
81
81
|
}
|
|
82
82
|
});
|
|
83
|
-
```
|
|
84
|
-
|
|
85
|
-
## Direct provider installation
|
|
86
|
-
|
|
87
|
-
This provider can also be installed directly as a standalone package, which can be used instead of the Mastra model router string. View the [package documentation](https://www.npmjs.com/package/@ai-sdk/anthropic) for more details.
|
|
88
|
-
|
|
89
|
-
**npm**:
|
|
90
|
-
|
|
91
|
-
```bash
|
|
92
|
-
npm install @ai-sdk/anthropic
|
|
93
|
-
```
|
|
94
|
-
|
|
95
|
-
**pnpm**:
|
|
96
|
-
|
|
97
|
-
```bash
|
|
98
|
-
pnpm add @ai-sdk/anthropic
|
|
99
|
-
```
|
|
100
|
-
|
|
101
|
-
**Yarn**:
|
|
102
|
-
|
|
103
|
-
```bash
|
|
104
|
-
yarn add @ai-sdk/anthropic
|
|
105
|
-
```
|
|
106
|
-
|
|
107
|
-
**Bun**:
|
|
108
|
-
|
|
109
|
-
```bash
|
|
110
|
-
bun add @ai-sdk/anthropic
|
|
111
83
|
```
|
|
@@ -80,32 +80,4 @@ const agent = new Agent({
|
|
|
80
80
|
: "minimax-coding-plan/MiniMax-M2";
|
|
81
81
|
}
|
|
82
82
|
});
|
|
83
|
-
```
|
|
84
|
-
|
|
85
|
-
## Direct provider installation
|
|
86
|
-
|
|
87
|
-
This provider can also be installed directly as a standalone package, which can be used instead of the Mastra model router string. View the [package documentation](https://www.npmjs.com/package/@ai-sdk/anthropic) for more details.
|
|
88
|
-
|
|
89
|
-
**npm**:
|
|
90
|
-
|
|
91
|
-
```bash
|
|
92
|
-
npm install @ai-sdk/anthropic
|
|
93
|
-
```
|
|
94
|
-
|
|
95
|
-
**pnpm**:
|
|
96
|
-
|
|
97
|
-
```bash
|
|
98
|
-
pnpm add @ai-sdk/anthropic
|
|
99
|
-
```
|
|
100
|
-
|
|
101
|
-
**Yarn**:
|
|
102
|
-
|
|
103
|
-
```bash
|
|
104
|
-
yarn add @ai-sdk/anthropic
|
|
105
|
-
```
|
|
106
|
-
|
|
107
|
-
**Bun**:
|
|
108
|
-
|
|
109
|
-
```bash
|
|
110
|
-
bun add @ai-sdk/anthropic
|
|
111
83
|
```
|
|
@@ -80,34 +80,4 @@ const agent = new Agent({
|
|
|
80
80
|
: "minimax/MiniMax-M2";
|
|
81
81
|
}
|
|
82
82
|
});
|
|
83
|
-
```
|
|
84
|
-
|
|
85
|
-
## Direct provider installation
|
|
86
|
-
|
|
87
|
-
This provider can also be installed directly as a standalone package, which can be used instead of the Mastra model router string. View the [package documentation](https://www.npmjs.com/package/@ai-sdk/anthropic) for more details.
|
|
88
|
-
|
|
89
|
-
**npm**:
|
|
90
|
-
|
|
91
|
-
```bash
|
|
92
|
-
npm install @ai-sdk/anthropic
|
|
93
|
-
```
|
|
94
|
-
|
|
95
|
-
**pnpm**:
|
|
96
|
-
|
|
97
|
-
```bash
|
|
98
|
-
pnpm add @ai-sdk/anthropic
|
|
99
|
-
```
|
|
100
|
-
|
|
101
|
-
**Yarn**:
|
|
102
|
-
|
|
103
|
-
```bash
|
|
104
|
-
yarn add @ai-sdk/anthropic
|
|
105
|
-
```
|
|
106
|
-
|
|
107
|
-
**Bun**:
|
|
108
|
-
|
|
109
|
-
```bash
|
|
110
|
-
bun add @ai-sdk/anthropic
|
|
111
|
-
```
|
|
112
|
-
|
|
113
|
-
For detailed provider-specific documentation, see the [AI SDK MiniMax (minimax.io) provider docs](https://ai-sdk.dev/providers/ai-sdk-providers/minimax).
|
|
83
|
+
```
|
|
@@ -97,34 +97,4 @@ const agent = new Agent({
|
|
|
97
97
|
: "mistral/codestral-latest";
|
|
98
98
|
}
|
|
99
99
|
});
|
|
100
|
-
```
|
|
101
|
-
|
|
102
|
-
## Direct provider installation
|
|
103
|
-
|
|
104
|
-
This provider can also be installed directly as a standalone package, which can be used instead of the Mastra model router string. View the [package documentation](https://www.npmjs.com/package/@ai-sdk/mistral) for more details.
|
|
105
|
-
|
|
106
|
-
**npm**:
|
|
107
|
-
|
|
108
|
-
```bash
|
|
109
|
-
npm install @ai-sdk/mistral
|
|
110
|
-
```
|
|
111
|
-
|
|
112
|
-
**pnpm**:
|
|
113
|
-
|
|
114
|
-
```bash
|
|
115
|
-
pnpm add @ai-sdk/mistral
|
|
116
|
-
```
|
|
117
|
-
|
|
118
|
-
**Yarn**:
|
|
119
|
-
|
|
120
|
-
```bash
|
|
121
|
-
yarn add @ai-sdk/mistral
|
|
122
|
-
```
|
|
123
|
-
|
|
124
|
-
**Bun**:
|
|
125
|
-
|
|
126
|
-
```bash
|
|
127
|
-
bun add @ai-sdk/mistral
|
|
128
|
-
```
|
|
129
|
-
|
|
130
|
-
For detailed provider-specific documentation, see the [AI SDK Mistral provider docs](https://ai-sdk.dev/providers/ai-sdk-providers/mistral).
|
|
100
|
+
```
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
# NanoGPT
|
|
6
6
|
|
|
7
|
-
Access
|
|
7
|
+
Access 589 NanoGPT models through Mastra's model router. Authentication is handled automatically using the `NANO_GPT_API_KEY` environment variable.
|
|
8
8
|
|
|
9
9
|
Learn more in the [NanoGPT documentation](https://docs.nano-gpt.com).
|
|
10
10
|
|
|
@@ -353,8 +353,6 @@ for await (const chunk of stream) {
|
|
|
353
353
|
| `nano-gpt/nanogpt/coding-router:max` | 1.0M | | | | | | $5 | $30 |
|
|
354
354
|
| `nano-gpt/nanogpt/coding-router:medium` | 1.0M | | | | | | $0.14 | $0.28 |
|
|
355
355
|
| `nano-gpt/NeverSleep/Lumimaid-v0.2-70B` | 16K | | | | | | $1 | $2 |
|
|
356
|
-
| `nano-gpt/nex-agi/nex-n2-mini` | 262K | | | | | | $0.03 | $0.10 |
|
|
357
|
-
| `nano-gpt/nex-agi/nex-n2-pro` | 262K | | | | | | $0.50 | $3 |
|
|
358
356
|
| `nano-gpt/nothingiisreal/L3.1-70B-Celeste-V0.1-BF16` | 33K | | | | | | $0.49 | $0.49 |
|
|
359
357
|
| `nano-gpt/NousResearch/hermes-3-llama-3.1-70b` | 66K | | | | | | $0.41 | $0.41 |
|
|
360
358
|
| `nano-gpt/NousResearch/hermes-4-405b` | 128K | | | | | | $0.30 | $1 |
|
|
@@ -362,7 +360,6 @@ for await (const chunk of stream) {
|
|
|
362
360
|
| `nano-gpt/nvidia/Llama-3.1-Nemotron-70B-Instruct-HF` | 16K | | | | | | $0.36 | $0.41 |
|
|
363
361
|
| `nano-gpt/nvidia/Llama-3.3-Nemotron-Super-49B-v1` | 128K | | | | | | $0.15 | $0.15 |
|
|
364
362
|
| `nano-gpt/nvidia/nemotron-3-nano-30b-a3b` | 262K | | | | | | $0.17 | $0.68 |
|
|
365
|
-
| `nano-gpt/nvidia/nemotron-3-nano-omni-30b-a3b-reasoning` | 256K | | | | | | $0.10 | $0.42 |
|
|
366
363
|
| `nano-gpt/nvidia/nemotron-3-super-120b-a12b` | 262K | | | | | | $0.05 | $0.25 |
|
|
367
364
|
| `nano-gpt/nvidia/nemotron-3-super-120b-a12b:thinking` | 262K | | | | | | $0.05 | $0.25 |
|
|
368
365
|
| `nano-gpt/nvidia/nemotron-3-ultra-550b-a55b` | 1.0M | | | | | | $0.50 | $3 |
|
|
@@ -506,7 +503,7 @@ for await (const chunk of stream) {
|
|
|
506
503
|
| `nano-gpt/Sao10K/L3.1-70B-Euryale-v2.2` | 20K | | | | | | $0.31 | $0.36 |
|
|
507
504
|
| `nano-gpt/Sao10K/L3.1-70B-Hanami-x1` | 33K | | | | | | $0.49 | $0.49 |
|
|
508
505
|
| `nano-gpt/Sao10K/L3.3-70B-Euryale-v2.3` | 20K | | | | | | $0.49 | $0.49 |
|
|
509
|
-
| `nano-gpt/sarvam-105b` | 131K | | | | | | $0.
|
|
506
|
+
| `nano-gpt/sarvam-105b` | 131K | | | | | | $0.05 | $0.21 |
|
|
510
507
|
| `nano-gpt/shisa-ai/shisa-v2-llama3.3-70b` | 128K | | | | | | $0.50 | $0.50 |
|
|
511
508
|
| `nano-gpt/shisa-ai/shisa-v2.1-llama3.3-70b` | 33K | | | | | | $0.50 | $0.50 |
|
|
512
509
|
| `nano-gpt/sonar` | 127K | | | | | | $1 | $1 |
|
|
@@ -77,32 +77,4 @@ const agent = new Agent({
|
|
|
77
77
|
: "neosmith/neosmith.intelligent-basic";
|
|
78
78
|
}
|
|
79
79
|
});
|
|
80
|
-
```
|
|
81
|
-
|
|
82
|
-
## Direct provider installation
|
|
83
|
-
|
|
84
|
-
This provider can also be installed directly as a standalone package, which can be used instead of the Mastra model router string. View the [package documentation](https://www.npmjs.com/package/@ai-sdk/openai) for more details.
|
|
85
|
-
|
|
86
|
-
**npm**:
|
|
87
|
-
|
|
88
|
-
```bash
|
|
89
|
-
npm install @ai-sdk/openai
|
|
90
|
-
```
|
|
91
|
-
|
|
92
|
-
**pnpm**:
|
|
93
|
-
|
|
94
|
-
```bash
|
|
95
|
-
pnpm add @ai-sdk/openai
|
|
96
|
-
```
|
|
97
|
-
|
|
98
|
-
**Yarn**:
|
|
99
|
-
|
|
100
|
-
```bash
|
|
101
|
-
yarn add @ai-sdk/openai
|
|
102
|
-
```
|
|
103
|
-
|
|
104
|
-
**Bun**:
|
|
105
|
-
|
|
106
|
-
```bash
|
|
107
|
-
bun add @ai-sdk/openai
|
|
108
80
|
```
|
|
@@ -174,34 +174,4 @@ const response = await agent.generate("Hello!", {
|
|
|
174
174
|
|
|
175
175
|
**forceReasoning** (`boolean | undefined`)
|
|
176
176
|
|
|
177
|
-
**allowedTools** (`{ toolNames: string[]; mode?: "auto" | "required" | undefined; } | undefined`)
|
|
178
|
-
|
|
179
|
-
## Direct provider installation
|
|
180
|
-
|
|
181
|
-
This provider can also be installed directly as a standalone package, which can be used instead of the Mastra model router string. View the [package documentation](https://www.npmjs.com/package/@ai-sdk/openai) for more details.
|
|
182
|
-
|
|
183
|
-
**npm**:
|
|
184
|
-
|
|
185
|
-
```bash
|
|
186
|
-
npm install @ai-sdk/openai
|
|
187
|
-
```
|
|
188
|
-
|
|
189
|
-
**pnpm**:
|
|
190
|
-
|
|
191
|
-
```bash
|
|
192
|
-
pnpm add @ai-sdk/openai
|
|
193
|
-
```
|
|
194
|
-
|
|
195
|
-
**Yarn**:
|
|
196
|
-
|
|
197
|
-
```bash
|
|
198
|
-
yarn add @ai-sdk/openai
|
|
199
|
-
```
|
|
200
|
-
|
|
201
|
-
**Bun**:
|
|
202
|
-
|
|
203
|
-
```bash
|
|
204
|
-
bun add @ai-sdk/openai
|
|
205
|
-
```
|
|
206
|
-
|
|
207
|
-
For detailed provider-specific documentation, see the [AI SDK OpenAI provider docs](https://ai-sdk.dev/providers/ai-sdk-providers/openai).
|
|
177
|
+
**allowedTools** (`{ toolNames: string[]; mode?: "auto" | "required" | undefined; } | undefined`)
|
|
@@ -142,7 +142,6 @@ for await (const chunk of stream) {
|
|
|
142
142
|
| `orcarouter/qwen/qwen3.7-max` | 1.0M | | | | | | $1 | $4 |
|
|
143
143
|
| `orcarouter/qwen/qwen3.7-plus` | 1.0M | | | | | | $0.35 | $1 |
|
|
144
144
|
| `orcarouter/qwen/qwen3.8-27b` | 262K | | | | | | $0.33 | $2 |
|
|
145
|
-
| `orcarouter/qwen/qwen3.8-27b-free` | 66K | | | | | | — | — |
|
|
146
145
|
| `orcarouter/qwen/qwen3.8-max` | 1.0M | | | | | | $2 | $6 |
|
|
147
146
|
| `orcarouter/tencent/hy3` | 256K | | | | | | $0.18 | $0.59 |
|
|
148
147
|
| `orcarouter/tencent/hy3-free` | 256K | | | | | | — | — |
|
|
@@ -155,6 +154,7 @@ for await (const chunk of stream) {
|
|
|
155
154
|
| `orcarouter/z-ai/glm-5.2` | 1.0M | | | | | | $1 | $4 |
|
|
156
155
|
| `orcarouter/z-ai/glm-5.3` | 1.0M | | | | | | $1 | $4 |
|
|
157
156
|
| `orcarouter/z-ai/glm-5.3-flash` | 1.0M | | | | | | $0.07 | $0.25 |
|
|
157
|
+
| `orcarouter/z-ai/glm-5.3-flash-free` | 1.0M | | | | | | — | — |
|
|
158
158
|
|
|
159
159
|
Model availability, capabilities, context windows, and pricing are sourced from [models.dev](https://models.dev) and may change.
|
|
160
160
|
|
|
@@ -186,7 +186,7 @@ const agent = new Agent({
|
|
|
186
186
|
model: ({ requestContext }) => {
|
|
187
187
|
const useAdvanced = requestContext.task === "complex";
|
|
188
188
|
return useAdvanced
|
|
189
|
-
? "orcarouter/z-ai/glm-5.3-flash"
|
|
189
|
+
? "orcarouter/z-ai/glm-5.3-flash-free"
|
|
190
190
|
: "orcarouter/anthropic/claude-fable-5";
|
|
191
191
|
}
|
|
192
192
|
});
|
|
@@ -95,32 +95,4 @@ const agent = new Agent({
|
|
|
95
95
|
: "perplexity-agent/anthropic/claude-haiku-4-5";
|
|
96
96
|
}
|
|
97
97
|
});
|
|
98
|
-
```
|
|
99
|
-
|
|
100
|
-
## Direct provider installation
|
|
101
|
-
|
|
102
|
-
This provider can also be installed directly as a standalone package, which can be used instead of the Mastra model router string. View the [package documentation](https://www.npmjs.com/package/@ai-sdk/openai) for more details.
|
|
103
|
-
|
|
104
|
-
**npm**:
|
|
105
|
-
|
|
106
|
-
```bash
|
|
107
|
-
npm install @ai-sdk/openai
|
|
108
|
-
```
|
|
109
|
-
|
|
110
|
-
**pnpm**:
|
|
111
|
-
|
|
112
|
-
```bash
|
|
113
|
-
pnpm add @ai-sdk/openai
|
|
114
|
-
```
|
|
115
|
-
|
|
116
|
-
**Yarn**:
|
|
117
|
-
|
|
118
|
-
```bash
|
|
119
|
-
yarn add @ai-sdk/openai
|
|
120
|
-
```
|
|
121
|
-
|
|
122
|
-
**Bun**:
|
|
123
|
-
|
|
124
|
-
```bash
|
|
125
|
-
bun add @ai-sdk/openai
|
|
126
98
|
```
|
|
@@ -74,34 +74,4 @@ const agent = new Agent({
|
|
|
74
74
|
: "perplexity/sonar";
|
|
75
75
|
}
|
|
76
76
|
});
|
|
77
|
-
```
|
|
78
|
-
|
|
79
|
-
## Direct provider installation
|
|
80
|
-
|
|
81
|
-
This provider can also be installed directly as a standalone package, which can be used instead of the Mastra model router string. View the [package documentation](https://www.npmjs.com/package/@ai-sdk/perplexity) for more details.
|
|
82
|
-
|
|
83
|
-
**npm**:
|
|
84
|
-
|
|
85
|
-
```bash
|
|
86
|
-
npm install @ai-sdk/perplexity
|
|
87
|
-
```
|
|
88
|
-
|
|
89
|
-
**pnpm**:
|
|
90
|
-
|
|
91
|
-
```bash
|
|
92
|
-
pnpm add @ai-sdk/perplexity
|
|
93
|
-
```
|
|
94
|
-
|
|
95
|
-
**Yarn**:
|
|
96
|
-
|
|
97
|
-
```bash
|
|
98
|
-
yarn add @ai-sdk/perplexity
|
|
99
|
-
```
|
|
100
|
-
|
|
101
|
-
**Bun**:
|
|
102
|
-
|
|
103
|
-
```bash
|
|
104
|
-
bun add @ai-sdk/perplexity
|
|
105
|
-
```
|
|
106
|
-
|
|
107
|
-
For detailed provider-specific documentation, see the [AI SDK Perplexity provider docs](https://ai-sdk.dev/providers/ai-sdk-providers/perplexity).
|
|
77
|
+
```
|
|
@@ -75,32 +75,4 @@ const agent = new Agent({
|
|
|
75
75
|
: "subconscious/subconscious/glm-5.2";
|
|
76
76
|
}
|
|
77
77
|
});
|
|
78
|
-
```
|
|
79
|
-
|
|
80
|
-
## Direct provider installation
|
|
81
|
-
|
|
82
|
-
This provider can also be installed directly as a standalone package, which can be used instead of the Mastra model router string. View the [package documentation](https://www.npmjs.com/package/@ai-sdk/anthropic) for more details.
|
|
83
|
-
|
|
84
|
-
**npm**:
|
|
85
|
-
|
|
86
|
-
```bash
|
|
87
|
-
npm install @ai-sdk/anthropic
|
|
88
|
-
```
|
|
89
|
-
|
|
90
|
-
**pnpm**:
|
|
91
|
-
|
|
92
|
-
```bash
|
|
93
|
-
pnpm add @ai-sdk/anthropic
|
|
94
|
-
```
|
|
95
|
-
|
|
96
|
-
**Yarn**:
|
|
97
|
-
|
|
98
|
-
```bash
|
|
99
|
-
yarn add @ai-sdk/anthropic
|
|
100
|
-
```
|
|
101
|
-
|
|
102
|
-
**Bun**:
|
|
103
|
-
|
|
104
|
-
```bash
|
|
105
|
-
bun add @ai-sdk/anthropic
|
|
106
78
|
```
|
|
@@ -75,32 +75,4 @@ const agent = new Agent({
|
|
|
75
75
|
: "thinkingmachines/thinkingmachines/Inkling";
|
|
76
76
|
}
|
|
77
77
|
});
|
|
78
|
-
```
|
|
79
|
-
|
|
80
|
-
## Direct provider installation
|
|
81
|
-
|
|
82
|
-
This provider can also be installed directly as a standalone package, which can be used instead of the Mastra model router string. View the [package documentation](https://www.npmjs.com/package/@ai-sdk/anthropic) for more details.
|
|
83
|
-
|
|
84
|
-
**npm**:
|
|
85
|
-
|
|
86
|
-
```bash
|
|
87
|
-
npm install @ai-sdk/anthropic
|
|
88
|
-
```
|
|
89
|
-
|
|
90
|
-
**pnpm**:
|
|
91
|
-
|
|
92
|
-
```bash
|
|
93
|
-
pnpm add @ai-sdk/anthropic
|
|
94
|
-
```
|
|
95
|
-
|
|
96
|
-
**Yarn**:
|
|
97
|
-
|
|
98
|
-
```bash
|
|
99
|
-
yarn add @ai-sdk/anthropic
|
|
100
|
-
```
|
|
101
|
-
|
|
102
|
-
**Bun**:
|
|
103
|
-
|
|
104
|
-
```bash
|
|
105
|
-
bun add @ai-sdk/anthropic
|
|
106
78
|
```
|
|
@@ -96,34 +96,4 @@ const agent = new Agent({
|
|
|
96
96
|
: "togetherai/LiquidAI/LFM2-24B-A2B";
|
|
97
97
|
}
|
|
98
98
|
});
|
|
99
|
-
```
|
|
100
|
-
|
|
101
|
-
## Direct provider installation
|
|
102
|
-
|
|
103
|
-
This provider can also be installed directly as a standalone package, which can be used instead of the Mastra model router string. View the [package documentation](https://www.npmjs.com/package/@ai-sdk/togetherai) for more details.
|
|
104
|
-
|
|
105
|
-
**npm**:
|
|
106
|
-
|
|
107
|
-
```bash
|
|
108
|
-
npm install @ai-sdk/togetherai
|
|
109
|
-
```
|
|
110
|
-
|
|
111
|
-
**pnpm**:
|
|
112
|
-
|
|
113
|
-
```bash
|
|
114
|
-
pnpm add @ai-sdk/togetherai
|
|
115
|
-
```
|
|
116
|
-
|
|
117
|
-
**Yarn**:
|
|
118
|
-
|
|
119
|
-
```bash
|
|
120
|
-
yarn add @ai-sdk/togetherai
|
|
121
|
-
```
|
|
122
|
-
|
|
123
|
-
**Bun**:
|
|
124
|
-
|
|
125
|
-
```bash
|
|
126
|
-
bun add @ai-sdk/togetherai
|
|
127
|
-
```
|
|
128
|
-
|
|
129
|
-
For detailed provider-specific documentation, see the [AI SDK Together AI provider docs](https://ai-sdk.dev/providers/ai-sdk-providers/togetherai).
|
|
99
|
+
```
|
|
@@ -100,32 +100,4 @@ const agent = new Agent({
|
|
|
100
100
|
: "vivgrid/claude-fable-5";
|
|
101
101
|
}
|
|
102
102
|
});
|
|
103
|
-
```
|
|
104
|
-
|
|
105
|
-
## Direct provider installation
|
|
106
|
-
|
|
107
|
-
This provider can also be installed directly as a standalone package, which can be used instead of the Mastra model router string. View the [package documentation](https://www.npmjs.com/package/@ai-sdk/openai) for more details.
|
|
108
|
-
|
|
109
|
-
**npm**:
|
|
110
|
-
|
|
111
|
-
```bash
|
|
112
|
-
npm install @ai-sdk/openai
|
|
113
|
-
```
|
|
114
|
-
|
|
115
|
-
**pnpm**:
|
|
116
|
-
|
|
117
|
-
```bash
|
|
118
|
-
pnpm add @ai-sdk/openai
|
|
119
|
-
```
|
|
120
|
-
|
|
121
|
-
**Yarn**:
|
|
122
|
-
|
|
123
|
-
```bash
|
|
124
|
-
yarn add @ai-sdk/openai
|
|
125
|
-
```
|
|
126
|
-
|
|
127
|
-
**Bun**:
|
|
128
|
-
|
|
129
|
-
```bash
|
|
130
|
-
bun add @ai-sdk/openai
|
|
131
103
|
```
|