@mastra/mcp-docs-server 1.2.13-alpha.11 → 1.2.13-alpha.12
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/capabilities/channels/imessage.md +181 -0
- package/.docs/docs/capabilities/channels/overview.md +1 -0
- package/.docs/docs/datasets/running-experiments.md +33 -0
- package/.docs/models/environment-variables.md +5 -1
- package/.docs/models/gateways/netlify.md +1 -2
- package/.docs/models/gateways/openrouter.md +3 -1
- package/.docs/models/gateways/vercel.md +6 -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 +4 -1
- 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 +3 -1
- 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 +7 -7
- package/.docs/models/providers/zhipuai-coding-plan.md +9 -9
- package/.docs/models/providers.md +5 -1
- package/CHANGELOG.md +7 -0
- package/package.json +5 -5
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# Charm Hyper
|
|
4
4
|
|
|
5
|
-
Access
|
|
5
|
+
Access 25 Charm Hyper models through Mastra's model router. Authentication is handled automatically using the `HYPER_API_KEY` environment variable.
|
|
6
6
|
|
|
7
7
|
Learn more in the [Charm Hyper documentation](https://hyper.charm.land).
|
|
8
8
|
|
|
@@ -37,21 +37,22 @@ for await (const chunk of stream) {
|
|
|
37
37
|
| Model | Context | Tools | Reasoning | Image | Audio | Video | Input $/1M | Output $/1M |
|
|
38
38
|
| ---------------------------------------------------- | ------- | ----- | --------- | ----- | ----- | ----- | ---------- | ----------- |
|
|
39
39
|
| `hyper/deepseek-v4-flash` | 1.0M | | | | | | $0.20 | $0.40 |
|
|
40
|
+
| `hyper/deepseek-v4-flash-0731` | 1.0M | | | | | | $0.15 | $0.30 |
|
|
40
41
|
| `hyper/deepseek-v4-pro` | 1.0M | | | | | | $2 | $5 |
|
|
41
|
-
| `hyper/gemma-4-26b-a4b-it` | 256K | | | | | | $0.
|
|
42
|
-
| `hyper/glm-5` | 203K | | | | | | $0.
|
|
42
|
+
| `hyper/gemma-4-26b-a4b-it` | 256K | | | | | | $0.13 | $0.42 |
|
|
43
|
+
| `hyper/glm-5` | 203K | | | | | | $0.85 | $3 |
|
|
43
44
|
| `hyper/glm-5.1` | 203K | | | | | | $2 | $5 |
|
|
44
45
|
| `hyper/glm-5.2` | 1.0M | | | | | | $1 | $4 |
|
|
45
46
|
| `hyper/gpt-oss-120b` | 131K | | | | | | $0.19 | $0.70 |
|
|
46
|
-
| `hyper/kimi-k2.5` | 262K | | | | | | $0.
|
|
47
|
+
| `hyper/kimi-k2.5` | 262K | | | | | | $0.54 | $3 |
|
|
47
48
|
| `hyper/kimi-k2.6` | 262K | | | | | | $0.95 | $4 |
|
|
48
49
|
| `hyper/kimi-k2.7-code` | 256K | | | | | | $0.95 | $4 |
|
|
49
50
|
| `hyper/kimi-k3` | 1.0M | | | | | | $3 | $16 |
|
|
50
51
|
| `hyper/llama-3.3-70b-instruct` | 128K | | | | | | $0.51 | $1 |
|
|
51
52
|
| `hyper/llama-4-maverick-17b-128e-instruct-fp8` | 430K | | | | | | $0.28 | $0.93 |
|
|
52
|
-
| `hyper/minimax-m2.7` |
|
|
53
|
+
| `hyper/minimax-m2.7` | 262K | | | | | | $0.42 | $2 |
|
|
53
54
|
| `hyper/minimax-m3` | 512K | | | | | | $0.33 | $1 |
|
|
54
|
-
| `hyper/qwen3-coder-480b-a35b-instruct-int4-mixed-ar` | 106K | | | | | | $0.
|
|
55
|
+
| `hyper/qwen3-coder-480b-a35b-instruct-int4-mixed-ar` | 106K | | | | | | $0.57 | $2 |
|
|
55
56
|
| `hyper/qwen3-next-80b-a3b-instruct` | 262K | | | | | | $0.12 | $1 |
|
|
56
57
|
| `hyper/qwen3.6-flash` | 1.0M | | | | | | $1 | $4 |
|
|
57
58
|
| `hyper/qwen3.6-max` | 256K | | | | | | $2 | $12 |
|
|
@@ -59,6 +60,7 @@ for await (const chunk of stream) {
|
|
|
59
60
|
| `hyper/qwen3.7-flash` | 1.0M | | | | | | $0.20 | $0.80 |
|
|
60
61
|
| `hyper/qwen3.7-max` | 1.0M | | | | | | $3 | $8 |
|
|
61
62
|
| `hyper/qwen3.7-plus` | 1.0M | | | | | | $1 | $5 |
|
|
63
|
+
| `hyper/qwen3.8-max` | 1.0M | | | | | | $2 | $6 |
|
|
62
64
|
|
|
63
65
|
## Advanced configuration
|
|
64
66
|
|
|
@@ -88,7 +90,7 @@ const agent = new Agent({
|
|
|
88
90
|
model: ({ requestContext }) => {
|
|
89
91
|
const useAdvanced = requestContext.task === "complex";
|
|
90
92
|
return useAdvanced
|
|
91
|
-
? "hyper/qwen3.
|
|
93
|
+
? "hyper/qwen3.8-max"
|
|
92
94
|
: "hyper/deepseek-v4-flash";
|
|
93
95
|
}
|
|
94
96
|
});
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
> Discover all available pages from the documentation index: https://mastra.ai/llms.txt
|
|
2
|
+
|
|
3
|
+
# Impossibl
|
|
4
|
+
|
|
5
|
+
Access 76 Impossibl models through Mastra's model router. Authentication is handled automatically using the `IMPOSSIBL_API_KEY` environment variable.
|
|
6
|
+
|
|
7
|
+
Learn more in the [Impossibl documentation](https://impossibl.com/docs/models).
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
IMPOSSIBL_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: "impossibl/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 [Impossibl documentation](https://impossibl.com/docs/models) for details.
|
|
34
|
+
|
|
35
|
+
## Models
|
|
36
|
+
|
|
37
|
+
| Model | Context | Tools | Reasoning | Image | Audio | Video | Input $/1M | Output $/1M |
|
|
38
|
+
| -------------------------------------------- | ------- | ----- | --------- | ----- | ----- | ----- | ---------- | ----------- |
|
|
39
|
+
| `impossibl/anthropic/claude-fable-5` | 1.0M | | | | | | $10 | $50 |
|
|
40
|
+
| `impossibl/anthropic/claude-haiku-4-5` | 200K | | | | | | $1 | $5 |
|
|
41
|
+
| `impossibl/anthropic/claude-opus-4-5` | 200K | | | | | | $5 | $25 |
|
|
42
|
+
| `impossibl/anthropic/claude-opus-4-6` | 1.0M | | | | | | $5 | $25 |
|
|
43
|
+
| `impossibl/anthropic/claude-opus-4-7` | 1.0M | | | | | | $5 | $25 |
|
|
44
|
+
| `impossibl/anthropic/claude-opus-4-8` | 1.0M | | | | | | $5 | $25 |
|
|
45
|
+
| `impossibl/anthropic/claude-sonnet-4-5` | 200K | | | | | | $3 | $15 |
|
|
46
|
+
| `impossibl/anthropic/claude-sonnet-4-6` | 1.0M | | | | | | $3 | $15 |
|
|
47
|
+
| `impossibl/anthropic/claude-sonnet-5` | 1.0M | | | | | | $2 | $10 |
|
|
48
|
+
| `impossibl/cerebras/gpt-oss-120b` | 131K | | | | | | $0.35 | $0.75 |
|
|
49
|
+
| `impossibl/deepseek/deepseek-v4-flash` | 1.0M | | | | | | $0.19 | $0.51 |
|
|
50
|
+
| `impossibl/deepseek/deepseek-v4-pro` | 1.0M | | | | | | $2 | $3 |
|
|
51
|
+
| `impossibl/fireworks/glm-5.2` | 1.0M | | | | | | $1 | $4 |
|
|
52
|
+
| `impossibl/fireworks/gpt-oss-120b` | 131K | | | | | | $0.15 | $0.60 |
|
|
53
|
+
| `impossibl/fireworks/gpt-oss-20b` | 131K | | | | | | $0.07 | $0.30 |
|
|
54
|
+
| `impossibl/google/gemini-2.5-flash` | 1.0M | | | | | | $0.30 | $3 |
|
|
55
|
+
| `impossibl/google/gemini-2.5-flash-lite` | 1.0M | | | | | | $0.10 | $0.40 |
|
|
56
|
+
| `impossibl/google/gemini-2.5-pro` | 1.0M | | | | | | $1 | $10 |
|
|
57
|
+
| `impossibl/google/gemini-3.1-flash-lite` | 1.0M | | | | | | $0.25 | $2 |
|
|
58
|
+
| `impossibl/google/gemini-3.1-pro-preview` | 1.0M | | | | | | $2 | $12 |
|
|
59
|
+
| `impossibl/google/gemini-3.5-flash` | 1.0M | | | | | | $2 | $9 |
|
|
60
|
+
| `impossibl/google/gemini-3.5-flash-lite` | 1.0M | | | | | | $0.30 | $3 |
|
|
61
|
+
| `impossibl/google/gemini-3.6-flash` | 1.0M | | | | | | $2 | $8 |
|
|
62
|
+
| `impossibl/groq/gpt-oss-120b` | 131K | | | | | | $0.15 | $0.60 |
|
|
63
|
+
| `impossibl/groq/gpt-oss-20b` | 131K | | | | | | $0.07 | $0.30 |
|
|
64
|
+
| `impossibl/moonshotai/kimi-k3` | 1.0M | | | | | | $3 | $15 |
|
|
65
|
+
| `impossibl/openai/gpt-3.5-turbo` | 16K | | | | | | $0.50 | $2 |
|
|
66
|
+
| `impossibl/openai/gpt-4-turbo` | 128K | | | | | | $10 | $30 |
|
|
67
|
+
| `impossibl/openai/gpt-4.1` | 1.0M | | | | | | $2 | $8 |
|
|
68
|
+
| `impossibl/openai/gpt-4.1-mini` | 1.0M | | | | | | $0.40 | $2 |
|
|
69
|
+
| `impossibl/openai/gpt-4.1-nano` | 1.0M | | | | | | $0.10 | $0.40 |
|
|
70
|
+
| `impossibl/openai/gpt-4o` | 128K | | | | | | $3 | $10 |
|
|
71
|
+
| `impossibl/openai/gpt-4o-mini` | 128K | | | | | | $0.15 | $0.60 |
|
|
72
|
+
| `impossibl/openai/gpt-5` | 400K | | | | | | $1 | $10 |
|
|
73
|
+
| `impossibl/openai/gpt-5-codex` | 400K | | | | | | $1 | $10 |
|
|
74
|
+
| `impossibl/openai/gpt-5-mini` | 400K | | | | | | $0.25 | $2 |
|
|
75
|
+
| `impossibl/openai/gpt-5-nano` | 400K | | | | | | $0.05 | $0.40 |
|
|
76
|
+
| `impossibl/openai/gpt-5-pro` | 400K | | | | | | $15 | $120 |
|
|
77
|
+
| `impossibl/openai/gpt-5.1` | 400K | | | | | | $1 | $10 |
|
|
78
|
+
| `impossibl/openai/gpt-5.1-codex` | 400K | | | | | | $1 | $10 |
|
|
79
|
+
| `impossibl/openai/gpt-5.1-codex-mini` | 400K | | | | | | $0.25 | $2 |
|
|
80
|
+
| `impossibl/openai/gpt-5.2` | 400K | | | | | | $2 | $14 |
|
|
81
|
+
| `impossibl/openai/gpt-5.2-codex` | 400K | | | | | | $2 | $14 |
|
|
82
|
+
| `impossibl/openai/gpt-5.3-codex` | 400K | | | | | | $2 | $14 |
|
|
83
|
+
| `impossibl/openai/gpt-5.4` | 1.1M | | | | | | $3 | $15 |
|
|
84
|
+
| `impossibl/openai/gpt-5.4-mini` | 400K | | | | | | $0.75 | $5 |
|
|
85
|
+
| `impossibl/openai/gpt-5.4-nano` | 400K | | | | | | $0.20 | $1 |
|
|
86
|
+
| `impossibl/openai/gpt-5.4-pro` | 1.1M | | | | | | $30 | $180 |
|
|
87
|
+
| `impossibl/openai/gpt-5.5` | 1.1M | | | | | | $5 | $30 |
|
|
88
|
+
| `impossibl/openai/gpt-5.5-pro` | 1.1M | | | | | | $30 | $180 |
|
|
89
|
+
| `impossibl/openai/gpt-5.6-luna` | 1.1M | | | | | | $0.20 | $1 |
|
|
90
|
+
| `impossibl/openai/gpt-5.6-sol` | 1.1M | | | | | | $5 | $30 |
|
|
91
|
+
| `impossibl/openai/gpt-5.6-terra` | 1.1M | | | | | | $2 | $12 |
|
|
92
|
+
| `impossibl/openai/o1` | 200K | | | | | | $15 | $60 |
|
|
93
|
+
| `impossibl/openai/o3` | 200K | | | | | | $2 | $8 |
|
|
94
|
+
| `impossibl/openai/o3-mini` | 200K | | | | | | $1 | $4 |
|
|
95
|
+
| `impossibl/openai/o4-mini` | 200K | | | | | | $1 | $4 |
|
|
96
|
+
| `impossibl/qwen/qwen3.6-flash` | 1.0M | | | | | | $0.25 | $2 |
|
|
97
|
+
| `impossibl/qwen/qwen3.7-max` | 1.0M | | | | | | $3 | $8 |
|
|
98
|
+
| `impossibl/qwen/qwen3.7-plus` | 1.0M | | | | | | $0.40 | $2 |
|
|
99
|
+
| `impossibl/qwen/qwen3.8-max-preview` | 1.0M | | | | | | $3 | $8 |
|
|
100
|
+
| `impossibl/thinkingmachines/inkling` | 66K | | | | | | $2 | $5 |
|
|
101
|
+
| `impossibl/xai/grok-4.20-0309-non-reasoning` | 1.0M | | | | | | $1 | $3 |
|
|
102
|
+
| `impossibl/xai/grok-4.20-0309-reasoning` | 1.0M | | | | | | $1 | $3 |
|
|
103
|
+
| `impossibl/xai/grok-4.3` | 1.0M | | | | | | $1 | $3 |
|
|
104
|
+
| `impossibl/xai/grok-4.5` | 500K | | | | | | $2 | $6 |
|
|
105
|
+
| `impossibl/xai/grok-build-0.1` | 256K | | | | | | $1 | $2 |
|
|
106
|
+
| `impossibl/xiaomi/mimo-v2.5` | 1.0M | | | | | | $0.14 | $0.28 |
|
|
107
|
+
| `impossibl/zai/glm-4.5` | 131K | | | | | | $0.60 | $2 |
|
|
108
|
+
| `impossibl/zai/glm-4.5-air` | 131K | | | | | | $0.20 | $1 |
|
|
109
|
+
| `impossibl/zai/glm-4.6` | 205K | | | | | | $0.60 | $2 |
|
|
110
|
+
| `impossibl/zai/glm-4.7` | 205K | | | | | | $0.60 | $2 |
|
|
111
|
+
| `impossibl/zai/glm-5` | 205K | | | | | | $1 | $3 |
|
|
112
|
+
| `impossibl/zai/glm-5-turbo` | 200K | | | | | | $1 | $4 |
|
|
113
|
+
| `impossibl/zai/glm-5.1` | 200K | | | | | | $1 | $4 |
|
|
114
|
+
| `impossibl/zai/glm-5.2` | 1.0M | | | | | | $1 | $4 |
|
|
115
|
+
|
|
116
|
+
## Advanced configuration
|
|
117
|
+
|
|
118
|
+
### Custom headers
|
|
119
|
+
|
|
120
|
+
```typescript
|
|
121
|
+
const agent = new Agent({
|
|
122
|
+
id: "custom-agent",
|
|
123
|
+
name: "custom-agent",
|
|
124
|
+
model: {
|
|
125
|
+
url: "https://api.impossibl.com/v1",
|
|
126
|
+
id: "impossibl/anthropic/claude-fable-5",
|
|
127
|
+
apiKey: process.env.IMPOSSIBL_API_KEY,
|
|
128
|
+
headers: {
|
|
129
|
+
"X-Custom-Header": "value"
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
});
|
|
133
|
+
```
|
|
134
|
+
|
|
135
|
+
### Dynamic model selection
|
|
136
|
+
|
|
137
|
+
```typescript
|
|
138
|
+
const agent = new Agent({
|
|
139
|
+
id: "dynamic-agent",
|
|
140
|
+
name: "Dynamic Agent",
|
|
141
|
+
model: ({ requestContext }) => {
|
|
142
|
+
const useAdvanced = requestContext.task === "complex";
|
|
143
|
+
return useAdvanced
|
|
144
|
+
? "impossibl/zai/glm-5.2"
|
|
145
|
+
: "impossibl/anthropic/claude-fable-5";
|
|
146
|
+
}
|
|
147
|
+
});
|
|
148
|
+
```
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
> Discover all available pages from the documentation index: https://mastra.ai/llms.txt
|
|
2
|
+
|
|
3
|
+
# Infomaniak
|
|
4
|
+
|
|
5
|
+
Access 10 Infomaniak models through Mastra's model router. Authentication is handled automatically using the `INFOMANIAK_API_KEY` environment variable. Configure `INFOMANIAK_PRODUCT_ID` as well.
|
|
6
|
+
|
|
7
|
+
Learn more in the [Infomaniak documentation](https://www.infomaniak.com/en/hosting/ai-services/open-source-models).
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
INFOMANIAK_PRODUCT_ID=your-value
|
|
11
|
+
INFOMANIAK_API_KEY=your-api-key
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import { Agent } from "@mastra/core/agent";
|
|
16
|
+
|
|
17
|
+
const agent = new Agent({
|
|
18
|
+
id: "my-agent",
|
|
19
|
+
name: "My Agent",
|
|
20
|
+
instructions: "You are a helpful assistant",
|
|
21
|
+
model: "infomaniak/Qwen/Qwen3.5-122B-A10B-FP8"
|
|
22
|
+
});
|
|
23
|
+
|
|
24
|
+
// Generate a response
|
|
25
|
+
const response = await agent.generate("Hello!");
|
|
26
|
+
|
|
27
|
+
// Stream a response
|
|
28
|
+
const stream = await agent.stream("Tell me a story");
|
|
29
|
+
for await (const chunk of stream) {
|
|
30
|
+
console.log(chunk);
|
|
31
|
+
}
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
> **Info:** Mastra uses the OpenAI-compatible `/chat/completions` endpoint. Some provider-specific features may not be available. Check the [Infomaniak documentation](https://www.infomaniak.com/en/hosting/ai-services/open-source-models) for details.
|
|
35
|
+
|
|
36
|
+
## Models
|
|
37
|
+
|
|
38
|
+
| Model | Context | Tools | Reasoning | Image | Audio | Video | Input $/1M | Output $/1M |
|
|
39
|
+
| ------------------------------------------------------ | ------- | ----- | --------- | ----- | ----- | ----- | ---------- | ----------- |
|
|
40
|
+
| `infomaniak/bge_multilingual_gemma2` | 8K | | | | | | $0.08 | — |
|
|
41
|
+
| `infomaniak/google/gemma-4-31B-it` | 100K | | | | | | $0.25 | $0.50 |
|
|
42
|
+
| `infomaniak/mini_lm_l12_v2` | 128 | | | | | | — | — |
|
|
43
|
+
| `infomaniak/mistralai/Ministral-3-14B-Instruct-2512` | 100K | | | | | | $0.37 | $0.50 |
|
|
44
|
+
| `infomaniak/mistralai/Mistral-Small-4-119B-2603` | 256K | | | | | | $0.25 | $0.93 |
|
|
45
|
+
| `infomaniak/moonshotai/Kimi-K2.6` | 256K | | | | | | $0.74 | $4 |
|
|
46
|
+
| `infomaniak/nvidia/NVIDIA-Nemotron-3-Nano-30B-A3B-FP8` | 1.0M | | | | | | $0.06 | $0.25 |
|
|
47
|
+
| `infomaniak/Qwen/Qwen3.5-122B-A10B-FP8` | 200K | | | | | | $0.50 | $4 |
|
|
48
|
+
| `infomaniak/Qwen/Qwen3.5-397B-A17B-FP8` | 200K | | | | | | $0.99 | $4 |
|
|
49
|
+
| `infomaniak/swiss-ai/Apertus-v1.5-70B` | 100K | | | | | | $0.87 | $3 |
|
|
50
|
+
|
|
51
|
+
## Advanced configuration
|
|
52
|
+
|
|
53
|
+
### Custom headers
|
|
54
|
+
|
|
55
|
+
```typescript
|
|
56
|
+
const agent = new Agent({
|
|
57
|
+
id: "custom-agent",
|
|
58
|
+
name: "custom-agent",
|
|
59
|
+
model: {
|
|
60
|
+
url: "https://api.infomaniak.com/2/ai/${INFOMANIAK_PRODUCT_ID}/openai/v1",
|
|
61
|
+
id: "infomaniak/Qwen/Qwen3.5-122B-A10B-FP8",
|
|
62
|
+
apiKey: process.env.INFOMANIAK_API_KEY,
|
|
63
|
+
headers: {
|
|
64
|
+
"X-Custom-Header": "value"
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
});
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
### Dynamic model selection
|
|
71
|
+
|
|
72
|
+
```typescript
|
|
73
|
+
const agent = new Agent({
|
|
74
|
+
id: "dynamic-agent",
|
|
75
|
+
name: "Dynamic Agent",
|
|
76
|
+
model: ({ requestContext }) => {
|
|
77
|
+
const useAdvanced = requestContext.task === "complex";
|
|
78
|
+
return useAdvanced
|
|
79
|
+
? "infomaniak/swiss-ai/Apertus-v1.5-70B"
|
|
80
|
+
: "infomaniak/Qwen/Qwen3.5-122B-A10B-FP8";
|
|
81
|
+
}
|
|
82
|
+
});
|
|
83
|
+
```
|