@mastra/mcp-docs-server 1.2.13-alpha.8 → 1.2.13
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/agents/overview.md +1 -1
- package/.docs/docs/agents/supervisor-agents.md +2 -2
- package/.docs/docs/agents/using-tools.md +29 -0
- package/.docs/docs/capabilities/channels/imessage.md +181 -0
- package/.docs/docs/capabilities/channels/overview.md +1 -0
- package/.docs/docs/{evals/datasets → datasets}/overview.md +3 -3
- package/.docs/docs/{evals/datasets → datasets}/running-experiments.md +59 -2
- package/.docs/docs/editor/overview.md +201 -206
- package/.docs/docs/evals/evals-with-memory.md +1 -1
- package/.docs/docs/getting-started/develop.md +196 -0
- package/.docs/docs/index.md +78 -1
- package/.docs/docs/mastra-platform/workspaces.md +13 -13
- package/.docs/docs/memory/observational-memory.md +23 -0
- package/.docs/docs/studio/observability.md +4 -0
- package/.docs/docs/studio/overview.md +2 -2
- package/.docs/docs/workspace/search.md +1 -1
- package/.docs/guides/getting-started/quickstart.md +3 -3
- package/.docs/{docs → guides}/rag/chunking-and-embedding.md +1 -1
- package/.docs/{docs → guides}/rag/graph-rag.md +1 -1
- package/.docs/{docs → guides}/rag/overview.md +2 -2
- package/.docs/{docs → guides}/rag/retrieval.md +1 -1
- package/.docs/{docs → guides}/voice/overview.md +4 -4
- package/.docs/{docs → guides}/voice/realtime-voice.md +2 -2
- package/.docs/{docs → guides}/voice/speech-to-speech.md +1 -1
- package/.docs/{docs → guides}/voice/speech-to-text.md +1 -1
- package/.docs/{docs → guides}/voice/text-to-speech.md +2 -2
- package/.docs/models/embeddings.md +63 -65
- package/.docs/models/environment-variables.md +5 -1
- package/.docs/models/gateways/netlify.md +1 -2
- package/.docs/models/gateways/openrouter.md +5 -3
- package/.docs/models/gateways/vercel.md +8 -1
- package/.docs/models/index.md +1 -1
- package/.docs/models/providers/alibaba-cn.md +3 -1
- package/.docs/models/providers/alibaba-token-plan-cn.md +27 -25
- package/.docs/models/providers/alibaba-token-plan.md +27 -25
- package/.docs/models/providers/alibaba.md +2 -1
- package/.docs/models/providers/ambient.md +13 -12
- package/.docs/models/providers/baseten.md +3 -1
- package/.docs/models/providers/chutes.md +6 -8
- package/.docs/models/providers/crof.md +2 -1
- package/.docs/models/providers/crossmodel.md +7 -3
- package/.docs/models/providers/deepinfra.md +9 -2
- package/.docs/models/providers/digitalocean.md +34 -27
- package/.docs/models/providers/empiriolabs.md +4 -1
- package/.docs/models/providers/fireworks-ai.md +20 -19
- package/.docs/models/providers/greenpt.md +17 -8
- package/.docs/models/providers/groq.md +20 -20
- package/.docs/models/providers/huggingface.md +3 -1
- package/.docs/models/providers/hyper.md +9 -7
- package/.docs/models/providers/impossibl.md +148 -0
- package/.docs/models/providers/infomaniak.md +83 -0
- package/.docs/models/providers/kilo.md +349 -350
- package/.docs/models/providers/llmgateway.md +6 -3
- package/.docs/models/providers/mistral.md +5 -2
- package/.docs/models/providers/modal.md +5 -4
- package/.docs/models/providers/modelis.md +81 -0
- package/.docs/models/providers/nano-gpt.md +146 -148
- package/.docs/models/providers/neuralwatt.md +2 -1
- package/.docs/models/providers/ofox.md +2 -2
- package/.docs/models/providers/ollama-cloud.md +23 -22
- package/.docs/models/providers/opencode-go.md +3 -2
- package/.docs/models/providers/requesty.md +54 -45
- package/.docs/models/providers/scx.md +74 -0
- package/.docs/models/providers/tensorx.md +97 -0
- package/.docs/models/providers/togetherai.md +2 -1
- package/.docs/models/providers/umans-ai-coding-plan.md +11 -9
- package/.docs/models/providers/umans-ai.md +11 -9
- package/.docs/models/providers/wandb.md +2 -2
- package/.docs/models/providers/zai-coding-plan.md +11 -13
- package/.docs/models/providers/zhipuai-coding-plan.md +12 -12
- package/.docs/models/providers.md +5 -1
- package/.docs/reference/agents/agent.md +1 -1
- package/.docs/reference/agents/generate.md +1 -1
- package/.docs/reference/agents/getVoice.md +1 -1
- package/.docs/{docs/getting-started → reference}/build-with-ai.md +5 -110
- package/.docs/reference/cli/create-mastra.md +2 -0
- package/.docs/reference/cli/mastra.md +66 -1
- package/.docs/reference/client-js/agents.md +1 -1
- package/.docs/reference/configuration.md +2 -2
- package/.docs/reference/core/getEditor.md +1 -1
- package/.docs/reference/core/getVector.md +2 -2
- package/.docs/reference/core/listVectors.md +2 -2
- package/.docs/reference/core/mastra-class.md +1 -1
- package/.docs/reference/datasets/startExperiment.md +6 -0
- package/.docs/reference/datasets/startExperimentAsync.md +4 -0
- package/.docs/reference/editor/browser-provider.md +2 -2
- package/.docs/reference/editor/filesystem-provider.md +1 -1
- package/.docs/reference/editor/mastra-editor.md +31 -18
- package/.docs/reference/editor/prompt-blocks.md +137 -0
- package/.docs/reference/editor/sandbox-provider.md +1 -1
- package/.docs/reference/editor/storage-browser-ref.md +3 -3
- package/.docs/reference/editor/storage-workspace-ref.md +3 -3
- package/.docs/reference/editor/tool-provider.md +44 -10
- package/.docs/reference/editor/tools.md +100 -0
- package/.docs/reference/editor/versioning.md +130 -0
- package/.docs/reference/evals/mastra-scorer.md +68 -8
- package/.docs/reference/file-based-agents/config.md +39 -1
- package/.docs/reference/index.md +3 -4
- package/.docs/reference/memory/observational-memory.md +3 -1
- package/.docs/reference/memory/serialized-memory-config.md +3 -3
- package/.docs/reference/observability/tracing/interfaces.md +3 -1
- package/.docs/reference/processors/token-limiter-processor.md +15 -1
- package/.docs/reference/project-structure.md +1 -1
- package/.docs/reference/rag/database-config.md +1 -1
- package/.docs/reference/storage/composite.md +2 -0
- package/.docs/reference/streaming/agents/stream.md +1 -1
- package/.docs/reference/voice/livekit.md +3 -3
- package/.docs/reference/workspace/platform-filesystem.md +3 -3
- package/.docs/reference/workspace/platform-sandbox.md +5 -5
- package/CHANGELOG.md +30 -0
- package/README.md +1 -1
- package/package.json +6 -6
- package/.docs/docs/agent-builder/access-control.md +0 -99
- package/.docs/docs/agent-builder/browser.md +0 -63
- package/.docs/docs/agent-builder/channels.md +0 -78
- package/.docs/docs/agent-builder/configuration.md +0 -132
- package/.docs/docs/agent-builder/deploying.md +0 -124
- package/.docs/docs/agent-builder/integrations.md +0 -115
- package/.docs/docs/agent-builder/memory.md +0 -69
- package/.docs/docs/agent-builder/model-policy.md +0 -50
- package/.docs/docs/agent-builder/overview.md +0 -114
- package/.docs/docs/agent-builder/skill-registries.md +0 -31
- package/.docs/docs/agent-builder/workspace.md +0 -62
- package/.docs/docs/editor/prompts.md +0 -140
- package/.docs/docs/editor/tools.md +0 -148
- package/.docs/docs/getting-started/file-based-agents.md +0 -121
- package/.docs/docs/what-is-mastra.md +0 -161
- package/.docs/reference/client-js/agent-builder.md +0 -163
- package/.docs/reference/editor/agent-builder/agent-builder-options.md +0 -76
- package/.docs/reference/editor/agent-builder/builder-agent-defaults.md +0 -79
- package/.docs/reference/editor/agent-builder/builder-models.md +0 -66
- /package/.docs/{docs → guides}/getting-started/manual-install.md +0 -0
- /package/.docs/{docs → guides}/rag/vector-databases.md +0 -0
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# Neuralwatt
|
|
4
4
|
|
|
5
|
-
Access
|
|
5
|
+
Access 21 Neuralwatt models through Mastra's model router. Authentication is handled automatically using the `NEURALWATT_API_KEY` environment variable.
|
|
6
6
|
|
|
7
7
|
Learn more in the [Neuralwatt documentation](https://portal.neuralwatt.com/docs).
|
|
8
8
|
|
|
@@ -49,6 +49,7 @@ for await (const chunk of stream) {
|
|
|
49
49
|
| `neuralwatt/kimi-k2.6-fast` | 262K | | | | | | $0.69 | $3 |
|
|
50
50
|
| `neuralwatt/kimi-k2.6-flex` | 262K | | | | | | $0.34 | $2 |
|
|
51
51
|
| `neuralwatt/kimi-k2.7-code-flex` | 262K | | | | | | $0.47 | $2 |
|
|
52
|
+
| `neuralwatt/kimi-k3` | 1.0M | | | | | | $3 | $15 |
|
|
52
53
|
| `neuralwatt/moonshotai/Kimi-K2.5` | 262K | | | | | | $0.52 | $3 |
|
|
53
54
|
| `neuralwatt/moonshotai/Kimi-K2.6` | 262K | | | | | | $0.69 | $3 |
|
|
54
55
|
| `neuralwatt/moonshotai/Kimi-K2.7-Code` | 262K | | | | | | $0.95 | $4 |
|
|
@@ -44,9 +44,9 @@ for await (const chunk of stream) {
|
|
|
44
44
|
| `ofox/google/gemini-3.1-pro-preview` | 1.0M | | | | | | $2 | $12 |
|
|
45
45
|
| `ofox/moonshotai/kimi-k2.6` | 262K | | | | | | $0.95 | $4 |
|
|
46
46
|
| `ofox/openai/gpt-5.5` | 1.1M | | | | | | $5 | $30 |
|
|
47
|
-
| `ofox/openai/gpt-5.6-luna` | 1.1M | | | | | | $
|
|
47
|
+
| `ofox/openai/gpt-5.6-luna` | 1.1M | | | | | | $0.20 | $1 |
|
|
48
48
|
| `ofox/openai/gpt-5.6-sol` | 1.1M | | | | | | $5 | $30 |
|
|
49
|
-
| `ofox/openai/gpt-5.6-terra` | 1.1M | | | | | | $
|
|
49
|
+
| `ofox/openai/gpt-5.6-terra` | 1.1M | | | | | | $2 | $12 |
|
|
50
50
|
| `ofox/x-ai/grok-4.3` | 1.0M | | | | | | $1 | $3 |
|
|
51
51
|
| `ofox/z-ai/glm-5.2` | 1.0M | | | | | | $1 | $4 |
|
|
52
52
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# Ollama Cloud
|
|
4
4
|
|
|
5
|
-
Access
|
|
5
|
+
Access 20 Ollama Cloud models through Mastra's model router. Authentication is handled automatically using the `OLLAMA_API_KEY` environment variable.
|
|
6
6
|
|
|
7
7
|
Learn more in the [Ollama Cloud documentation](https://docs.ollama.com/cloud).
|
|
8
8
|
|
|
@@ -34,27 +34,28 @@ for await (const chunk of stream) {
|
|
|
34
34
|
|
|
35
35
|
## Models
|
|
36
36
|
|
|
37
|
-
| Model
|
|
38
|
-
|
|
|
39
|
-
| `ollama-cloud/deepseek-v4-flash`
|
|
40
|
-
| `ollama-cloud/deepseek-v4-
|
|
41
|
-
| `ollama-cloud/
|
|
42
|
-
| `ollama-cloud/
|
|
43
|
-
| `ollama-cloud/glm-5.
|
|
44
|
-
| `ollama-cloud/
|
|
45
|
-
| `ollama-cloud/gpt-oss:
|
|
46
|
-
| `ollama-cloud/
|
|
47
|
-
| `ollama-cloud/kimi-k2.
|
|
48
|
-
| `ollama-cloud/kimi-k2.
|
|
49
|
-
| `ollama-cloud/kimi-
|
|
50
|
-
| `ollama-cloud/
|
|
51
|
-
| `ollama-cloud/minimax-m2.
|
|
52
|
-
| `ollama-cloud/minimax-
|
|
53
|
-
| `ollama-cloud/
|
|
54
|
-
| `ollama-cloud/
|
|
55
|
-
| `ollama-cloud/nemotron-3-
|
|
56
|
-
| `ollama-cloud/nemotron-3-
|
|
57
|
-
| `ollama-cloud/
|
|
37
|
+
| Model | Context | Tools | Reasoning | Image | Audio | Video | Input $/1M | Output $/1M |
|
|
38
|
+
| ------------------------------------- | ------- | ----- | --------- | ----- | ----- | ----- | ---------- | ----------- |
|
|
39
|
+
| `ollama-cloud/deepseek-v4-flash` | 1.0M | | | | | | — | — |
|
|
40
|
+
| `ollama-cloud/deepseek-v4-flash:0731` | 1.0M | | | | | | — | — |
|
|
41
|
+
| `ollama-cloud/deepseek-v4-pro` | 1.0M | | | | | | — | — |
|
|
42
|
+
| `ollama-cloud/gemma4:31b` | 262K | | | | | | — | — |
|
|
43
|
+
| `ollama-cloud/glm-5.1` | 203K | | | | | | — | — |
|
|
44
|
+
| `ollama-cloud/glm-5.2` | 976K | | | | | | — | — |
|
|
45
|
+
| `ollama-cloud/gpt-oss:120b` | 131K | | | | | | — | — |
|
|
46
|
+
| `ollama-cloud/gpt-oss:20b` | 131K | | | | | | — | — |
|
|
47
|
+
| `ollama-cloud/kimi-k2.5` | 262K | | | | | | — | — |
|
|
48
|
+
| `ollama-cloud/kimi-k2.6` | 262K | | | | | | — | — |
|
|
49
|
+
| `ollama-cloud/kimi-k2.7-code` | 262K | | | | | | — | — |
|
|
50
|
+
| `ollama-cloud/kimi-k3` | 1.0M | | | | | | — | — |
|
|
51
|
+
| `ollama-cloud/minimax-m2.5` | 205K | | | | | | — | — |
|
|
52
|
+
| `ollama-cloud/minimax-m2.7` | 197K | | | | | | — | — |
|
|
53
|
+
| `ollama-cloud/minimax-m3` | 512K | | | | | | — | — |
|
|
54
|
+
| `ollama-cloud/mistral-large-3:675b` | 262K | | | | | | — | — |
|
|
55
|
+
| `ollama-cloud/nemotron-3-nano:30b` | 1.0M | | | | | | — | — |
|
|
56
|
+
| `ollama-cloud/nemotron-3-super` | 262K | | | | | | — | — |
|
|
57
|
+
| `ollama-cloud/nemotron-3-ultra` | 262K | | | | | | — | — |
|
|
58
|
+
| `ollama-cloud/qwen3.5:397b` | 262K | | | | | | — | — |
|
|
58
59
|
|
|
59
60
|
## Advanced configuration
|
|
60
61
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# OpenCode Go
|
|
4
4
|
|
|
5
|
-
Access
|
|
5
|
+
Access 24 OpenCode Go models through Mastra's model router. Authentication is handled automatically using the `OPENCODE_API_KEY` environment variable.
|
|
6
6
|
|
|
7
7
|
Learn more in the [OpenCode Go documentation](https://opencode.ai/docs/zen).
|
|
8
8
|
|
|
@@ -53,6 +53,7 @@ for await (const chunk of stream) {
|
|
|
53
53
|
| `opencode-go/qwen3.6-plus` | 1.0M | | | | | | $0.50 | $3 |
|
|
54
54
|
| `opencode-go/qwen3.7-max` | 1.0M | | | | | | $3 | $8 |
|
|
55
55
|
| `opencode-go/qwen3.7-plus` | 1.0M | | | | | | $0.40 | $2 |
|
|
56
|
+
| `opencode-go/qwen3.8-max` | 1.0M | | | | | | $2 | $6 |
|
|
56
57
|
|
|
57
58
|
## Advanced configuration
|
|
58
59
|
|
|
@@ -82,7 +83,7 @@ const agent = new Agent({
|
|
|
82
83
|
model: ({ requestContext }) => {
|
|
83
84
|
const useAdvanced = requestContext.task === "complex";
|
|
84
85
|
return useAdvanced
|
|
85
|
-
? "opencode-go/qwen3.
|
|
86
|
+
? "opencode-go/qwen3.8-max"
|
|
86
87
|
: "opencode-go/deepseek-v4-flash";
|
|
87
88
|
}
|
|
88
89
|
});
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# Requesty
|
|
4
4
|
|
|
5
|
-
Access
|
|
5
|
+
Access 47 Requesty models through Mastra's model router. Authentication is handled automatically using the `REQUESTY_API_KEY` environment variable.
|
|
6
6
|
|
|
7
7
|
Learn more in the [Requesty documentation](https://requesty.ai/solution/llm-routing/models).
|
|
8
8
|
|
|
@@ -17,7 +17,7 @@ const agent = new Agent({
|
|
|
17
17
|
id: "my-agent",
|
|
18
18
|
name: "My Agent",
|
|
19
19
|
instructions: "You are a helpful assistant",
|
|
20
|
-
model: "requesty/
|
|
20
|
+
model: "requesty/claude-fable-5"
|
|
21
21
|
});
|
|
22
22
|
|
|
23
23
|
// Generate a response
|
|
@@ -34,46 +34,55 @@ for await (const chunk of stream) {
|
|
|
34
34
|
|
|
35
35
|
## Models
|
|
36
36
|
|
|
37
|
-
| Model
|
|
38
|
-
|
|
|
39
|
-
| `requesty/
|
|
40
|
-
| `requesty/
|
|
41
|
-
| `requesty/
|
|
42
|
-
| `requesty/
|
|
43
|
-
| `requesty/
|
|
44
|
-
| `requesty/
|
|
45
|
-
| `requesty/
|
|
46
|
-
| `requesty/
|
|
47
|
-
| `requesty/
|
|
48
|
-
| `requesty/
|
|
49
|
-
| `requesty/
|
|
50
|
-
| `requesty/
|
|
51
|
-
| `requesty/
|
|
52
|
-
| `requesty/
|
|
53
|
-
| `requesty/
|
|
54
|
-
| `requesty/
|
|
55
|
-
| `requesty/
|
|
56
|
-
| `requesty/
|
|
57
|
-
| `requesty/
|
|
58
|
-
| `requesty/
|
|
59
|
-
| `requesty/
|
|
60
|
-
| `requesty/
|
|
61
|
-
| `requesty/
|
|
62
|
-
| `requesty/
|
|
63
|
-
| `requesty/
|
|
64
|
-
| `requesty/
|
|
65
|
-
| `requesty/
|
|
66
|
-
| `requesty/
|
|
67
|
-
| `requesty/
|
|
68
|
-
| `requesty/
|
|
69
|
-
| `requesty/
|
|
70
|
-
| `requesty/
|
|
71
|
-
| `requesty/
|
|
72
|
-
| `requesty/
|
|
73
|
-
| `requesty/
|
|
74
|
-
| `requesty/
|
|
75
|
-
| `requesty/
|
|
76
|
-
| `requesty/
|
|
37
|
+
| Model | Context | Tools | Reasoning | Image | Audio | Video | Input $/1M | Output $/1M |
|
|
38
|
+
| ------------------------------------ | ------- | ----- | --------- | ----- | ----- | ----- | ---------- | ----------- |
|
|
39
|
+
| `requesty/claude-fable-5` | 1.0M | | | | | | $10 | $50 |
|
|
40
|
+
| `requesty/claude-haiku-4-5` | 200K | | | | | | $1 | $5 |
|
|
41
|
+
| `requesty/claude-haiku-4-5@eu` | 200K | | | | | | $1 | $6 |
|
|
42
|
+
| `requesty/claude-opus-4-1` | 200K | | | | | | $15 | $75 |
|
|
43
|
+
| `requesty/claude-opus-4-5` | 200K | | | | | | $5 | $25 |
|
|
44
|
+
| `requesty/claude-opus-4-5@eu` | 200K | | | | | | $6 | $28 |
|
|
45
|
+
| `requesty/claude-opus-4-6` | 1.0M | | | | | | $5 | $25 |
|
|
46
|
+
| `requesty/claude-opus-4-6@eu` | 1.0M | | | | | | $6 | $28 |
|
|
47
|
+
| `requesty/claude-opus-4-7` | 1.0M | | | | | | $5 | $25 |
|
|
48
|
+
| `requesty/claude-opus-4-7@eu` | 1.0M | | | | | | $6 | $28 |
|
|
49
|
+
| `requesty/claude-opus-4-8` | 1.0M | | | | | | $5 | $25 |
|
|
50
|
+
| `requesty/claude-opus-4-8@eu` | 1.0M | | | | | | $6 | $28 |
|
|
51
|
+
| `requesty/claude-opus-5` | 1.0M | | | | | | $5 | $25 |
|
|
52
|
+
| `requesty/claude-opus-5@eu` | 1.0M | | | | | | $6 | $28 |
|
|
53
|
+
| `requesty/claude-sonnet-4-5` | 1.0M | | | | | | $3 | $15 |
|
|
54
|
+
| `requesty/claude-sonnet-4-5@eu` | 1.0M | | | | | | $3 | $17 |
|
|
55
|
+
| `requesty/claude-sonnet-4-6` | 1.0M | | | | | | $3 | $15 |
|
|
56
|
+
| `requesty/claude-sonnet-4-6@eu` | 1.0M | | | | | | $3 | $17 |
|
|
57
|
+
| `requesty/claude-sonnet-4@eu` | 1.0M | | | | | | $3 | $15 |
|
|
58
|
+
| `requesty/claude-sonnet-5` | 1.0M | | | | | | $2 | $10 |
|
|
59
|
+
| `requesty/claude-sonnet-5@eu` | 1.0M | | | | | | $2 | $11 |
|
|
60
|
+
| `requesty/deepseek-v4-flash-0731` | 1.0M | | | | | | $0.14 | $0.28 |
|
|
61
|
+
| `requesty/deepseek-v4-flash-0731@eu` | 1.0M | | | | | | $0.14 | $0.28 |
|
|
62
|
+
| `requesty/gemini-2.5-flash@eu` | 1.0M | | | | | | $0.30 | $3 |
|
|
63
|
+
| `requesty/gemini-3.1-flash-lite@eu` | 1.0M | | | | | | $0.25 | $2 |
|
|
64
|
+
| `requesty/gemini-3.5-flash-lite` | 1.0M | | | | | | $0.30 | $3 |
|
|
65
|
+
| `requesty/gemini-3.5-flash@eu` | 1.0M | | | | | | $2 | $9 |
|
|
66
|
+
| `requesty/gemini-3.6-flash` | 1.0M | | | | | | $2 | $7 |
|
|
67
|
+
| `requesty/glm-5.2` | 1.0M | | | | | | $1 | $4 |
|
|
68
|
+
| `requesty/glm-5.2@eu` | 1.0M | | | | | | $1 | $4 |
|
|
69
|
+
| `requesty/gpt-4.1-mini@eu` | 1.0M | | | | | | $0.44 | $2 |
|
|
70
|
+
| `requesty/gpt-4.1-nano@eu` | 1.0M | | | | | | $0.11 | $0.44 |
|
|
71
|
+
| `requesty/gpt-4.1@eu` | 1.0M | | | | | | $2 | $9 |
|
|
72
|
+
| `requesty/gpt-4o-mini@eu` | 128K | | | | | | $0.17 | $0.66 |
|
|
73
|
+
| `requesty/gpt-5-mini@eu` | 200K | | | | | | $0.28 | $2 |
|
|
74
|
+
| `requesty/gpt-5-nano@eu` | 200K | | | | | | $0.06 | $0.44 |
|
|
75
|
+
| `requesty/gpt-5.1@eu` | 400K | | | | | | $1 | $11 |
|
|
76
|
+
| `requesty/gpt-5.4@eu` | 1.1M | | | | | | $3 | $15 |
|
|
77
|
+
| `requesty/gpt-5.5@eu` | 1.1M | | | | | | $5 | $30 |
|
|
78
|
+
| `requesty/gpt-5.6-luna@eu` | 1.1M | | | | | | $1 | $7 |
|
|
79
|
+
| `requesty/gpt-5.6-sol@eu` | 1.1M | | | | | | $6 | $33 |
|
|
80
|
+
| `requesty/gpt-5.6-terra@eu` | 1.1M | | | | | | $3 | $17 |
|
|
81
|
+
| `requesty/gpt-5@eu` | 400K | | | | | | $1 | $11 |
|
|
82
|
+
| `requesty/grok-4.5` | 500K | | | | | | $2 | $6 |
|
|
83
|
+
| `requesty/kimi-k3` | 1.0M | | | | | | $2 | $11 |
|
|
84
|
+
| `requesty/kimi-k3@eu` | 1.0M | | | | | | $2 | $11 |
|
|
85
|
+
| `requesty/o4-mini@eu` | 200K | | | | | | $1 | $5 |
|
|
77
86
|
|
|
78
87
|
## Advanced configuration
|
|
79
88
|
|
|
@@ -85,7 +94,7 @@ const agent = new Agent({
|
|
|
85
94
|
name: "custom-agent",
|
|
86
95
|
model: {
|
|
87
96
|
url: "https://router.requesty.ai/v1",
|
|
88
|
-
id: "requesty/
|
|
97
|
+
id: "requesty/claude-fable-5",
|
|
89
98
|
apiKey: process.env.REQUESTY_API_KEY,
|
|
90
99
|
headers: {
|
|
91
100
|
"X-Custom-Header": "value"
|
|
@@ -103,8 +112,8 @@ const agent = new Agent({
|
|
|
103
112
|
model: ({ requestContext }) => {
|
|
104
113
|
const useAdvanced = requestContext.task === "complex";
|
|
105
114
|
return useAdvanced
|
|
106
|
-
? "requesty/
|
|
107
|
-
: "requesty/
|
|
115
|
+
? "requesty/o4-mini@eu"
|
|
116
|
+
: "requesty/claude-fable-5";
|
|
108
117
|
}
|
|
109
118
|
});
|
|
110
119
|
```
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
> Discover all available pages from the documentation index: https://mastra.ai/llms.txt
|
|
2
|
+
|
|
3
|
+
# SCX.ai
|
|
4
|
+
|
|
5
|
+
Access 2 SCX.ai models through Mastra's model router. Authentication is handled automatically using the `SCX_API_KEY` environment variable.
|
|
6
|
+
|
|
7
|
+
Learn more in the [SCX.ai documentation](https://platform.scx.ai/docs).
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
SCX_API_KEY=your-api-key
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { Agent } from "@mastra/core/agent";
|
|
15
|
+
|
|
16
|
+
const agent = new Agent({
|
|
17
|
+
id: "my-agent",
|
|
18
|
+
name: "My Agent",
|
|
19
|
+
instructions: "You are a helpful assistant",
|
|
20
|
+
model: "scx/MiniMax-M2.7"
|
|
21
|
+
});
|
|
22
|
+
|
|
23
|
+
// Generate a response
|
|
24
|
+
const response = await agent.generate("Hello!");
|
|
25
|
+
|
|
26
|
+
// Stream a response
|
|
27
|
+
const stream = await agent.stream("Tell me a story");
|
|
28
|
+
for await (const chunk of stream) {
|
|
29
|
+
console.log(chunk);
|
|
30
|
+
}
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
> **Info:** Mastra uses the OpenAI-compatible `/chat/completions` endpoint. Some provider-specific features may not be available. Check the [SCX.ai documentation](https://platform.scx.ai/docs) for details.
|
|
34
|
+
|
|
35
|
+
## Models
|
|
36
|
+
|
|
37
|
+
| Model | Context | Tools | Reasoning | Image | Audio | Video | Input $/1M | Output $/1M |
|
|
38
|
+
| ------------------ | ------- | ----- | --------- | ----- | ----- | ----- | ---------- | ----------- |
|
|
39
|
+
| `scx/gpt-oss-120b` | 131K | | | | | | $0.17 | $0.55 |
|
|
40
|
+
| `scx/MiniMax-M2.7` | 192K | | | | | | $0.48 | $2 |
|
|
41
|
+
|
|
42
|
+
## Advanced configuration
|
|
43
|
+
|
|
44
|
+
### Custom headers
|
|
45
|
+
|
|
46
|
+
```typescript
|
|
47
|
+
const agent = new Agent({
|
|
48
|
+
id: "custom-agent",
|
|
49
|
+
name: "custom-agent",
|
|
50
|
+
model: {
|
|
51
|
+
url: "https://api.scx.ai/v1",
|
|
52
|
+
id: "scx/MiniMax-M2.7",
|
|
53
|
+
apiKey: process.env.SCX_API_KEY,
|
|
54
|
+
headers: {
|
|
55
|
+
"X-Custom-Header": "value"
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
});
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
### Dynamic model selection
|
|
62
|
+
|
|
63
|
+
```typescript
|
|
64
|
+
const agent = new Agent({
|
|
65
|
+
id: "dynamic-agent",
|
|
66
|
+
name: "Dynamic Agent",
|
|
67
|
+
model: ({ requestContext }) => {
|
|
68
|
+
const useAdvanced = requestContext.task === "complex";
|
|
69
|
+
return useAdvanced
|
|
70
|
+
? "scx/gpt-oss-120b"
|
|
71
|
+
: "scx/MiniMax-M2.7";
|
|
72
|
+
}
|
|
73
|
+
});
|
|
74
|
+
```
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
> Discover all available pages from the documentation index: https://mastra.ai/llms.txt
|
|
2
|
+
|
|
3
|
+
# TensorX
|
|
4
|
+
|
|
5
|
+
Access 25 TensorX models through Mastra's model router. Authentication is handled automatically using the `TENSORX_API_KEY` environment variable.
|
|
6
|
+
|
|
7
|
+
Learn more in the [TensorX documentation](https://docs.tensorx.ai/).
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
TENSORX_API_KEY=your-api-key
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { Agent } from "@mastra/core/agent";
|
|
15
|
+
|
|
16
|
+
const agent = new Agent({
|
|
17
|
+
id: "my-agent",
|
|
18
|
+
name: "My Agent",
|
|
19
|
+
instructions: "You are a helpful assistant",
|
|
20
|
+
model: "tensorx/deepseek/deepseek-chat-v3.1"
|
|
21
|
+
});
|
|
22
|
+
|
|
23
|
+
// Generate a response
|
|
24
|
+
const response = await agent.generate("Hello!");
|
|
25
|
+
|
|
26
|
+
// Stream a response
|
|
27
|
+
const stream = await agent.stream("Tell me a story");
|
|
28
|
+
for await (const chunk of stream) {
|
|
29
|
+
console.log(chunk);
|
|
30
|
+
}
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
> **Info:** Mastra uses the OpenAI-compatible `/chat/completions` endpoint. Some provider-specific features may not be available. Check the [TensorX documentation](https://docs.tensorx.ai/) for details.
|
|
34
|
+
|
|
35
|
+
## Models
|
|
36
|
+
|
|
37
|
+
| Model | Context | Tools | Reasoning | Image | Audio | Video | Input $/1M | Output $/1M |
|
|
38
|
+
| ------------------------------------------- | ------- | ----- | --------- | ----- | ----- | ----- | ---------- | ----------- |
|
|
39
|
+
| `tensorx/deepseek/deepseek-chat-v3.1` | 164K | | | | | | $0.20 | $0.80 |
|
|
40
|
+
| `tensorx/deepseek/deepseek-r1-0528` | 164K | | | | | | $0.66 | $3 |
|
|
41
|
+
| `tensorx/deepseek/deepseek-v3.2` | 164K | | | | | | $0.30 | $0.50 |
|
|
42
|
+
| `tensorx/deepseek/deepseek-v4-flash` | 1.0M | | | | | | $0.15 | $0.30 |
|
|
43
|
+
| `tensorx/deepseek/deepseek-v4-flash-0731` | 1.0M | | | | | | $0.25 | $0.30 |
|
|
44
|
+
| `tensorx/deepseek/deepseek-v4-pro` | 1.0M | | | | | | $2 | $4 |
|
|
45
|
+
| `tensorx/minimax/minimax-m2.5` | 197K | | | | | | $0.30 | $1 |
|
|
46
|
+
| `tensorx/minimax/minimax-m3` | 1.0M | | | | | | $0.40 | $2 |
|
|
47
|
+
| `tensorx/moonshotai/kimi-k2.5` | 262K | | | | | | $0.50 | $3 |
|
|
48
|
+
| `tensorx/moonshotai/kimi-k2.6` | 262K | | | | | | $1 | $4 |
|
|
49
|
+
| `tensorx/moonshotai/kimi-k2.7-code` | 262K | | | | | | $1 | $5 |
|
|
50
|
+
| `tensorx/moonshotai/kimi-k3` | 1.0M | | | | | | $3 | $15 |
|
|
51
|
+
| `tensorx/nvidia/nemotron-3-super-120b-a12b` | 262K | | | | | | $0.30 | $0.90 |
|
|
52
|
+
| `tensorx/openai/gpt-oss-120b` | 131K | | | | | | $0.04 | $0.20 |
|
|
53
|
+
| `tensorx/qwen/qwen3-235b-a22b-2507` | 131K | | | | | | $0.07 | $0.46 |
|
|
54
|
+
| `tensorx/qwen/qwen3-coder-30b-a3b-instruct` | 262K | | | | | | $0.06 | $0.25 |
|
|
55
|
+
| `tensorx/qwen/qwen3-vl-235b-a22b-instruct` | 131K | | | | | | $0.21 | $2 |
|
|
56
|
+
| `tensorx/qwen/qwen3.5-122b-a10b` | 262K | | | | | | $0.50 | $4 |
|
|
57
|
+
| `tensorx/qwen/qwen3.5-9b` | 262K | | | | | | $0.15 | $0.20 |
|
|
58
|
+
| `tensorx/z-ai/glm-4.7` | 200K | | | | | | $0.60 | $2 |
|
|
59
|
+
| `tensorx/z-ai/glm-5` | 203K | | | | | | $1 | $3 |
|
|
60
|
+
| `tensorx/z-ai/glm-5-turbo` | 203K | | | | | | $1 | $4 |
|
|
61
|
+
| `tensorx/z-ai/glm-5.1` | 203K | | | | | | $1 | $4 |
|
|
62
|
+
| `tensorx/z-ai/glm-5.2` | 1.0M | | | | | | $2 | $5 |
|
|
63
|
+
| `tensorx/z-ai/glm-5v-turbo` | 203K | | | | | | $1 | $4 |
|
|
64
|
+
|
|
65
|
+
## Advanced configuration
|
|
66
|
+
|
|
67
|
+
### Custom headers
|
|
68
|
+
|
|
69
|
+
```typescript
|
|
70
|
+
const agent = new Agent({
|
|
71
|
+
id: "custom-agent",
|
|
72
|
+
name: "custom-agent",
|
|
73
|
+
model: {
|
|
74
|
+
url: "https://api.tensorx.ai/v1",
|
|
75
|
+
id: "tensorx/deepseek/deepseek-chat-v3.1",
|
|
76
|
+
apiKey: process.env.TENSORX_API_KEY,
|
|
77
|
+
headers: {
|
|
78
|
+
"X-Custom-Header": "value"
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
});
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
### Dynamic model selection
|
|
85
|
+
|
|
86
|
+
```typescript
|
|
87
|
+
const agent = new Agent({
|
|
88
|
+
id: "dynamic-agent",
|
|
89
|
+
name: "Dynamic Agent",
|
|
90
|
+
model: ({ requestContext }) => {
|
|
91
|
+
const useAdvanced = requestContext.task === "complex";
|
|
92
|
+
return useAdvanced
|
|
93
|
+
? "tensorx/z-ai/glm-5v-turbo"
|
|
94
|
+
: "tensorx/deepseek/deepseek-chat-v3.1";
|
|
95
|
+
}
|
|
96
|
+
});
|
|
97
|
+
```
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# Together AI
|
|
4
4
|
|
|
5
|
-
Access
|
|
5
|
+
Access 35 Together AI models through Mastra's model router. Authentication is handled automatically using the `TOGETHER_API_KEY` environment variable.
|
|
6
6
|
|
|
7
7
|
Learn more in the [Together AI documentation](https://docs.together.ai/docs/serverless-models).
|
|
8
8
|
|
|
@@ -35,6 +35,7 @@ for await (const chunk of stream) {
|
|
|
35
35
|
| Model | Context | Tools | Reasoning | Image | Audio | Video | Input $/1M | Output $/1M |
|
|
36
36
|
| ----------------------------------------------------- | ------- | ----- | --------- | ----- | ----- | ----- | ---------- | ----------- |
|
|
37
37
|
| `togetherai/deepcogito/cogito-v2-1-671b` | 164K | | | | | | $1 | $1 |
|
|
38
|
+
| `togetherai/deepseek-ai/DeepSeek-V4-Flash-0731` | 1.0M | | | | | | $0.14 | $0.28 |
|
|
38
39
|
| `togetherai/deepseek-ai/DeepSeek-V4-Pro` | 512K | | | | | | $2 | $3 |
|
|
39
40
|
| `togetherai/google/gemma-3n-E4B-it` | 33K | | | | | | $0.06 | $0.12 |
|
|
40
41
|
| `togetherai/google/gemma-4-31B-it` | 262K | | | | | | $0.39 | $0.97 |
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# Umans AI Coding Plan
|
|
4
4
|
|
|
5
|
-
Access
|
|
5
|
+
Access 8 Umans AI Coding Plan models through Mastra's model router. Authentication is handled automatically using the `UMANS_AI_CODING_PLAN_API_KEY` environment variable.
|
|
6
6
|
|
|
7
7
|
Learn more in the [Umans AI Coding Plan documentation](https://app.umans.ai/offers/code/docs).
|
|
8
8
|
|
|
@@ -34,14 +34,16 @@ for await (const chunk of stream) {
|
|
|
34
34
|
|
|
35
35
|
## Models
|
|
36
36
|
|
|
37
|
-
| Model
|
|
38
|
-
|
|
|
39
|
-
| `umans-ai-coding-plan/umans-coder`
|
|
40
|
-
| `umans-ai-coding-plan/umans-flash`
|
|
41
|
-
| `umans-ai-coding-plan/umans-
|
|
42
|
-
| `umans-ai-coding-plan/umans-glm-5.
|
|
43
|
-
| `umans-ai-coding-plan/umans-
|
|
44
|
-
| `umans-ai-coding-plan/umans-
|
|
37
|
+
| Model | Context | Tools | Reasoning | Image | Audio | Video | Input $/1M | Output $/1M |
|
|
38
|
+
| --------------------------------------------------- | ------- | ----- | --------- | ----- | ----- | ----- | ---------- | ----------- |
|
|
39
|
+
| `umans-ai-coding-plan/umans-coder` | 262K | | | | | | — | — |
|
|
40
|
+
| `umans-ai-coding-plan/umans-deepseek-v4-flash-0731` | 1.0M | | | | | | — | — |
|
|
41
|
+
| `umans-ai-coding-plan/umans-flash` | 262K | | | | | | — | — |
|
|
42
|
+
| `umans-ai-coding-plan/umans-glm-5.1` | 205K | | | | | | — | — |
|
|
43
|
+
| `umans-ai-coding-plan/umans-glm-5.2` | 406K | | | | | | — | — |
|
|
44
|
+
| `umans-ai-coding-plan/umans-kimi-k2.7` | 262K | | | | | | — | — |
|
|
45
|
+
| `umans-ai-coding-plan/umans-kimi-k3` | 1.0M | | | | | | — | — |
|
|
46
|
+
| `umans-ai-coding-plan/umans-qwen3.6-35b-a3b` | 262K | | | | | | — | — |
|
|
45
47
|
|
|
46
48
|
## Advanced configuration
|
|
47
49
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# Umans AI
|
|
4
4
|
|
|
5
|
-
Access
|
|
5
|
+
Access 7 Umans AI models through Mastra's model router. Authentication is handled automatically using the `UMANS_AI_API_KEY` environment variable.
|
|
6
6
|
|
|
7
7
|
Learn more in the [Umans AI documentation](https://app.umans.ai/offers/code/docs/orgs).
|
|
8
8
|
|
|
@@ -34,13 +34,15 @@ for await (const chunk of stream) {
|
|
|
34
34
|
|
|
35
35
|
## Models
|
|
36
36
|
|
|
37
|
-
| Model
|
|
38
|
-
|
|
|
39
|
-
| `umans-ai/umans-coder`
|
|
40
|
-
| `umans-ai/umans-flash`
|
|
41
|
-
| `umans-ai/umans-
|
|
42
|
-
| `umans-ai/umans-glm-5.
|
|
43
|
-
| `umans-ai/umans-
|
|
37
|
+
| Model | Context | Tools | Reasoning | Image | Audio | Video | Input $/1M | Output $/1M |
|
|
38
|
+
| --------------------------------------- | ------- | ----- | --------- | ----- | ----- | ----- | ---------- | ----------- |
|
|
39
|
+
| `umans-ai/umans-coder` | 262K | | | | | | $0.95 | $4 |
|
|
40
|
+
| `umans-ai/umans-deepseek-v4-flash-0731` | 1.0M | | | | | | $0.14 | $0.28 |
|
|
41
|
+
| `umans-ai/umans-flash` | 262K | | | | | | $0.15 | $1 |
|
|
42
|
+
| `umans-ai/umans-glm-5.1` | 205K | | | | | | $1 | $4 |
|
|
43
|
+
| `umans-ai/umans-glm-5.2` | 406K | | | | | | $1 | $4 |
|
|
44
|
+
| `umans-ai/umans-kimi-k2.7` | 262K | | | | | | $0.95 | $4 |
|
|
45
|
+
| `umans-ai/umans-kimi-k3` | 1.0M | | | | | | $3 | $15 |
|
|
44
46
|
|
|
45
47
|
## Advanced configuration
|
|
46
48
|
|
|
@@ -70,7 +72,7 @@ const agent = new Agent({
|
|
|
70
72
|
model: ({ requestContext }) => {
|
|
71
73
|
const useAdvanced = requestContext.task === "complex";
|
|
72
74
|
return useAdvanced
|
|
73
|
-
? "umans-ai/umans-kimi-
|
|
75
|
+
? "umans-ai/umans-kimi-k3"
|
|
74
76
|
: "umans-ai/umans-coder";
|
|
75
77
|
}
|
|
76
78
|
});
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# Weights & Biases
|
|
4
4
|
|
|
5
|
-
Access
|
|
5
|
+
Access 27 Weights & Biases models through Mastra's model router. Authentication is handled automatically using the `WANDB_API_KEY` environment variable.
|
|
6
6
|
|
|
7
7
|
Learn more in the [Weights & Biases documentation](https://docs.wandb.ai).
|
|
8
8
|
|
|
@@ -38,6 +38,7 @@ for await (const chunk of stream) {
|
|
|
38
38
|
| ---------------------------------------------------- | ------- | ----- | --------- | ----- | ----- | ----- | ---------- | ----------- |
|
|
39
39
|
| `wandb/deepseek-ai/DeepSeek-V3.1` | 161K | | | | | | $0.55 | $2 |
|
|
40
40
|
| `wandb/deepseek-ai/DeepSeek-V4-Flash` | 1.0M | | | | | | $0.14 | $0.28 |
|
|
41
|
+
| `wandb/deepseek-ai/DeepSeek-V4-Flash-0731` | 262K | | | | | | $0.13 | $0.28 |
|
|
41
42
|
| `wandb/deepseek-ai/DeepSeek-V4-Pro` | 1.0M | | | | | | $2 | $3 |
|
|
42
43
|
| `wandb/google/gemma-4-31B-it` | 262K | | | | | | $0.10 | $0.34 |
|
|
43
44
|
| `wandb/ibm-granite/granite-4.1-8b` | 131K | | | | | | $0.05 | $0.10 |
|
|
@@ -47,7 +48,6 @@ for await (const chunk of stream) {
|
|
|
47
48
|
| `wandb/meta-llama/Llama-3.3-70B-Instruct` | 128K | | | | | | $0.71 | $0.71 |
|
|
48
49
|
| `wandb/MiniMaxAI/MiniMax-M2.5` | 197K | | | | | | $0.30 | $1 |
|
|
49
50
|
| `wandb/MiniMaxAI/MiniMax-M3` | 262K | | | | | | $0.23 | $0.96 |
|
|
50
|
-
| `wandb/moonshotai/Kimi-K2.5` | 262K | | | | | | $0.60 | $3 |
|
|
51
51
|
| `wandb/moonshotai/Kimi-K2.6` | 262K | | | | | | $0.65 | $3 |
|
|
52
52
|
| `wandb/moonshotai/Kimi-K2.7-Code` | 262K | | | | | | $0.71 | $4 |
|
|
53
53
|
| `wandb/moonshotai/Kimi-K3` | 1.0M | | | | | | $3 | $15 |
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# Z.AI Coding Plan
|
|
4
4
|
|
|
5
|
-
Access
|
|
5
|
+
Access 4 Z.AI Coding Plan models through Mastra's model router. Authentication is handled automatically using the `ZHIPU_API_KEY` environment variable.
|
|
6
6
|
|
|
7
7
|
Learn more in the [Z.AI Coding Plan documentation](https://docs.z.ai/devpack/overview).
|
|
8
8
|
|
|
@@ -17,7 +17,7 @@ const agent = new Agent({
|
|
|
17
17
|
id: "my-agent",
|
|
18
18
|
name: "My Agent",
|
|
19
19
|
instructions: "You are a helpful assistant",
|
|
20
|
-
model: "zai-coding-plan/glm-4.
|
|
20
|
+
model: "zai-coding-plan/glm-4.7"
|
|
21
21
|
});
|
|
22
22
|
|
|
23
23
|
// Generate a response
|
|
@@ -34,14 +34,12 @@ for await (const chunk of stream) {
|
|
|
34
34
|
|
|
35
35
|
## Models
|
|
36
36
|
|
|
37
|
-
| Model
|
|
38
|
-
|
|
|
39
|
-
| `zai-coding-plan/glm-4.
|
|
40
|
-
| `zai-coding-plan/glm-
|
|
41
|
-
| `zai-coding-plan/glm-5
|
|
42
|
-
| `zai-coding-plan/glm-5.
|
|
43
|
-
| `zai-coding-plan/glm-5.2` | 1.0M | | | | | | — | — |
|
|
44
|
-
| `zai-coding-plan/glm-5v-turbo` | 200K | | | | | | — | — |
|
|
37
|
+
| Model | Context | Tools | Reasoning | Image | Audio | Video | Input $/1M | Output $/1M |
|
|
38
|
+
| ----------------------------------- | ------- | ----- | --------- | ----- | ----- | ----- | ---------- | ----------- |
|
|
39
|
+
| `zai-coding-plan/glm-4.7` | 205K | | | | | | — | — |
|
|
40
|
+
| `zai-coding-plan/glm-5-turbo` | 200K | | | | | | — | — |
|
|
41
|
+
| `zai-coding-plan/glm-5.2` | 1.0M | | | | | | — | — |
|
|
42
|
+
| `zai-coding-plan/glm-5.2-highspeed` | 1.0M | | | | | | — | — |
|
|
45
43
|
|
|
46
44
|
## Advanced configuration
|
|
47
45
|
|
|
@@ -53,7 +51,7 @@ const agent = new Agent({
|
|
|
53
51
|
name: "custom-agent",
|
|
54
52
|
model: {
|
|
55
53
|
url: "https://api.z.ai/api/coding/paas/v4",
|
|
56
|
-
id: "zai-coding-plan/glm-4.
|
|
54
|
+
id: "zai-coding-plan/glm-4.7",
|
|
57
55
|
apiKey: process.env.ZHIPU_API_KEY,
|
|
58
56
|
headers: {
|
|
59
57
|
"X-Custom-Header": "value"
|
|
@@ -71,8 +69,8 @@ const agent = new Agent({
|
|
|
71
69
|
model: ({ requestContext }) => {
|
|
72
70
|
const useAdvanced = requestContext.task === "complex";
|
|
73
71
|
return useAdvanced
|
|
74
|
-
? "zai-coding-plan/glm-
|
|
75
|
-
: "zai-coding-plan/glm-4.
|
|
72
|
+
? "zai-coding-plan/glm-5.2-highspeed"
|
|
73
|
+
: "zai-coding-plan/glm-4.7";
|
|
76
74
|
}
|
|
77
75
|
});
|
|
78
76
|
```
|