@mastra/mcp-docs-server 1.2.7-alpha.6 → 1.2.7
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/agent-builder/integrations.md +44 -2
- package/.docs/docs/agent-builder/skill-registries.md +1 -3
- package/.docs/docs/agent-controller/overview.md +1 -1
- package/.docs/docs/agent-controller/session.md +1 -3
- package/.docs/docs/agents/code-mode.md +17 -1
- package/.docs/docs/agents/guardrails.md +8 -8
- package/.docs/docs/agents/overview.md +2 -2
- package/.docs/docs/agents/processors.md +9 -3
- package/.docs/docs/agents/skills.md +2 -4
- package/.docs/docs/agents/structured-output.md +1 -1
- package/.docs/docs/agents/supervisor-agents.md +1 -3
- package/.docs/docs/agents/using-tools.md +4 -4
- package/.docs/docs/browser/agent-browser.md +1 -3
- package/.docs/docs/browser/browser-viewer.md +1 -3
- package/.docs/docs/browser/stagehand.md +1 -1
- package/.docs/docs/capabilities/channels/overview.md +1 -3
- package/.docs/docs/deployment/mastra-server.md +2 -4
- package/.docs/docs/editor/overview.md +2 -6
- package/.docs/docs/editor/prompts.md +1 -1
- package/.docs/docs/editor/tools.md +3 -5
- package/.docs/docs/evals/custom-scorers.md +1 -3
- package/.docs/docs/evals/datasets/overview.md +4 -4
- package/.docs/docs/evals/datasets/running-experiments.md +4 -2
- package/.docs/docs/evals/evals-with-memory.md +1 -3
- package/.docs/docs/evals/gates-and-verdicts.md +17 -2
- package/.docs/docs/evals/quick-checks.md +1 -3
- package/.docs/docs/getting-started/file-based-agents.md +9 -4
- package/.docs/docs/long-running-agents/background-tasks.md +1 -1
- package/.docs/docs/long-running-agents/durable-agents.md +3 -5
- package/.docs/docs/long-running-agents/goals.md +1 -3
- package/.docs/docs/long-running-agents/signal-providers.md +1 -3
- package/.docs/docs/long-running-agents/signals.md +7 -21
- package/.docs/docs/mastra-platform/configuration.md +15 -22
- package/.docs/docs/mastra-platform/database.md +50 -6
- package/.docs/docs/mastra-platform/deploy.md +142 -0
- package/.docs/docs/mastra-platform/environments.md +103 -0
- package/.docs/docs/mastra-platform/github.md +2 -2
- package/.docs/docs/mastra-platform/overview.md +5 -5
- package/.docs/docs/mastra-platform/server.md +2 -0
- package/.docs/docs/mastra-platform/studio.md +5 -3
- package/.docs/docs/mcp/mcp-apps.md +3 -3
- package/.docs/docs/mcp/overview.md +6 -10
- package/.docs/docs/memory/overview.md +4 -4
- package/.docs/docs/observability/integrations/exporters/mastra-platform.md +1 -3
- package/.docs/docs/observability/logging.md +3 -1
- package/.docs/docs/observability/metrics/querying.md +2 -0
- package/.docs/docs/observability/tracing/overview.md +3 -1
- package/.docs/docs/server/auth/auth0.md +1 -1
- package/.docs/docs/server/auth/better-auth.md +2 -2
- package/.docs/docs/server/auth/clerk.md +1 -1
- package/.docs/docs/server/auth/firebase.md +1 -1
- package/.docs/docs/server/auth/google.md +2 -2
- package/.docs/docs/server/auth/jwt.md +2 -2
- package/.docs/docs/server/auth/okta.md +2 -2
- package/.docs/docs/server/auth/workos.md +1 -1
- package/.docs/docs/server/mastra-client.md +1 -1
- package/.docs/docs/server/mastra-server.md +1 -1
- package/.docs/docs/server/pubsub.md +1 -1
- package/.docs/docs/server/request-context.md +4 -4
- package/.docs/docs/server/server-adapters.md +8 -8
- package/.docs/docs/studio/auth.md +1 -3
- package/.docs/docs/workflows/agents-and-tools.md +3 -5
- package/.docs/docs/workflows/control-flow.md +1 -1
- package/.docs/docs/workflows/overview.md +5 -5
- package/.docs/guides/build-your-ui/assistant-ui.md +1 -1
- package/.docs/guides/build-your-ui/copilotkit/overview.md +1 -1
- package/.docs/guides/concepts/streaming.md +3 -3
- package/.docs/guides/guide/chef-michel.md +1 -1
- package/.docs/guides/guide/coding-agent.md +392 -0
- package/.docs/guides/migrations/mastra-cloud.md +5 -12
- package/.docs/models/environment-variables.md +16 -2
- package/.docs/models/gateways/azure-openai.md +15 -15
- package/.docs/models/gateways/mastra.md +2 -2
- package/.docs/models/gateways/netlify.md +4 -1
- package/.docs/models/gateways/openrouter.md +10 -11
- package/.docs/models/gateways/vercel.md +9 -10
- package/.docs/models/index.md +1 -1
- package/.docs/models/providers/abacus.md +44 -14
- package/.docs/models/providers/ai-router.md +77 -0
- package/.docs/models/providers/ambient.md +10 -6
- package/.docs/models/providers/baseten.md +1 -1
- package/.docs/models/providers/blueclaw.md +74 -0
- package/.docs/models/providers/crossmodel.md +115 -0
- package/.docs/models/providers/daoxe.md +81 -0
- package/.docs/models/providers/databricks.md +7 -2
- package/.docs/models/providers/deepinfra.md +2 -2
- package/.docs/models/providers/deepseek.md +2 -2
- package/.docs/models/providers/ebcloud.md +76 -0
- package/.docs/models/providers/empiriolabs.md +108 -0
- package/.docs/models/providers/google.md +4 -0
- package/.docs/models/providers/hpc-ai.md +16 -10
- package/.docs/models/providers/inferx.md +78 -0
- package/.docs/models/providers/llmgateway.md +6 -7
- package/.docs/models/providers/lynkr.md +73 -0
- package/.docs/models/providers/meta.md +101 -0
- package/.docs/models/providers/model-oracle-ai.md +87 -0
- package/.docs/models/providers/nano-gpt.md +2 -2
- package/.docs/models/providers/neon.md +1 -1
- package/.docs/models/providers/nvidia.md +1 -3
- package/.docs/models/providers/openai.md +16 -3
- package/.docs/models/providers/opencode.md +5 -2
- package/.docs/models/providers/pioneer.md +148 -0
- package/.docs/models/providers/poolside.md +6 -5
- package/.docs/models/providers/routing-run.md +23 -34
- package/.docs/models/providers/snowflake-cortex.md +4 -1
- package/.docs/models/providers/stepfun-ai-step-plan.md +75 -0
- package/.docs/models/providers/stepfun-ai.md +6 -6
- package/.docs/models/providers/stepfun-step-plan.md +76 -0
- package/.docs/models/providers/stepfun.md +5 -5
- package/.docs/models/providers/the-grid-ai.md +3 -3
- package/.docs/models/providers/unorouter.md +95 -0
- package/.docs/models/providers/vivgrid.md +5 -2
- package/.docs/models/providers/wafer.ai.md +9 -12
- package/.docs/models/providers/xai.md +1 -1
- package/.docs/models/providers/zenmux.md +5 -1
- package/.docs/models/providers.md +16 -2
- package/.docs/reference/agents/generateLegacy.md +8 -2
- package/.docs/reference/cli/mastra.md +131 -10
- package/.docs/reference/code-sdk/mount-agent-controller.md +2 -0
- package/.docs/reference/coding-agent/create-coding-agent.md +5 -4
- package/.docs/reference/evals/create-scorer.md +63 -0
- package/.docs/reference/evals/run-evals.md +2 -2
- package/.docs/reference/file-based-agents/logger.md +26 -0
- package/.docs/reference/file-based-agents/scorers.md +54 -0
- package/.docs/reference/index.md +2 -0
- package/.docs/reference/mastra-platform/api.md +1 -1
- package/.docs/reference/observability/metrics/automatic-metrics.md +8 -8
- package/.docs/reference/observability/tracing/exporters/braintrust.md +1 -0
- package/.docs/reference/observability/tracing/exporters/datadog.md +10 -9
- package/.docs/reference/observability/tracing/exporters/langsmith.md +8 -7
- package/.docs/reference/observability/tracing/exporters/posthog.md +13 -12
- package/.docs/reference/observability/tracing/exporters/sentry.md +1 -0
- package/.docs/reference/observability/tracing/interfaces.md +9 -0
- package/.docs/reference/processors/stream-error-retry-processor.md +39 -2
- package/.docs/reference/pubsub/base.md +10 -0
- package/.docs/reference/pubsub/caching-pubsub.md +8 -0
- package/.docs/reference/pubsub/redis-streams.md +12 -0
- package/.docs/reference/server/express-adapter.md +1 -3
- package/.docs/reference/server/fastify-adapter.md +1 -3
- package/.docs/reference/server/hono-adapter.md +1 -3
- package/.docs/reference/server/koa-adapter.md +1 -3
- package/.docs/reference/server/nestjs-adapter.md +1 -3
- package/.docs/reference/server/register-api-route.md +5 -4
- package/.docs/reference/templates/overview.md +1 -1
- package/.docs/reference/tools/mcp-client.md +22 -0
- package/.docs/reference/tools/mcp-server.md +161 -4
- package/.docs/reference/voice/google.md +48 -8
- package/.docs/reference/voice/speechify.md +10 -6
- package/.docs/reference/workspace/agentcore-runtime-sandbox.md +1 -3
- package/.docs/reference/workspace/agentfs-filesystem.md +1 -3
- package/.docs/reference/workspace/apple-container-sandbox.md +1 -3
- package/.docs/reference/workspace/archil-filesystem.md +1 -3
- package/.docs/reference/workspace/azure-blob-filesystem.md +1 -3
- package/.docs/reference/workspace/blaxel-sandbox.md +1 -3
- package/.docs/reference/workspace/daytona-sandbox.md +1 -3
- package/.docs/reference/workspace/docker-sandbox.md +1 -3
- package/.docs/reference/workspace/e2b-sandbox.md +20 -3
- package/.docs/reference/workspace/files-sdk-filesystem.md +1 -3
- package/.docs/reference/workspace/gcs-filesystem.md +1 -3
- package/.docs/reference/workspace/google-drive-filesystem.md +1 -3
- package/.docs/reference/workspace/local-filesystem.md +1 -3
- package/.docs/reference/workspace/local-sandbox.md +1 -3
- package/.docs/reference/workspace/modal-sandbox.md +1 -3
- package/.docs/reference/workspace/railway-sandbox.md +1 -3
- package/.docs/reference/workspace/s3-filesystem.md +1 -3
- package/.docs/reference/workspace/vercel-sandbox.md +5 -7
- package/.docs/reference/workspace/vercel-serverless.md +1 -3
- package/CHANGELOG.md +86 -0
- package/package.json +10 -10
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
> Discover all available pages from the documentation index: https://mastra.ai/llms.txt
|
|
2
|
+
|
|
3
|
+
# Blue Claw
|
|
4
|
+
|
|
5
|
+
Access 2 Blue Claw models through Mastra's model router. Authentication is handled automatically using the `BLUECLAW_API_KEY` environment variable.
|
|
6
|
+
|
|
7
|
+
Learn more in the [Blue Claw documentation](https://blueclaw.network).
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
BLUECLAW_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: "blueclaw/Qwen/Qwen3.6-35B-A3B-FP8"
|
|
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 [Blue Claw documentation](https://blueclaw.network) for details.
|
|
34
|
+
|
|
35
|
+
## Models
|
|
36
|
+
|
|
37
|
+
| Model | Context | Tools | Reasoning | Image | Audio | Video | Input $/1M | Output $/1M |
|
|
38
|
+
| ----------------------------------- | ------- | ----- | --------- | ----- | ----- | ----- | ---------- | ----------- |
|
|
39
|
+
| `blueclaw/Qwen/Qwen3.6-35B-A3B-FP8` | 131K | | | | | | — | — |
|
|
40
|
+
| `blueclaw/Qwen3.6-27B` | 197K | | | | | | — | — |
|
|
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://openai.blueclaw.network/v1",
|
|
52
|
+
id: "blueclaw/Qwen/Qwen3.6-35B-A3B-FP8",
|
|
53
|
+
apiKey: process.env.BLUECLAW_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
|
+
? "blueclaw/Qwen3.6-27B"
|
|
71
|
+
: "blueclaw/Qwen/Qwen3.6-35B-A3B-FP8";
|
|
72
|
+
}
|
|
73
|
+
});
|
|
74
|
+
```
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
> Discover all available pages from the documentation index: https://mastra.ai/llms.txt
|
|
2
|
+
|
|
3
|
+
# CrossModel
|
|
4
|
+
|
|
5
|
+
Access 43 CrossModel models through Mastra's model router. Authentication is handled automatically using the `CROSSMODEL_API_KEY` environment variable.
|
|
6
|
+
|
|
7
|
+
Learn more in the [CrossModel documentation](https://www.crossmodel.ai/docs).
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
CROSSMODEL_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: "crossmodel/anthropic/claude-fable-5"
|
|
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 [CrossModel documentation](https://www.crossmodel.ai/docs) for details.
|
|
34
|
+
|
|
35
|
+
## Models
|
|
36
|
+
|
|
37
|
+
| Model | Context | Tools | Reasoning | Image | Audio | Video | Input $/1M | Output $/1M |
|
|
38
|
+
| ------------------------------------------ | ------- | ----- | --------- | ----- | ----- | ----- | ---------- | ----------- |
|
|
39
|
+
| `crossmodel/anthropic/claude-fable-5` | 1.0M | | | | | | $10 | $50 |
|
|
40
|
+
| `crossmodel/anthropic/claude-haiku-4-5` | 200K | | | | | | $1 | $5 |
|
|
41
|
+
| `crossmodel/anthropic/claude-opus-4-7` | 1.0M | | | | | | $5 | $25 |
|
|
42
|
+
| `crossmodel/anthropic/claude-opus-4-8` | 1.0M | | | | | | $5 | $25 |
|
|
43
|
+
| `crossmodel/anthropic/claude-sonnet-4-6` | 1.0M | | | | | | $3 | $15 |
|
|
44
|
+
| `crossmodel/anthropic/claude-sonnet-5` | 1.0M | | | | | | $2 | $10 |
|
|
45
|
+
| `crossmodel/deepseek/deepseek-v4-flash` | 1.0M | | | | | | $0.16 | $0.32 |
|
|
46
|
+
| `crossmodel/deepseek/deepseek-v4-pro` | 1.0M | | | | | | $0.47 | $0.94 |
|
|
47
|
+
| `crossmodel/gemini/gemini-2.5-flash` | 1.0M | | | | | | $0.30 | $3 |
|
|
48
|
+
| `crossmodel/gemini/gemini-2.5-flash-lite` | 1.0M | | | | | | $0.10 | $0.40 |
|
|
49
|
+
| `crossmodel/gemini/gemini-2.5-pro` | 1.0M | | | | | | $1 | $10 |
|
|
50
|
+
| `crossmodel/gemini/gemini-3-flash-preview` | 1.0M | | | | | | $0.50 | $3 |
|
|
51
|
+
| `crossmodel/gemini/gemini-3.1-pro-preview` | 1.0M | | | | | | $2 | $12 |
|
|
52
|
+
| `crossmodel/gemini/gemini-3.5-flash` | 1.0M | | | | | | $2 | $9 |
|
|
53
|
+
| `crossmodel/minimax/minimax-m2.7` | 205K | | | | | | $0.33 | $1 |
|
|
54
|
+
| `crossmodel/minimax/minimax-m3` | 1.0M | | | | | | $0.33 | $1 |
|
|
55
|
+
| `crossmodel/moonshot/kimi-k2.5` | 262K | | | | | | $0.62 | $3 |
|
|
56
|
+
| `crossmodel/moonshot/kimi-k2.6` | 262K | | | | | | $1 | $4 |
|
|
57
|
+
| `crossmodel/moonshot/kimi-k2.7-code` | 262K | | | | | | $1 | $4 |
|
|
58
|
+
| `crossmodel/openai/gpt-4o-mini` | 128K | | | | | | $0.15 | $0.60 |
|
|
59
|
+
| `crossmodel/openai/gpt-5.4` | 1.1M | | | | | | $3 | $15 |
|
|
60
|
+
| `crossmodel/openai/gpt-5.4-mini` | 400K | | | | | | $0.75 | $5 |
|
|
61
|
+
| `crossmodel/openai/gpt-5.4-nano` | 400K | | | | | | $0.20 | $1 |
|
|
62
|
+
| `crossmodel/openai/gpt-5.5` | 1.1M | | | | | | $5 | $30 |
|
|
63
|
+
| `crossmodel/openai/gpt-5.5-pro` | 1.1M | | | | | | $30 | $180 |
|
|
64
|
+
| `crossmodel/openai/gpt-5.6-luna` | 1.1M | | | | | | $1 | $6 |
|
|
65
|
+
| `crossmodel/openai/gpt-5.6-sol` | 1.1M | | | | | | $5 | $30 |
|
|
66
|
+
| `crossmodel/openai/gpt-5.6-terra` | 1.1M | | | | | | $3 | $15 |
|
|
67
|
+
| `crossmodel/qwen/qwen3.6-flash` | 1.0M | | | | | | $0.19 | $1 |
|
|
68
|
+
| `crossmodel/qwen/qwen3.6-plus` | 1.0M | | | | | | $0.32 | $2 |
|
|
69
|
+
| `crossmodel/qwen/qwen3.7-max` | 1.0M | | | | | | $2 | $6 |
|
|
70
|
+
| `crossmodel/qwen/qwen3.7-plus` | 1.0M | | | | | | $0.32 | $1 |
|
|
71
|
+
| `crossmodel/tencent/hy3-preview` | 262K | | | | | | $0.19 | $0.63 |
|
|
72
|
+
| `crossmodel/x-ai/grok-4.3` | 1.0M | | | | | | $1 | $3 |
|
|
73
|
+
| `crossmodel/x-ai/grok-4.5` | 500K | | | | | | $2 | $6 |
|
|
74
|
+
| `crossmodel/x-ai/grok-build-0.1` | 256K | | | | | | $1 | $2 |
|
|
75
|
+
| `crossmodel/xiaomi/mimo-v2.5` | 1.0M | | | | | | $0.16 | $0.32 |
|
|
76
|
+
| `crossmodel/xiaomi/mimo-v2.5-pro` | 1.0M | | | | | | $0.47 | $0.94 |
|
|
77
|
+
| `crossmodel/z-ai/glm-4.7` | 200K | | | | | | $0.47 | $2 |
|
|
78
|
+
| `crossmodel/z-ai/glm-5` | 200K | | | | | | $0.60 | $3 |
|
|
79
|
+
| `crossmodel/z-ai/glm-5-turbo` | 200K | | | | | | $0.90 | $4 |
|
|
80
|
+
| `crossmodel/z-ai/glm-5.1` | 200K | | | | | | $1 | $4 |
|
|
81
|
+
| `crossmodel/z-ai/glm-5.2` | 1.0M | | | | | | $1 | $4 |
|
|
82
|
+
|
|
83
|
+
## Advanced configuration
|
|
84
|
+
|
|
85
|
+
### Custom headers
|
|
86
|
+
|
|
87
|
+
```typescript
|
|
88
|
+
const agent = new Agent({
|
|
89
|
+
id: "custom-agent",
|
|
90
|
+
name: "custom-agent",
|
|
91
|
+
model: {
|
|
92
|
+
url: "https://api.crossmodel.ai/v1",
|
|
93
|
+
id: "crossmodel/anthropic/claude-fable-5",
|
|
94
|
+
apiKey: process.env.CROSSMODEL_API_KEY,
|
|
95
|
+
headers: {
|
|
96
|
+
"X-Custom-Header": "value"
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
});
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
### Dynamic model selection
|
|
103
|
+
|
|
104
|
+
```typescript
|
|
105
|
+
const agent = new Agent({
|
|
106
|
+
id: "dynamic-agent",
|
|
107
|
+
name: "Dynamic Agent",
|
|
108
|
+
model: ({ requestContext }) => {
|
|
109
|
+
const useAdvanced = requestContext.task === "complex";
|
|
110
|
+
return useAdvanced
|
|
111
|
+
? "crossmodel/z-ai/glm-5.2"
|
|
112
|
+
: "crossmodel/anthropic/claude-fable-5";
|
|
113
|
+
}
|
|
114
|
+
});
|
|
115
|
+
```
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
> Discover all available pages from the documentation index: https://mastra.ai/llms.txt
|
|
2
|
+
|
|
3
|
+
# DaoXE
|
|
4
|
+
|
|
5
|
+
Access 9 DaoXE models through Mastra's model router. Authentication is handled automatically using the `DAOXE_API_KEY` environment variable.
|
|
6
|
+
|
|
7
|
+
Learn more in the [DaoXE documentation](https://daoxe.com/pricing).
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
DAOXE_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: "daoxe/claude-haiku-4-5-20251001"
|
|
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 [DaoXE documentation](https://daoxe.com/pricing) for details.
|
|
34
|
+
|
|
35
|
+
## Models
|
|
36
|
+
|
|
37
|
+
| Model | Context | Tools | Reasoning | Image | Audio | Video | Input $/1M | Output $/1M |
|
|
38
|
+
| --------------------------------- | ------- | ----- | --------- | ----- | ----- | ----- | ---------- | ----------- |
|
|
39
|
+
| `daoxe/claude-haiku-4-5-20251001` | 200K | | | | | | $1 | $5 |
|
|
40
|
+
| `daoxe/claude-opus-4-8` | 1.0M | | | | | | $5 | $25 |
|
|
41
|
+
| `daoxe/claude-sonnet-4-6` | 1.0M | | | | | | $3 | $15 |
|
|
42
|
+
| `daoxe/gemini-3.1-pro-preview` | 1.0M | | | | | | $2 | $12 |
|
|
43
|
+
| `daoxe/gpt-5.4` | 1.1M | | | | | | $3 | $15 |
|
|
44
|
+
| `daoxe/gpt-5.5` | 1.1M | | | | | | $5 | $30 |
|
|
45
|
+
| `daoxe/grok-4.3` | 1.0M | | | | | | $1 | $3 |
|
|
46
|
+
| `daoxe/grok-4.5` | 500K | | | | | | $2 | $6 |
|
|
47
|
+
| `daoxe/kimi-k2.5` | 262K | | | | | | $0.60 | $3 |
|
|
48
|
+
|
|
49
|
+
## Advanced configuration
|
|
50
|
+
|
|
51
|
+
### Custom headers
|
|
52
|
+
|
|
53
|
+
```typescript
|
|
54
|
+
const agent = new Agent({
|
|
55
|
+
id: "custom-agent",
|
|
56
|
+
name: "custom-agent",
|
|
57
|
+
model: {
|
|
58
|
+
url: "https://daoxe.com/v1",
|
|
59
|
+
id: "daoxe/claude-haiku-4-5-20251001",
|
|
60
|
+
apiKey: process.env.DAOXE_API_KEY,
|
|
61
|
+
headers: {
|
|
62
|
+
"X-Custom-Header": "value"
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
});
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
### Dynamic model selection
|
|
69
|
+
|
|
70
|
+
```typescript
|
|
71
|
+
const agent = new Agent({
|
|
72
|
+
id: "dynamic-agent",
|
|
73
|
+
name: "Dynamic Agent",
|
|
74
|
+
model: ({ requestContext }) => {
|
|
75
|
+
const useAdvanced = requestContext.task === "complex";
|
|
76
|
+
return useAdvanced
|
|
77
|
+
? "daoxe/kimi-k2.5"
|
|
78
|
+
: "daoxe/claude-haiku-4-5-20251001";
|
|
79
|
+
}
|
|
80
|
+
});
|
|
81
|
+
```
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# Databricks
|
|
4
4
|
|
|
5
|
-
Access
|
|
5
|
+
Access 30 Databricks models through Mastra's model router. Authentication is handled automatically using the `DATABRICKS_TOKEN` environment variable. Configure `DATABRICKS_HOST` as well.
|
|
6
6
|
|
|
7
7
|
Learn more in the [Databricks documentation](https://docs.databricks.com/aws/en/machine-learning/foundation-models/).
|
|
8
8
|
|
|
@@ -51,6 +51,7 @@ for await (const chunk of stream) {
|
|
|
51
51
|
| `databricks/databricks-gemini-3-1-pro` | 1.0M | | | | | | $2 | $12 |
|
|
52
52
|
| `databricks/databricks-gemini-3-flash` | 1.0M | | | | | | $0.50 | $3 |
|
|
53
53
|
| `databricks/databricks-gemini-3-pro` | 1.0M | | | | | | $2 | $12 |
|
|
54
|
+
| `databricks/databricks-glm-5-2` | 1.0M | | | | | | $1 | $4 |
|
|
54
55
|
| `databricks/databricks-gpt-5` | 400K | | | | | | $1 | $10 |
|
|
55
56
|
| `databricks/databricks-gpt-5-1` | 400K | | | | | | $1 | $10 |
|
|
56
57
|
| `databricks/databricks-gpt-5-2` | 400K | | | | | | $2 | $14 |
|
|
@@ -58,10 +59,14 @@ for await (const chunk of stream) {
|
|
|
58
59
|
| `databricks/databricks-gpt-5-4-mini` | 400K | | | | | | $0.75 | $5 |
|
|
59
60
|
| `databricks/databricks-gpt-5-4-nano` | 400K | | | | | | $0.20 | $1 |
|
|
60
61
|
| `databricks/databricks-gpt-5-5` | 1.1M | | | | | | $5 | $30 |
|
|
62
|
+
| `databricks/databricks-gpt-5-6-luna` | 400K | | | | | | $1 | $6 |
|
|
63
|
+
| `databricks/databricks-gpt-5-6-sol` | 1.1M | | | | | | $5 | $30 |
|
|
64
|
+
| `databricks/databricks-gpt-5-6-terra` | 1.1M | | | | | | $3 | $15 |
|
|
61
65
|
| `databricks/databricks-gpt-5-mini` | 400K | | | | | | $0.25 | $2 |
|
|
62
66
|
| `databricks/databricks-gpt-5-nano` | 400K | | | | | | $0.05 | $0.40 |
|
|
63
67
|
| `databricks/databricks-gpt-oss-120b` | 131K | | | | | | $0.07 | $0.28 |
|
|
64
68
|
| `databricks/databricks-gpt-oss-20b` | 131K | | | | | | $0.05 | $0.20 |
|
|
69
|
+
| `databricks/databricks-kimi-k2-7-code` | 262K | | | | | | $0.95 | $4 |
|
|
65
70
|
|
|
66
71
|
## Advanced configuration
|
|
67
72
|
|
|
@@ -91,7 +96,7 @@ const agent = new Agent({
|
|
|
91
96
|
model: ({ requestContext }) => {
|
|
92
97
|
const useAdvanced = requestContext.task === "complex";
|
|
93
98
|
return useAdvanced
|
|
94
|
-
? "databricks/databricks-
|
|
99
|
+
? "databricks/databricks-kimi-k2-7-code"
|
|
95
100
|
: "databricks/databricks-claude-haiku-4-5";
|
|
96
101
|
}
|
|
97
102
|
});
|
|
@@ -41,7 +41,7 @@ for await (const chunk of stream) {
|
|
|
41
41
|
| `deepinfra/google/gemma-4-26B-A4B-it` | 262K | | | | | | $0.07 | $0.34 |
|
|
42
42
|
| `deepinfra/google/gemma-4-31B-it` | 262K | | | | | | $0.13 | $0.38 |
|
|
43
43
|
| `deepinfra/meta-llama/Llama-3.3-70B-Instruct-Turbo` | 131K | | | | | | $0.10 | $0.32 |
|
|
44
|
-
| `deepinfra/meta-llama/Llama-4-Maverick-17B-128E-Instruct-FP8` | 1.0M | | | | | | $0.
|
|
44
|
+
| `deepinfra/meta-llama/Llama-4-Maverick-17B-128E-Instruct-FP8` | 1.0M | | | | | | $0.20 | $0.80 |
|
|
45
45
|
| `deepinfra/meta-llama/Llama-4-Scout-17B-16E-Instruct` | 328K | | | | | | $0.10 | $0.30 |
|
|
46
46
|
| `deepinfra/MiniMaxAI/MiniMax-M2.5` | 197K | | | | | | $0.15 | $1 |
|
|
47
47
|
| `deepinfra/MiniMaxAI/MiniMax-M2.7` | 197K | | | | | | $0.25 | $1 |
|
|
@@ -68,7 +68,7 @@ for await (const chunk of stream) {
|
|
|
68
68
|
| `deepinfra/Qwen/Qwen3.7-Max` | 256K | | | | | | $3 | $8 |
|
|
69
69
|
| `deepinfra/XiaomiMiMo/MiMo-V2.5` | 262K | | | | | | $0.40 | $2 |
|
|
70
70
|
| `deepinfra/XiaomiMiMo/MiMo-V2.5-Pro` | 1.0M | | | | | | $1 | $3 |
|
|
71
|
-
| `deepinfra/zai-org/GLM-4.6` | 203K | | | | | | $0.
|
|
71
|
+
| `deepinfra/zai-org/GLM-4.6` | 203K | | | | | | $0.50 | $2 |
|
|
72
72
|
| `deepinfra/zai-org/GLM-4.7` | 203K | | | | | | $0.40 | $2 |
|
|
73
73
|
| `deepinfra/zai-org/GLM-4.7-Flash` | 203K | | | | | | $0.06 | $0.40 |
|
|
74
74
|
| `deepinfra/zai-org/GLM-5` | 203K | | | | | | $0.60 | $2 |
|
|
@@ -89,6 +89,6 @@ const response = await agent.generate("Hello!", {
|
|
|
89
89
|
|
|
90
90
|
### Available Options
|
|
91
91
|
|
|
92
|
-
**thinking** (`{ type?: "enabled" | "disabled" | undefined; } | undefined`)
|
|
92
|
+
**thinking** (`{ type?: "adaptive" | "enabled" | "disabled" | undefined; } | undefined`)
|
|
93
93
|
|
|
94
|
-
**reasoningEffort** (`"high" | "max" | undefined`)
|
|
94
|
+
**reasoningEffort** (`"low" | "medium" | "high" | "xhigh" | "max" | undefined`)
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
> Discover all available pages from the documentation index: https://mastra.ai/llms.txt
|
|
2
|
+
|
|
3
|
+
# EBCloud
|
|
4
|
+
|
|
5
|
+
Access 4 EBCloud models through Mastra's model router. Authentication is handled automatically using the `EBCLOUD_API_KEY` environment variable.
|
|
6
|
+
|
|
7
|
+
Learn more in the [EBCloud documentation](https://docs.ebtech.com/ai/model-api.html).
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
EBCLOUD_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: "ebcloud/DeepSeek-V4-Flash"
|
|
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 [EBCloud documentation](https://docs.ebtech.com/ai/model-api.html) for details.
|
|
34
|
+
|
|
35
|
+
## Models
|
|
36
|
+
|
|
37
|
+
| Model | Context | Tools | Reasoning | Image | Audio | Video | Input $/1M | Output $/1M |
|
|
38
|
+
| --------------------------- | ------- | ----- | --------- | ----- | ----- | ----- | ---------- | ----------- |
|
|
39
|
+
| `ebcloud/DeepSeek-V4-Flash` | 1.0M | | | | | | $0.14 | $0.29 |
|
|
40
|
+
| `ebcloud/DeepSeek-V4-Pro` | 1.0M | | | | | | $0.43 | $0.86 |
|
|
41
|
+
| `ebcloud/GLM-5.1` | 200K | | | | | | $0.86 | $3 |
|
|
42
|
+
| `ebcloud/Kimi-K2.6` | 262K | | | | | | $0.93 | $4 |
|
|
43
|
+
|
|
44
|
+
## Advanced configuration
|
|
45
|
+
|
|
46
|
+
### Custom headers
|
|
47
|
+
|
|
48
|
+
```typescript
|
|
49
|
+
const agent = new Agent({
|
|
50
|
+
id: "custom-agent",
|
|
51
|
+
name: "custom-agent",
|
|
52
|
+
model: {
|
|
53
|
+
url: "https://maas-api.ebcloud.com/v1",
|
|
54
|
+
id: "ebcloud/DeepSeek-V4-Flash",
|
|
55
|
+
apiKey: process.env.EBCLOUD_API_KEY,
|
|
56
|
+
headers: {
|
|
57
|
+
"X-Custom-Header": "value"
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
});
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
### Dynamic model selection
|
|
64
|
+
|
|
65
|
+
```typescript
|
|
66
|
+
const agent = new Agent({
|
|
67
|
+
id: "dynamic-agent",
|
|
68
|
+
name: "Dynamic Agent",
|
|
69
|
+
model: ({ requestContext }) => {
|
|
70
|
+
const useAdvanced = requestContext.task === "complex";
|
|
71
|
+
return useAdvanced
|
|
72
|
+
? "ebcloud/Kimi-K2.6"
|
|
73
|
+
: "ebcloud/DeepSeek-V4-Flash";
|
|
74
|
+
}
|
|
75
|
+
});
|
|
76
|
+
```
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
> Discover all available pages from the documentation index: https://mastra.ai/llms.txt
|
|
2
|
+
|
|
3
|
+
# EmpirioLabs AI
|
|
4
|
+
|
|
5
|
+
Access 36 EmpirioLabs AI models through Mastra's model router. Authentication is handled automatically using the `EMPIRIOLABS_API_KEY` environment variable.
|
|
6
|
+
|
|
7
|
+
Learn more in the [EmpirioLabs AI documentation](https://docs.empiriolabs.ai).
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
EMPIRIOLABS_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: "empiriolabs/deepseek-v4-flash"
|
|
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 [EmpirioLabs AI documentation](https://docs.empiriolabs.ai) for details.
|
|
34
|
+
|
|
35
|
+
## Models
|
|
36
|
+
|
|
37
|
+
| Model | Context | Tools | Reasoning | Image | Audio | Video | Input $/1M | Output $/1M |
|
|
38
|
+
| -------------------------------------- | ------- | ----- | --------- | ----- | ----- | ----- | ---------- | ----------- |
|
|
39
|
+
| `empiriolabs/deepseek-v4-flash` | 1.0M | | | | | | $0.14 | $0.28 |
|
|
40
|
+
| `empiriolabs/deepseek-v4-pro` | 1.0M | | | | | | $2 | $3 |
|
|
41
|
+
| `empiriolabs/fugu-ultra` | 1.0M | | | | | | $8 | $45 |
|
|
42
|
+
| `empiriolabs/gemma-4-26b-a4b` | 262K | | | | | | $0.05 | $0.29 |
|
|
43
|
+
| `empiriolabs/glm-4-5-flash` | 200K | | | | | | — | — |
|
|
44
|
+
| `empiriolabs/glm-4-7-flash` | 200K | | | | | | — | — |
|
|
45
|
+
| `empiriolabs/glm-5-1` | 202K | | | | | | $0.82 | $3 |
|
|
46
|
+
| `empiriolabs/glm-5-2` | 1.0M | | | | | | $1 | $4 |
|
|
47
|
+
| `empiriolabs/kimi-k2-6` | 256K | | | | | | $0.89 | $4 |
|
|
48
|
+
| `empiriolabs/kimi-k2-7-code` | 256K | | | | | | $0.95 | $4 |
|
|
49
|
+
| `empiriolabs/kimi-k2-7-code-highspeed` | 256K | | | | | | $2 | $8 |
|
|
50
|
+
| `empiriolabs/mimo-v2-5` | 1.0M | | | | | | $0.70 | $1 |
|
|
51
|
+
| `empiriolabs/mimo-v2-5-pro` | 1.0M | | | | | | $2 | $4 |
|
|
52
|
+
| `empiriolabs/minimax-m2-7` | 200K | | | | | | $0.15 | $0.60 |
|
|
53
|
+
| `empiriolabs/minimax-m2-7-highspeed` | 200K | | | | | | $0.30 | $1 |
|
|
54
|
+
| `empiriolabs/minimax-m3` | 1.0M | | | | | | $0.23 | $0.90 |
|
|
55
|
+
| `empiriolabs/mistral-medium-3` | 130K | | | | | | — | — |
|
|
56
|
+
| `empiriolabs/mistral-small-4` | 256K | | | | | | $0.15 | $0.60 |
|
|
57
|
+
| `empiriolabs/muse-spark-1-1` | 1.0M | | | | | | $1 | $4 |
|
|
58
|
+
| `empiriolabs/qwen3-5-122b-a10b` | 256K | | | | | | $0.12 | $0.92 |
|
|
59
|
+
| `empiriolabs/qwen3-5-27b` | 256K | | | | | | $0.09 | $0.69 |
|
|
60
|
+
| `empiriolabs/qwen3-5-35b-a3b` | 256K | | | | | | $0.06 | $0.46 |
|
|
61
|
+
| `empiriolabs/qwen3-5-397b-a17b` | 256K | | | | | | $0.17 | $1 |
|
|
62
|
+
| `empiriolabs/qwen3-5-4b` | 262K | | | | | | $0.04 | $0.07 |
|
|
63
|
+
| `empiriolabs/qwen3-5-9b` | 262K | | | | | | $0.09 | $0.13 |
|
|
64
|
+
| `empiriolabs/qwen3-5-plus` | 1.0M | | | | | | $0.36 | $2 |
|
|
65
|
+
| `empiriolabs/qwen3-6-27b` | 256K | | | | | | $0.41 | $2 |
|
|
66
|
+
| `empiriolabs/qwen3-6-flash` | 1.0M | | | | | | $0.25 | $2 |
|
|
67
|
+
| `empiriolabs/qwen3-6-max-preview` | 256K | | | | | | $1 | $8 |
|
|
68
|
+
| `empiriolabs/qwen3-6-plus` | 1.0M | | | | | | $0.50 | $3 |
|
|
69
|
+
| `empiriolabs/qwen3-7-max` | 1.0M | | | | | | $3 | $8 |
|
|
70
|
+
| `empiriolabs/qwen3-7-plus` | 1.0M | | | | | | $0.40 | $2 |
|
|
71
|
+
| `empiriolabs/qwen3-max` | 256K | | | | | | $1 | $6 |
|
|
72
|
+
| `empiriolabs/step-3-5-flash` | 256K | | | | | | $0.10 | $0.30 |
|
|
73
|
+
| `empiriolabs/step-3-5-flash-2603` | 256K | | | | | | $0.10 | $0.30 |
|
|
74
|
+
| `empiriolabs/step-3-7-flash` | 256K | | | | | | $0.20 | $1 |
|
|
75
|
+
|
|
76
|
+
## Advanced configuration
|
|
77
|
+
|
|
78
|
+
### Custom headers
|
|
79
|
+
|
|
80
|
+
```typescript
|
|
81
|
+
const agent = new Agent({
|
|
82
|
+
id: "custom-agent",
|
|
83
|
+
name: "custom-agent",
|
|
84
|
+
model: {
|
|
85
|
+
url: "https://api.empiriolabs.ai/v1",
|
|
86
|
+
id: "empiriolabs/deepseek-v4-flash",
|
|
87
|
+
apiKey: process.env.EMPIRIOLABS_API_KEY,
|
|
88
|
+
headers: {
|
|
89
|
+
"X-Custom-Header": "value"
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
});
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
### Dynamic model selection
|
|
96
|
+
|
|
97
|
+
```typescript
|
|
98
|
+
const agent = new Agent({
|
|
99
|
+
id: "dynamic-agent",
|
|
100
|
+
name: "Dynamic Agent",
|
|
101
|
+
model: ({ requestContext }) => {
|
|
102
|
+
const useAdvanced = requestContext.task === "complex";
|
|
103
|
+
return useAdvanced
|
|
104
|
+
? "empiriolabs/step-3-7-flash"
|
|
105
|
+
: "empiriolabs/deepseek-v4-flash";
|
|
106
|
+
}
|
|
107
|
+
});
|
|
108
|
+
```
|
|
@@ -130,6 +130,10 @@ const response = await agent.generate("Hello!", {
|
|
|
130
130
|
|
|
131
131
|
**serviceTier** (`"standard" | "flex" | "priority" | undefined`)
|
|
132
132
|
|
|
133
|
+
**sharedRequestType** (`"standard" | "flex" | "priority" | undefined`)
|
|
134
|
+
|
|
135
|
+
**requestType** (`"shared" | undefined`)
|
|
136
|
+
|
|
133
137
|
## Direct provider installation
|
|
134
138
|
|
|
135
139
|
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/google) for more details.
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# HPC-AI
|
|
4
4
|
|
|
5
|
-
Access
|
|
5
|
+
Access 9 HPC-AI models through Mastra's model router. Authentication is handled automatically using the `HPC_AI_API_KEY` environment variable.
|
|
6
6
|
|
|
7
7
|
Learn more in the [HPC-AI documentation](https://www.hpc-ai.com/doc/docs/quickstart/).
|
|
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: "hpc-ai/
|
|
20
|
+
model: "hpc-ai/anthropic/claude-opus-4.7"
|
|
21
21
|
});
|
|
22
22
|
|
|
23
23
|
// Generate a response
|
|
@@ -34,11 +34,17 @@ for await (const chunk of stream) {
|
|
|
34
34
|
|
|
35
35
|
## Models
|
|
36
36
|
|
|
37
|
-
| Model
|
|
38
|
-
|
|
|
39
|
-
| `hpc-ai/
|
|
40
|
-
| `hpc-ai/
|
|
41
|
-
| `hpc-ai/
|
|
37
|
+
| Model | Context | Tools | Reasoning | Image | Audio | Video | Input $/1M | Output $/1M |
|
|
38
|
+
| ----------------------------------- | ------- | ----- | --------- | ----- | ----- | ----- | ---------- | ----------- |
|
|
39
|
+
| `hpc-ai/anthropic/claude-opus-4.7` | 1.0M | | | | | | $5 | $25 |
|
|
40
|
+
| `hpc-ai/deepseek/deepseek-v4-flash` | 1.0M | | | | | | $0.14 | $0.28 |
|
|
41
|
+
| `hpc-ai/deepseek/deepseek-v4-pro` | 1.0M | | | | | | $2 | $3 |
|
|
42
|
+
| `hpc-ai/minimax/minimax-m2.5` | 196K | | | | | | $0.30 | $1 |
|
|
43
|
+
| `hpc-ai/moonshotai/kimi-k2.5` | 256K | | | | | | $0.60 | $3 |
|
|
44
|
+
| `hpc-ai/moonshotai/kimi-k2.7-code` | 256K | | | | | | $0.95 | $4 |
|
|
45
|
+
| `hpc-ai/openai/gpt-5.5` | 1.1M | | | | | | $5 | $30 |
|
|
46
|
+
| `hpc-ai/zai-org/glm-5.1` | 202K | | | | | | $0.61 | $2 |
|
|
47
|
+
| `hpc-ai/zai-org/glm-5.2` | 1.0M | | | | | | $1 | $4 |
|
|
42
48
|
|
|
43
49
|
## Advanced configuration
|
|
44
50
|
|
|
@@ -50,7 +56,7 @@ const agent = new Agent({
|
|
|
50
56
|
name: "custom-agent",
|
|
51
57
|
model: {
|
|
52
58
|
url: "https://api.hpc-ai.com/inference/v1",
|
|
53
|
-
id: "hpc-ai/
|
|
59
|
+
id: "hpc-ai/anthropic/claude-opus-4.7",
|
|
54
60
|
apiKey: process.env.HPC_AI_API_KEY,
|
|
55
61
|
headers: {
|
|
56
62
|
"X-Custom-Header": "value"
|
|
@@ -68,8 +74,8 @@ const agent = new Agent({
|
|
|
68
74
|
model: ({ requestContext }) => {
|
|
69
75
|
const useAdvanced = requestContext.task === "complex";
|
|
70
76
|
return useAdvanced
|
|
71
|
-
? "hpc-ai/zai-org/glm-5.
|
|
72
|
-
: "hpc-ai/
|
|
77
|
+
? "hpc-ai/zai-org/glm-5.2"
|
|
78
|
+
: "hpc-ai/anthropic/claude-opus-4.7";
|
|
73
79
|
}
|
|
74
80
|
});
|
|
75
81
|
```
|