@gtrabanco/pi-nan-provider 1.5.4 → 1.5.5
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/AGENTS.md +13 -5
- package/README.es.md +34 -38
- package/README.md +29 -33
- package/package.json +1 -1
- package/scripts/models.generated.ts +239 -59
- package/src/mcp/media-server.ts +1 -1
package/AGENTS.md
CHANGED
|
@@ -310,8 +310,8 @@ Since 1.0.0 the package version **aligns its MAJOR.MINOR with the pi release lin
|
|
|
310
310
|
- Since 0.10.0, this package uses native MCP via `pi.registerMcpServer()`.
|
|
311
311
|
The server is session-scoped, visible in `/mcp` with source "extension".
|
|
312
312
|
Server names and tool IDs:
|
|
313
|
-
- `nan-media` → tools: `mcp__nan_media__generate_image/edit_image/text_to_speech/list_voices/speech_to_text/list_models/embed_text/rerank_documents/get_quota`
|
|
314
|
-
(community stdio, `npx -y nan-mcp-server@1.
|
|
313
|
+
- `nan-media` → tools: `mcp__nan_media__generate_image/edit_image/text_to_speech/list_voices/speech_to_text/list_models/embed_text/rerank_documents/get_quota/get_usage`
|
|
314
|
+
(community stdio, `npx -y nan-mcp-server@1.5.0`, 120s timeout; 10 tools as of 1.5.0)
|
|
315
315
|
- `exposure: "direct"` — tools are declared to the model.
|
|
316
316
|
- User `mcp.json` entries with the same name take precedence.
|
|
317
317
|
- `/nan-mcp enable/disable` calls `pi.registerMcpServer()` / `pi.unregisterMcpServer()` directly.
|
|
@@ -336,10 +336,18 @@ Since 1.0.0 the package version **aligns its MAJOR.MINOR with the pi release lin
|
|
|
336
336
|
key, shared rate limit/quota). Spec: https://nan.builders/openapi.json
|
|
337
337
|
(tag "MCP"). **Currently exposes no tools** (see the removal note above).
|
|
338
338
|
- Community `nan-mcp-server` (https://github.com/luciferfran/nan-mcp-server):
|
|
339
|
-
stdio MCP server, version-pinned via NAN_MEDIA_MCP_VERSION (default 1.
|
|
340
|
-
or full command override via NAN_MEDIA_MCP_COMMAND. Tools (1.
|
|
339
|
+
stdio MCP server, version-pinned via NAN_MEDIA_MCP_VERSION (default 1.5.0)
|
|
340
|
+
or full command override via NAN_MEDIA_MCP_COMMAND. Tools (1.5.0): generate_image,
|
|
341
341
|
edit_image, text_to_speech, list_voices, speech_to_text, list_models, embed_text,
|
|
342
|
-
rerank_documents, get_quota.
|
|
342
|
+
rerank_documents, get_quota, get_usage.
|
|
343
|
+
The pin moved `1.3.0 → 1.5.0` in package 1.5.5 (issue #40, auto-created by the
|
|
344
|
+
weekly check; verdict safe, no tracked tool dropped). Upstream `1.4.0` added
|
|
345
|
+
`qwen-image-2.1` image support (no package change: the native image model
|
|
346
|
+
already exists in `src/images.ts`); `1.5.0` added `get_usage` — real
|
|
347
|
+
consumption and the credit pool from `GET /v1/usage`, recommended over the
|
|
348
|
+
legacy `get_quota` whose counters can be frozen (stale lines are flagged) —
|
|
349
|
+
and native registration exposes it automatically, so it is documented, not
|
|
350
|
+
bridged per-tool (verified on the published `server.js`, 2026-11-16).
|
|
343
351
|
- Automated check (scripts/check-nan-mcp-server.ts) compares the npm registry
|
|
344
352
|
against the pin weekly and files a `dependencies` issue when a newer release
|
|
345
353
|
exists, with a breaking/safe verdict from the live server tool surface.
|
package/README.es.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# @gtrabanco/𝜋-nan-provider
|
|
2
2
|
|
|
3
3
|
[](https://opensource.org/licenses/MIT)
|
|
4
|
-
[](https://github.com/gtrabanco/pi-nan-provider/releases)
|
|
5
5
|
[](https://cloud.nan.builders/r/7GK06FX8)
|
|
6
6
|
|
|
7
7
|
[NaN Builders](https://cloud.nan.builders/r/7GK06FX8) model provider + MCP nativo para [pi](https://github.com/earendil-works/pi).
|
|
@@ -25,8 +25,8 @@ Registra el proveedor `nan` vía `pi.registerProvider()` usando la API OpenAI-co
|
|
|
25
25
|
| **Controles de razonamiento** | `reasoningEffortValues` + `thinkingLevelMap` por modelo ([#16](https://github.com/gtrabanco/pi-nan-provider/issues/16)), el guard de stream solo-razonamiento ([#21](https://github.com/gtrabanco/pi-nan-provider/issues/21)) y el límite provisional `max_completion_tokens` para `qwen3.8-flash` ([#34](https://github.com/gtrabanco/pi-nan-provider/issues/34)). |
|
|
26
26
|
| **Cabecera de atribución** | `X-Pi-Provider: gtrabanco/pi-nan-provider@<version>` en cada petición, eliminada cuando la telemetría de instalación de pi está desactivada. |
|
|
27
27
|
| **Modelos de imagen nativos** | `flux-2-klein` y `qwen-image-2.1` registrados como modelos de pi `type: "image"`, accesibles desde codemode y extensiones. |
|
|
28
|
-
| **Puente MCP nativo de media** | El servidor `nan-media` (
|
|
29
|
-
| **Informe de
|
|
28
|
+
| **Puente MCP nativo de media** | El servidor `nan-media` (10 herramientas) registrado con `pi.registerMcpServer()`, gestionado con `/nan-mcp`. |
|
|
29
|
+
| **Informe de créditos** | `/nan-usage` muestra saldo de créditos con barra de progreso, desglose por modelo (input / cached / output en M, créditos consumidos) y periodo de facturación — todo desde `GET /v1/usage` ([#37](https://github.com/gtrabanco/pi-nan-provider/issues/37)). |
|
|
30
30
|
| **Evidencia de anomalías de caché** | Captura de `cf-ray` sobre la firma repetida `id` + `created` del gateway ([#17](https://github.com/gtrabanco/pi-nan-provider/issues/17)) más el recolector determinista `/nan-debug` ([#35](https://github.com/gtrabanco/pi-nan-provider/issues/35)). |
|
|
31
31
|
| **Integración con pi** | Refresco de modelos dirigido por el runtime Models de pi, overrides por modelo en `models.json` y el changelog de la extensión (`pi.changelogPath`) que pi muestra tras una actualización. |
|
|
32
32
|
|
|
@@ -35,7 +35,7 @@ Comandos:
|
|
|
35
35
|
| Comando | Propósito |
|
|
36
36
|
| :--- | :--- |
|
|
37
37
|
| `/nan-mcp` | Gestionar el puente MCP de media (`status` / `enable` / `disable`) |
|
|
38
|
-
| `/nan-usage [1-90]` |
|
|
38
|
+
| `/nan-usage [1-90]` | Saldo de créditos con barra de uso, desglose por modelo (in / cached / out en M · créditos cr) y totales históricos |
|
|
39
39
|
| `/nan-debug [tema] [--window N] [--out ruta] [--emit]` | Paquete de evidencia reproducible y redactado para NaN |
|
|
40
40
|
|
|
41
41
|
---
|
|
@@ -261,6 +261,7 @@ conector con `pi config` → Built-in extensions → `mcp`.
|
|
|
261
261
|
| `mcp__nan_media__embed_text` | Embeddings de texto (qwen3-embedding) |
|
|
262
262
|
| `mcp__nan_media__rerank_documents` | Reordenación de documentos (Qwen3-Reranker) |
|
|
263
263
|
| `mcp__nan_media__get_quota` | Cuota de tokens por modelo (usado / tope / restante / reinicio) |
|
|
264
|
+
| `mcp__nan_media__get_usage` | Consumo real y bolsa de créditos (`GET /v1/usage`; preferido frente a los contadores obsoletos de `get_quota`) |
|
|
264
265
|
|
|
265
266
|
> pi 0.99.0–0.99.1 usaba la forma con guiones (`mcp__nan-media__*`); pi 0.99.2+ sanitiza los
|
|
266
267
|
> nombres de herramientas a solo `[A-Za-z0-9_]`, así que los guiones se convirtieron en guiones
|
|
@@ -271,7 +272,7 @@ conector con `pi config` → Built-in extensions → `mcp`.
|
|
|
271
272
|
| Variable | Por defecto | Descripción |
|
|
272
273
|
| :--- | :--- | :--- |
|
|
273
274
|
| `NAN_MEDIA_MCP` | — | Override por sesión (`0` o `false` para desactivar). |
|
|
274
|
-
| `NAN_MEDIA_MCP_VERSION` | `1.
|
|
275
|
+
| `NAN_MEDIA_MCP_VERSION` | `1.5.0` | Versión del servidor fijada (recomendado). |
|
|
275
276
|
| `NAN_MEDIA_MCP_COMMAND` | — | Override del comando personalizado. |
|
|
276
277
|
| `NAN_MEDIA_MCP_TIMEOUT_MS` | `120000` | Timeout por llamada. |
|
|
277
278
|
|
|
@@ -293,22 +294,22 @@ también están automatizadas: el workflow semanal `check-pi-sdk-versions` abre
|
|
|
293
294
|
|
|
294
295
|
---
|
|
295
296
|
|
|
296
|
-
## 📊
|
|
297
|
+
## 📊 Créditos: `/nan-usage`
|
|
297
298
|
|
|
298
|
-
Muestra tu
|
|
299
|
+
Muestra tu saldo de créditos NaN con una barra de progreso, desglose por modelo (input / cached / output en millones, créditos consumidos), periodo de facturación y totales históricos.
|
|
299
300
|
|
|
300
301
|
### Cómo funciona
|
|
301
302
|
|
|
302
303
|
`/nan-usage` llama al endpoint [`GET /v1/usage`](https://nan.builders/docs/api#tag/usage) de NaN con **la misma API key que ya usas para chat** — la credencial guardada en pi (`/login nan`) o `NAN_API_KEY`. Sin login de la CLI, sin cookie de sesión, sin configuración extra.
|
|
303
304
|
|
|
304
|
-
El endpoint devuelve tu
|
|
305
|
+
El endpoint devuelve tu consumo (filas por fecha y modelo) más los totales que cubren la ventana solicitada — máx. 90 días inclusivos. El comando lee esos totales y los muestra en un layout centrado en créditos: la barra principal refleja créditos consumidos vs. el allowance de tu plan, y cada fila de modelo muestra tokens (in / cached / out) y los créditos que costó.
|
|
305
306
|
|
|
306
|
-
Límite de
|
|
307
|
+
Límite de velocidad: 30 peticiones por minuto para `/usage`, separado de los endpoints de modelos.
|
|
307
308
|
|
|
308
309
|
### Uso
|
|
309
310
|
|
|
310
311
|
```
|
|
311
|
-
/nan-usage # mes
|
|
312
|
+
/nan-usage # mes actual en UTC (coincide con el periodo de facturación)
|
|
312
313
|
/nan-usage 7 # ventana móvil de 7 días (1-90)
|
|
313
314
|
/nan-usage 30 # ventana móvil de 30 días
|
|
314
315
|
/nan-usage help # muestra la línea de uso
|
|
@@ -320,7 +321,7 @@ Límite de tasa: 30 peticiones por minuto para `/usage`, separado del de los end
|
|
|
320
321
|
```
|
|
321
322
|
/login nan
|
|
322
323
|
```
|
|
323
|
-
o
|
|
324
|
+
o exportala en su lugar:
|
|
324
325
|
```bash
|
|
325
326
|
export NAN_API_KEY=sk-...
|
|
326
327
|
```
|
|
@@ -330,42 +331,37 @@ Límite de tasa: 30 peticiones por minuto para `/usage`, separado del de los end
|
|
|
330
331
|
```
|
|
331
332
|
|
|
332
333
|
> [!TIP]
|
|
333
|
-
> ¿No se resuelve
|
|
334
|
+
> ¿No se resuelve clave API? El comando vuelve a la tabla de cuotas estática de los docs y te indica cómo autenticarte.
|
|
334
335
|
|
|
335
|
-
###
|
|
336
|
+
### Qué ves
|
|
336
337
|
|
|
337
|
-
**Con API
|
|
338
|
+
**Con clave API** (uso real):
|
|
338
339
|
```
|
|
339
|
-
|
|
340
|
+
💳 Créditos
|
|
341
|
+
[████████░░░░░░░░░░░░] 13.4% usado · 936.7 / 7000 (6063.3 restantes)
|
|
342
|
+
Periodo: 2026-11-02 → 2026-12-02 UTC
|
|
340
343
|
|
|
341
|
-
|
|
344
|
+
⏱️ Próximo reset: 2026-12-02 UTC (20d 16h 0m 0s)
|
|
342
345
|
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
MiMo V2.5:
|
|
352
|
-
[███░░░░░░░░░░░░░░░░░] 12.5% of monthly cap
|
|
353
|
-
Used: 125.0M / 1.0B (875.0M remaining) · 840 requests
|
|
346
|
+
⚡ Uso
|
|
347
|
+
deepseek-v4-flash · 2701.1M in / 450.9M cached / 8.8M out · 189.7 (cr)
|
|
348
|
+
glm5.3-flash · 1619.6M in / 20.9M cached / 7.2M out · 621.4 (cr)
|
|
349
|
+
qwen3.6 · 1123.9M in / 37.1M cached / 3.3M out · 0 (cr)
|
|
350
|
+
mimo-v2.6-flash · 368.4M in / 67.4M cached / 3.3M out · 104.3 (cr)
|
|
351
|
+
qwen3.8-flash · 286.4M in / 0.0M cached / 1.3M out · 21.3 (cr)
|
|
352
|
+
qwen3-embedding · 4.6M in / 0.0M cached / 0.0M out · 0 (cr)
|
|
353
|
+
gemma4 · 1.0M in / 0.0M cached / 0.0M out · 0 (cr)
|
|
354
354
|
|
|
355
|
-
|
|
356
|
-
[████████░░░░░░░░░░░░] 40.0% of monthly cap
|
|
357
|
-
Used: 1.2B / 3.0B (1.8B remaining) · 2,400 requests
|
|
358
|
-
↳ rolling window: 400.0M / 4h (daily granularity — /usage cannot break it down)
|
|
355
|
+
Créditos totales consumidos: 936.7 (cr)
|
|
359
356
|
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
Qwen 3.6: 890.5K used · 123 requests
|
|
363
|
-
|
|
364
|
-
Window totals: 2.6B tokens (2.0B prompt / 640.0M completion) · 18,432 requests
|
|
365
|
-
All time: 13.2B tokens · 41,250 requests (cached 2026-02-01)
|
|
366
|
-
💡 Source: GET /v1/usage · caps from https://nan.builders/docs/models
|
|
357
|
+
Histórico: 30.9B tokens · 125,915 requests (actualizado 2026-11-12)
|
|
358
|
+
💡 Fuente: GET /v1/usage
|
|
367
359
|
```
|
|
368
360
|
|
|
361
|
+
- **💳 Créditos**: barra de progreso con `% usado · used / allowance (remaining)`, fechas del periodo de facturación, créditos de pack con expiración si aplica, advertencia si la cuenta está congelada.
|
|
362
|
+
- **⚡ Uso**: modelos ordenados por créditos consumidos (métrica primaria de facturación), cada fila: `model · X.XM in / YM cached / Z.ZM out · W (cr)`.
|
|
363
|
+
- **Histórico**: totales de vida útil con la última marca de caché.
|
|
364
|
+
|
|
369
365
|
**Sin API key** (solo límites estáticos):
|
|
370
366
|
```
|
|
371
367
|
📊 NaN Quota Status (static limits)
|
package/README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# @gtrabanco/𝜋-nan-provider
|
|
2
2
|
|
|
3
3
|
[](https://opensource.org/licenses/MIT)
|
|
4
|
-
[](https://github.com/gtrabanco/pi-nan-provider/releases)
|
|
5
5
|
[](https://cloud.nan.builders/r/7GK06FX8)
|
|
6
6
|
|
|
7
7
|
[NaN Builders](https://cloud.nan.builders/r/7GK06FX8) model provider + a native MCP server for [pi](https://github.com/earendil-works/pi).
|
|
@@ -25,8 +25,8 @@ Registers the `nan` provider via `pi.registerProvider()` using NaN's OpenAI-comp
|
|
|
25
25
|
| **Reasoning controls** | Per-model `reasoningEffortValues` + `thinkingLevelMap` ([#16](https://github.com/gtrabanco/pi-nan-provider/issues/16)), the reasoning-only stream guard ([#21](https://github.com/gtrabanco/pi-nan-provider/issues/21)) and the `max_completion_tokens` interim bound for `qwen3.8-flash` ([#34](https://github.com/gtrabanco/pi-nan-provider/issues/34)). |
|
|
26
26
|
| **Attribution header** | `X-Pi-Provider: gtrabanco/pi-nan-provider@<version>` on every request, stripped when pi's install telemetry is disabled. |
|
|
27
27
|
| **Native image models** | `flux-2-klein` and `qwen-image-2.1` registered as pi `type: "image"` models, reachable from codemode and extensions. |
|
|
28
|
-
| **Native MCP media bridge** | The `nan-media` server (
|
|
29
|
-
| **
|
|
28
|
+
| **Native MCP media bridge** | The `nan-media` server (10 tools) registered through `pi.registerMcpServer()`, managed with `/nan-mcp`. |
|
|
29
|
+
| **Credits reporting** | `/nan-usage` shows credits balance with a progress bar, per-model breakdown (input / cached / output in M, credits consumed), and billing period — all from `GET /v1/usage` ([#37](https://github.com/gtrabanco/pi-nan-provider/issues/37)). |
|
|
30
30
|
| **Cache-anomaly evidence** | `cf-ray` capture on the repeated `id` + `created` gateway signature ([#17](https://github.com/gtrabanco/pi-nan-provider/issues/17)) plus the deterministic `/nan-debug` collector ([#35](https://github.com/gtrabanco/pi-nan-provider/issues/35)). |
|
|
31
31
|
| **pi integration** | Model refresh driven by pi's Models runtime, per-model `models.json` overrides, and the extension changelog (`pi.changelogPath`) that pi shows after an update. |
|
|
32
32
|
|
|
@@ -35,7 +35,7 @@ Commands:
|
|
|
35
35
|
| Command | Purpose |
|
|
36
36
|
| :--- | :--- |
|
|
37
37
|
| `/nan-mcp` | Manage the media MCP bridge (`status` / `enable` / `disable`) |
|
|
38
|
-
| `/nan-usage [1-90]` |
|
|
38
|
+
| `/nan-usage [1-90]` | Credits balance with usage bar, per-model breakdown (in / cached / out in M · credits cr), and all-time totals |
|
|
39
39
|
| `/nan-debug [topic] [--window N] [--out path] [--emit]` | Redacted, reproducible evidence package for NaN |
|
|
40
40
|
|
|
41
41
|
---
|
|
@@ -259,6 +259,7 @@ registering a server that can never connect. To get MCP in the CLI, enable the c
|
|
|
259
259
|
| `mcp__nan_media__embed_text` | Text embeddings (qwen3-embedding) |
|
|
260
260
|
| `mcp__nan_media__rerank_documents` | Document reranking (Qwen3-Reranker) |
|
|
261
261
|
| `mcp__nan_media__get_quota` | Per-model token quota (used / cap / remaining / reset) |
|
|
262
|
+
| `mcp__nan_media__get_usage` | Real consumption and credit pool (`GET /v1/usage`; preferred over stale `get_quota` counters) |
|
|
262
263
|
|
|
263
264
|
> pi 0.99.0–0.99.1 used the hyphenated form (`mcp__nan-media__*`); pi 0.99.2+ sanitizes tool
|
|
264
265
|
> names to `[A-Za-z0-9_]` only, so hyphens became underscores. The underscore form applies
|
|
@@ -269,7 +270,7 @@ registering a server that can never connect. To get MCP in the CLI, enable the c
|
|
|
269
270
|
| Variable | Default | Description |
|
|
270
271
|
| :--- | :--- | :--- |
|
|
271
272
|
| `NAN_MEDIA_MCP` | — | Per-session override (`0` or `false` to disable). |
|
|
272
|
-
| `NAN_MEDIA_MCP_VERSION` | `1.
|
|
273
|
+
| `NAN_MEDIA_MCP_VERSION` | `1.5.0` | Pinned server version (recommended). |
|
|
273
274
|
| `NAN_MEDIA_MCP_COMMAND` | — | Custom command override. |
|
|
274
275
|
| `NAN_MEDIA_MCP_TIMEOUT_MS` | `120000` | Per-call timeout. |
|
|
275
276
|
|
|
@@ -290,22 +291,22 @@ included) for human review — see `.github/workflows/check-pi-sdk-versions.yml`
|
|
|
290
291
|
|
|
291
292
|
---
|
|
292
293
|
|
|
293
|
-
## 📊
|
|
294
|
+
## 📊 Credits: `/nan-usage`
|
|
294
295
|
|
|
295
|
-
Shows your NaN
|
|
296
|
+
Shows your NaN credits balance with a progress bar, per-model breakdown (input / cached / output in millions, credits consumed), billing period, and all-time totals.
|
|
296
297
|
|
|
297
298
|
### How it works
|
|
298
299
|
|
|
299
300
|
`/nan-usage` calls NaN's [`GET /v1/usage`](https://nan.builders/docs/api#tag/usage) endpoint with the **same API key you already use for chat** — pi's stored credential (`/login nan`) or `NAN_API_KEY`. No CLI login, no session cookie, no extra setup.
|
|
300
301
|
|
|
301
|
-
The endpoint returns your usage (rows per date and model) plus totals covering the requested window — at most 90 inclusive days. The command reads those totals and
|
|
302
|
+
The endpoint returns your usage (rows per date and model) plus totals covering the requested window — at most 90 inclusive days. The command reads those totals and displays them in a credits-first layout: the main progress bar reflects credits consumed vs. your plan's allowance, and each model row shows tokens (in / cached / out) and the credits it cost.
|
|
302
303
|
|
|
303
304
|
Rate limit: 30 requests per minute for `/usage`, separate from the model endpoints.
|
|
304
305
|
|
|
305
306
|
### Usage
|
|
306
307
|
|
|
307
308
|
```
|
|
308
|
-
/nan-usage # current UTC month (matches the
|
|
309
|
+
/nan-usage # current UTC month (matches the billing period)
|
|
309
310
|
/nan-usage 7 # rolling 7-day window (1-90)
|
|
310
311
|
/nan-usage 30 # rolling 30-day window
|
|
311
312
|
/nan-usage help # show the usage line
|
|
@@ -333,36 +334,31 @@ Rate limit: 30 requests per minute for `/usage`, separate from the model endpoin
|
|
|
333
334
|
|
|
334
335
|
**With an API key** (real usage):
|
|
335
336
|
```
|
|
336
|
-
|
|
337
|
+
💳 Credits
|
|
338
|
+
[████████░░░░░░░░░░░░] 13.4% used · 936.7 / 7000 (6063.3 remaining)
|
|
339
|
+
Period: 2026-11-02 → 2026-12-02 UTC
|
|
337
340
|
|
|
338
|
-
|
|
341
|
+
⏱️ Next billing reset: 2026-12-02 UTC (20d 16h 0m 0s)
|
|
339
342
|
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
MiMo V2.5:
|
|
349
|
-
[███░░░░░░░░░░░░░░░░░] 12.5% of monthly cap
|
|
350
|
-
Used: 125.0M / 1.0B (875.0M remaining) · 840 requests
|
|
343
|
+
⚡ Usage
|
|
344
|
+
deepseek-v4-flash · 2701.1M in / 450.9M cached / 8.8M out · 189.7 (cr)
|
|
345
|
+
glm5.3-flash · 1619.6M in / 20.9M cached / 7.2M out · 621.4 (cr)
|
|
346
|
+
qwen3.6 · 1123.9M in / 37.1M cached / 3.3M out · 0 (cr)
|
|
347
|
+
mimo-v2.6-flash · 368.4M in / 67.4M cached / 3.3M out · 104.3 (cr)
|
|
348
|
+
qwen3.8-flash · 286.4M in / 0.0M cached / 1.3M out · 21.3 (cr)
|
|
349
|
+
qwen3-embedding · 4.6M in / 0.0M cached / 0.0M out · 0 (cr)
|
|
350
|
+
gemma4 · 1.0M in / 0.0M cached / 0.0M out · 0 (cr)
|
|
351
351
|
|
|
352
|
-
|
|
353
|
-
[████████░░░░░░░░░░░░] 40.0% of monthly cap
|
|
354
|
-
Used: 1.2B / 3.0B (1.8B remaining) · 2,400 requests
|
|
355
|
-
↳ rolling window: 400.0M / 4h (daily granularity — /usage cannot break it down)
|
|
352
|
+
Total credits consumed: 936.7 (cr)
|
|
356
353
|
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
Qwen 3.6: 890.5K used · 123 requests
|
|
360
|
-
|
|
361
|
-
Window totals: 2.6B tokens (2.0B prompt / 640.0M completion) · 18,432 requests
|
|
362
|
-
All time: 13.2B tokens · 41,250 requests (cached 2026-02-01)
|
|
363
|
-
💡 Source: GET /v1/usage · caps from https://nan.builders/docs/models
|
|
354
|
+
All time: 30.9B tokens · 125,915 requests (as of 2026-11-12)
|
|
355
|
+
💡 Source: GET /v1/usage
|
|
364
356
|
```
|
|
365
357
|
|
|
358
|
+
- **💳 Credits**: progress bar showing `% used · used / allowance (remaining)`, billing period dates, pack credits with expiration if applicable, frozen-account warning.
|
|
359
|
+
- **⚡ Usage**: models sorted by credits consumed (primary billing metric), each row: `model · X.XM in / YM cached / Z.ZM out · W (cr)`.
|
|
360
|
+
- **All time**: lifetime totals with the last cache timestamp.
|
|
361
|
+
|
|
366
362
|
**Without an API key** (static limits only):
|
|
367
363
|
```
|
|
368
364
|
📊 NaN Quota Status (static limits)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gtrabanco/pi-nan-provider",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.5",
|
|
4
4
|
"description": "NaN Builders (api.nan.builders) model provider for pi - OpenAI-compatible registration with a models.dev-generated fallback, tier-aware live catalog, and an optional community media MCP bridge",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pi",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// This file is auto-generated by scripts/generate-models.ts
|
|
2
2
|
// Do not edit manually — run `bun run generate-models` to update.
|
|
3
3
|
//
|
|
4
|
-
// Source: https://models.dev/api.json (provider "nan"), fetched 2026-11-
|
|
4
|
+
// Source: https://models.dev/api.json (provider "nan"), fetched 2026-11-16T17:24:10.105Z
|
|
5
5
|
// Provenance: every contextWindow/maxTokens/input/cost value traces to
|
|
6
6
|
// models.dev or to the per-entry notes below. Nothing is invented; entries
|
|
7
7
|
// models.dev documents incompletely are omitted and flagged instead.
|
|
@@ -14,16 +14,16 @@ import type { GeneratedModelEntry } from "../src/fetch-models.ts";
|
|
|
14
14
|
export const NAN_GENERATED_MODELS: readonly GeneratedModelEntry[] = [
|
|
15
15
|
{
|
|
16
16
|
"id": "deepseek-v4-flash",
|
|
17
|
-
"name": "DeepSeek V4.1 Flash",
|
|
17
|
+
"name": "DeepSeek V4.1 Flash 1017",
|
|
18
18
|
"reasoning": true,
|
|
19
19
|
"input": [
|
|
20
20
|
"text",
|
|
21
21
|
"image"
|
|
22
22
|
],
|
|
23
23
|
"cost": {
|
|
24
|
-
"input": 0,
|
|
25
|
-
"output":
|
|
26
|
-
"cacheRead": 0,
|
|
24
|
+
"input": 0.29484,
|
|
25
|
+
"output": 1.17936,
|
|
26
|
+
"cacheRead": 0.0058968,
|
|
27
27
|
"cacheWrite": 0
|
|
28
28
|
},
|
|
29
29
|
"contextWindow": 1048576,
|
|
@@ -47,8 +47,8 @@ export const NAN_GENERATED_MODELS: readonly GeneratedModelEntry[] = [
|
|
|
47
47
|
],
|
|
48
48
|
"extras": {
|
|
49
49
|
"id": "deepseek-v4-flash",
|
|
50
|
-
"name": "DeepSeek V4.1 Flash",
|
|
51
|
-
"description": "DeepSeek V4.1 Flash
|
|
50
|
+
"name": "DeepSeek V4.1 Flash 1017",
|
|
51
|
+
"description": "October 17 update of DeepSeek V4.1 Flash with improved reasoning, coding, agentic tasks, and visual understanding",
|
|
52
52
|
"family": "deepseek-flash",
|
|
53
53
|
"attachment": true,
|
|
54
54
|
"reasoning": true,
|
|
@@ -70,8 +70,8 @@ export const NAN_GENERATED_MODELS: readonly GeneratedModelEntry[] = [
|
|
|
70
70
|
"structured_output": true,
|
|
71
71
|
"temperature": true,
|
|
72
72
|
"knowledge": "2025-05",
|
|
73
|
-
"release_date": "2026-
|
|
74
|
-
"last_updated": "2026-
|
|
73
|
+
"release_date": "2026-10-17",
|
|
74
|
+
"last_updated": "2026-10-17",
|
|
75
75
|
"modalities": {
|
|
76
76
|
"input": [
|
|
77
77
|
"text",
|
|
@@ -87,10 +87,11 @@ export const NAN_GENERATED_MODELS: readonly GeneratedModelEntry[] = [
|
|
|
87
87
|
"output": 384000
|
|
88
88
|
},
|
|
89
89
|
"cost": {
|
|
90
|
-
"input": 0,
|
|
91
|
-
"output":
|
|
90
|
+
"input": 0.29484,
|
|
91
|
+
"output": 1.17936,
|
|
92
|
+
"cache_read": 0.0058968
|
|
92
93
|
},
|
|
93
|
-
"canonical_model_id": "deepseek/deepseek-v4.1-flash"
|
|
94
|
+
"canonical_model_id": "deepseek/deepseek-v4.1-flash-1017"
|
|
94
95
|
}
|
|
95
96
|
},
|
|
96
97
|
{
|
|
@@ -118,10 +119,51 @@ export const NAN_GENERATED_MODELS: readonly GeneratedModelEntry[] = [
|
|
|
118
119
|
},
|
|
119
120
|
"notes": [
|
|
120
121
|
"compat matches the maintainer's working ~/.pi/agent/models.json LiteLLM config for api.nan.builders (2026-09-04): supportsDeveloperRole false, supportsReasoningEffort true, maxTokensField max_tokens. NaN's docs example sets only supportsDeveloperRole: true and is not battle-tested. supportsFinishReason true (2026-09-13, issue #2): the LiteLLM gateway intermittently closes SSE streams before emitting finish_reason; with true pi-ai raises 'Stream ended without finish_reason', which matches pi-ai's retryable-provider pattern ('ended without') and is retried automatically, whereas false silently synthesized stop/toolUse and stalled the turn mid-answer. supportsUsageInStreaming true (2026-09-16, issue #7): NaN's published schema is silent about stream_options, but the live gateway honors it — two identical streaming calls per model, differing only in stream_options: { include_usage: true }, returned 0 usage chunks without it and exactly 1 with it (prompt/completion/reasoning/cached token counts) on deepseek-v4-flash, glm5.3-flash, qwen3.6, mimo-v2.5 and gemma4, and a real pi session then recorded token counts where it recorded zeros. pi-ai only sends stream_options when this is not false, and the sanitizer forwards it when the model declares true, so chat models opt in by default and usage is reported (issue #4). A model that does not report streaming usage can still opt out per model with a models.json compat override (supportsUsageInStreaming: false); the sanitizer then strips stream_options and the payload stays strict.",
|
|
121
|
-
"
|
|
122
|
-
"
|
|
122
|
+
"NaN external-provider model launched 2026-11-10 (NaN pricing page name 'DeepSeek V4-Pro (0813 version)'). contextWindow 1,048,576: NaN pricing page card '1M context' (maintainer screenshot, 2026-11-10) with NaN's 1M = 1,048,576 convention (https://nan.builders/docs/pi). maxTokens 32,768: https://nan.builders/docs/pi declares 32768 for every 1M-context NaN model (vendor limit 393,216 on models.dev provider deepseek). input text only per models.dev provider deepseek (deepseek-v4-pro), reasoning model per the vendor. Existence: live GET https://api.nan.builders/v1/models (checked 2026-11-10); the docs https://nan.builders/docs/models, https://nan.builders/docs/pi and https://nan.builders/openapi.json do not list it yet. reasoningEffortValues [] and no thinkingLevelMap: the gateway's reasoning_effort handling for external providers is unmeasured. cost 0 per maintainer decision.",
|
|
123
|
+
"manual-only: \"deepseek-v4-pro\" skipped: models.dev provider \"nan\" now lists it, so the manual-only entry is not emitted and the models.dev values are used (NaN external-provider model launched 2026-11-10, listed by the live GET /v1/models but absent from models.dev provider nan and the NaN docs)"
|
|
123
124
|
],
|
|
124
|
-
"extras": {
|
|
125
|
+
"extras": {
|
|
126
|
+
"id": "deepseek-v4-pro",
|
|
127
|
+
"name": "DeepSeek V4 Pro 0813",
|
|
128
|
+
"description": "DeepSeek V4 Pro snapshot with million-token context and support for thinking and non-thinking modes",
|
|
129
|
+
"family": "deepseek-thinking",
|
|
130
|
+
"attachment": false,
|
|
131
|
+
"reasoning": true,
|
|
132
|
+
"reasoning_options": [
|
|
133
|
+
{
|
|
134
|
+
"type": "effort",
|
|
135
|
+
"values": [
|
|
136
|
+
"none",
|
|
137
|
+
"low",
|
|
138
|
+
"high",
|
|
139
|
+
"max"
|
|
140
|
+
]
|
|
141
|
+
}
|
|
142
|
+
],
|
|
143
|
+
"tool_call": true,
|
|
144
|
+
"temperature": true,
|
|
145
|
+
"release_date": "2026-08-13",
|
|
146
|
+
"last_updated": "2026-08-22",
|
|
147
|
+
"modalities": {
|
|
148
|
+
"input": [
|
|
149
|
+
"text"
|
|
150
|
+
],
|
|
151
|
+
"output": [
|
|
152
|
+
"text"
|
|
153
|
+
]
|
|
154
|
+
},
|
|
155
|
+
"open_weights": true,
|
|
156
|
+
"limit": {
|
|
157
|
+
"context": 1000000,
|
|
158
|
+
"output": 384000
|
|
159
|
+
},
|
|
160
|
+
"cost": {
|
|
161
|
+
"input": 1.85328,
|
|
162
|
+
"output": 5.55984,
|
|
163
|
+
"cache_read": 0.061776
|
|
164
|
+
},
|
|
165
|
+
"canonical_model_id": "deepseek/deepseek-v4-pro-0813"
|
|
166
|
+
}
|
|
125
167
|
},
|
|
126
168
|
{
|
|
127
169
|
"id": "gemma4",
|
|
@@ -178,6 +220,11 @@ export const NAN_GENERATED_MODELS: readonly GeneratedModelEntry[] = [
|
|
|
178
220
|
"high",
|
|
179
221
|
"max"
|
|
180
222
|
]
|
|
223
|
+
},
|
|
224
|
+
{
|
|
225
|
+
"type": "budget_tokens",
|
|
226
|
+
"min": 0,
|
|
227
|
+
"max": 32768
|
|
181
228
|
}
|
|
182
229
|
],
|
|
183
230
|
"tool_call": true,
|
|
@@ -215,9 +262,9 @@ export const NAN_GENERATED_MODELS: readonly GeneratedModelEntry[] = [
|
|
|
215
262
|
"image"
|
|
216
263
|
],
|
|
217
264
|
"cost": {
|
|
218
|
-
"input":
|
|
219
|
-
"output":
|
|
220
|
-
"cacheRead": 0,
|
|
265
|
+
"input": 1.37592,
|
|
266
|
+
"output": 4.32432,
|
|
267
|
+
"cacheRead": 0.029484,
|
|
221
268
|
"cacheWrite": 0
|
|
222
269
|
},
|
|
223
270
|
"contextWindow": 1048576,
|
|
@@ -281,8 +328,9 @@ export const NAN_GENERATED_MODELS: readonly GeneratedModelEntry[] = [
|
|
|
281
328
|
"output": 131072
|
|
282
329
|
},
|
|
283
330
|
"cost": {
|
|
284
|
-
"input":
|
|
285
|
-
"output":
|
|
331
|
+
"input": 1.37592,
|
|
332
|
+
"output": 4.32432,
|
|
333
|
+
"cache_read": 0.029484
|
|
286
334
|
},
|
|
287
335
|
"canonical_model_id": "zhipuai/glm-5.3"
|
|
288
336
|
}
|
|
@@ -296,9 +344,9 @@ export const NAN_GENERATED_MODELS: readonly GeneratedModelEntry[] = [
|
|
|
296
344
|
"image"
|
|
297
345
|
],
|
|
298
346
|
"cost": {
|
|
299
|
-
"input": 0,
|
|
300
|
-
"output": 0,
|
|
301
|
-
"cacheRead": 0,
|
|
347
|
+
"input": 0.14742,
|
|
348
|
+
"output": 0.4914,
|
|
349
|
+
"cacheRead": 0.029484,
|
|
302
350
|
"cacheWrite": 0
|
|
303
351
|
},
|
|
304
352
|
"contextWindow": 1048576,
|
|
@@ -364,8 +412,9 @@ export const NAN_GENERATED_MODELS: readonly GeneratedModelEntry[] = [
|
|
|
364
412
|
"output": 131072
|
|
365
413
|
},
|
|
366
414
|
"cost": {
|
|
367
|
-
"input": 0,
|
|
368
|
-
"output": 0
|
|
415
|
+
"input": 0.14742,
|
|
416
|
+
"output": 0.4914,
|
|
417
|
+
"cache_read": 0.029484
|
|
369
418
|
},
|
|
370
419
|
"canonical_model_id": "zhipuai/glm-5.3-flash"
|
|
371
420
|
}
|
|
@@ -396,10 +445,52 @@ export const NAN_GENERATED_MODELS: readonly GeneratedModelEntry[] = [
|
|
|
396
445
|
},
|
|
397
446
|
"notes": [
|
|
398
447
|
"compat matches the maintainer's working ~/.pi/agent/models.json LiteLLM config for api.nan.builders (2026-09-04): supportsDeveloperRole false, supportsReasoningEffort true, maxTokensField max_tokens. NaN's docs example sets only supportsDeveloperRole: true and is not battle-tested. supportsFinishReason true (2026-09-13, issue #2): the LiteLLM gateway intermittently closes SSE streams before emitting finish_reason; with true pi-ai raises 'Stream ended without finish_reason', which matches pi-ai's retryable-provider pattern ('ended without') and is retried automatically, whereas false silently synthesized stop/toolUse and stalled the turn mid-answer. supportsUsageInStreaming true (2026-09-16, issue #7): NaN's published schema is silent about stream_options, but the live gateway honors it — two identical streaming calls per model, differing only in stream_options: { include_usage: true }, returned 0 usage chunks without it and exactly 1 with it (prompt/completion/reasoning/cached token counts) on deepseek-v4-flash, glm5.3-flash, qwen3.6, mimo-v2.5 and gemma4, and a real pi session then recorded token counts where it recorded zeros. pi-ai only sends stream_options when this is not false, and the sanitizer forwards it when the model declares true, so chat models opt in by default and usage is reported (issue #4). A model that does not report streaming usage can still opt out per model with a models.json compat override (supportsUsageInStreaming: false); the sanitizer then strips stream_options and the payload stays strict.",
|
|
399
|
-
"
|
|
400
|
-
"
|
|
448
|
+
"NaN external-provider model launched 2026-11-10. contextWindow 1,048,576: NaN pricing page card '1M context' (maintainer screenshot, 2026-11-10) with NaN's 1M = 1,048,576 convention (https://nan.builders/docs/pi). maxTokens 32,768: https://nan.builders/docs/pi declares 32768 for every 1M-context NaN model (vendor limit 65,536 on models.dev provider tencent-tokenhub). input text+image per models.dev provider tencent-tokenhub (hy4), reasoning model per the vendor. Existence: live GET https://api.nan.builders/v1/models (checked 2026-11-10); the docs https://nan.builders/docs/models, https://nan.builders/docs/pi and https://nan.builders/openapi.json do not list it yet. reasoningEffortValues [] and no thinkingLevelMap: the gateway's reasoning_effort handling for external providers is unmeasured. cost 0 per maintainer decision.",
|
|
449
|
+
"manual-only: \"hy4\" skipped: models.dev provider \"nan\" now lists it, so the manual-only entry is not emitted and the models.dev values are used (NaN external-provider model launched 2026-11-10, listed by the live GET /v1/models but absent from models.dev provider nan and the NaN docs)"
|
|
401
450
|
],
|
|
402
|
-
"extras": {
|
|
451
|
+
"extras": {
|
|
452
|
+
"id": "hy4",
|
|
453
|
+
"name": "Hy4",
|
|
454
|
+
"description": "A next-generation multimodal productivity model with significantly enhanced Agent and complex task execution capabilities.",
|
|
455
|
+
"family": "Hy",
|
|
456
|
+
"attachment": true,
|
|
457
|
+
"reasoning": true,
|
|
458
|
+
"reasoning_options": [
|
|
459
|
+
{
|
|
460
|
+
"type": "effort",
|
|
461
|
+
"values": [
|
|
462
|
+
"none",
|
|
463
|
+
"low",
|
|
464
|
+
"high"
|
|
465
|
+
]
|
|
466
|
+
}
|
|
467
|
+
],
|
|
468
|
+
"tool_call": true,
|
|
469
|
+
"temperature": true,
|
|
470
|
+
"release_date": "2026-11-04",
|
|
471
|
+
"last_updated": "2026-11-04",
|
|
472
|
+
"modalities": {
|
|
473
|
+
"input": [
|
|
474
|
+
"text",
|
|
475
|
+
"image"
|
|
476
|
+
],
|
|
477
|
+
"output": [
|
|
478
|
+
"text"
|
|
479
|
+
]
|
|
480
|
+
},
|
|
481
|
+
"open_weights": false,
|
|
482
|
+
"limit": {
|
|
483
|
+
"context": 1048576,
|
|
484
|
+
"input": 983010,
|
|
485
|
+
"output": 65536
|
|
486
|
+
},
|
|
487
|
+
"cost": {
|
|
488
|
+
"input": 1.170936,
|
|
489
|
+
"output": 3.511404,
|
|
490
|
+
"cache_read": 0.058968
|
|
491
|
+
},
|
|
492
|
+
"canonical_model_id": "tencent/hy4"
|
|
493
|
+
}
|
|
403
494
|
},
|
|
404
495
|
{
|
|
405
496
|
"id": "kimi-k3.1-pro",
|
|
@@ -427,10 +518,52 @@ export const NAN_GENERATED_MODELS: readonly GeneratedModelEntry[] = [
|
|
|
427
518
|
},
|
|
428
519
|
"notes": [
|
|
429
520
|
"compat matches the maintainer's working ~/.pi/agent/models.json LiteLLM config for api.nan.builders (2026-09-04): supportsDeveloperRole false, supportsReasoningEffort true, maxTokensField max_tokens. NaN's docs example sets only supportsDeveloperRole: true and is not battle-tested. supportsFinishReason true (2026-09-13, issue #2): the LiteLLM gateway intermittently closes SSE streams before emitting finish_reason; with true pi-ai raises 'Stream ended without finish_reason', which matches pi-ai's retryable-provider pattern ('ended without') and is retried automatically, whereas false silently synthesized stop/toolUse and stalled the turn mid-answer. supportsUsageInStreaming true (2026-09-16, issue #7): NaN's published schema is silent about stream_options, but the live gateway honors it — two identical streaming calls per model, differing only in stream_options: { include_usage: true }, returned 0 usage chunks without it and exactly 1 with it (prompt/completion/reasoning/cached token counts) on deepseek-v4-flash, glm5.3-flash, qwen3.6, mimo-v2.5 and gemma4, and a real pi session then recorded token counts where it recorded zeros. pi-ai only sends stream_options when this is not false, and the sanitizer forwards it when the model declares true, so chat models opt in by default and usage is reported (issue #4). A model that does not report streaming usage can still opt out per model with a models.json compat override (supportsUsageInStreaming: false); the sanitizer then strips stream_options and the payload stays strict.",
|
|
430
|
-
"
|
|
431
|
-
"
|
|
521
|
+
"NaN external-provider model launched 2026-11-10. contextWindow 1,048,576: NaN pricing page card '1M context' (maintainer screenshot, 2026-11-10) with NaN's 1M = 1,048,576 convention (https://nan.builders/docs/pi). maxTokens 32,768: https://nan.builders/docs/pi declares 32768 for every 1M-context NaN model (vendor limit 1,048,576 on models.dev provider moonshotai). input text+image per models.dev provider moonshotai (kimi-k3.1-pro), reasoning model per the vendor. Existence: live GET https://api.nan.builders/v1/models (checked 2026-11-10); the docs https://nan.builders/docs/models, https://nan.builders/docs/pi and https://nan.builders/openapi.json do not list it yet. reasoningEffortValues [] and no thinkingLevelMap: the gateway's reasoning_effort handling for external providers is unmeasured. cost 0 per maintainer decision.",
|
|
522
|
+
"manual-only: \"kimi-k3.1-pro\" skipped: models.dev provider \"nan\" now lists it, so the manual-only entry is not emitted and the models.dev values are used (NaN external-provider model launched 2026-11-10, listed by the live GET /v1/models but absent from models.dev provider nan and the NaN docs)"
|
|
432
523
|
],
|
|
433
|
-
"extras": {
|
|
524
|
+
"extras": {
|
|
525
|
+
"id": "kimi-k3.1-pro",
|
|
526
|
+
"name": "Kimi K3.1 Pro",
|
|
527
|
+
"description": "Multimodal Kimi model with a 1M-token context window and always-on reasoning, for coding, 3D creation and financial research",
|
|
528
|
+
"family": "kimi-k3",
|
|
529
|
+
"attachment": true,
|
|
530
|
+
"reasoning": true,
|
|
531
|
+
"reasoning_options": [
|
|
532
|
+
{
|
|
533
|
+
"type": "effort",
|
|
534
|
+
"values": [
|
|
535
|
+
"low",
|
|
536
|
+
"high",
|
|
537
|
+
"max"
|
|
538
|
+
]
|
|
539
|
+
}
|
|
540
|
+
],
|
|
541
|
+
"tool_call": true,
|
|
542
|
+
"temperature": false,
|
|
543
|
+
"release_date": "2026-10-23",
|
|
544
|
+
"last_updated": "2026-10-23",
|
|
545
|
+
"modalities": {
|
|
546
|
+
"input": [
|
|
547
|
+
"text",
|
|
548
|
+
"image"
|
|
549
|
+
],
|
|
550
|
+
"output": [
|
|
551
|
+
"text"
|
|
552
|
+
]
|
|
553
|
+
},
|
|
554
|
+
"open_weights": true,
|
|
555
|
+
"limit": {
|
|
556
|
+
"context": 1048576,
|
|
557
|
+
"output": 1048576
|
|
558
|
+
},
|
|
559
|
+
"cost": {
|
|
560
|
+
"input": 2.808,
|
|
561
|
+
"output": 14.04,
|
|
562
|
+
"cache_read": 0.2808,
|
|
563
|
+
"cache_write": 2.808
|
|
564
|
+
},
|
|
565
|
+
"canonical_model_id": "moonshotai/kimi-k3.1-pro"
|
|
566
|
+
}
|
|
434
567
|
},
|
|
435
568
|
{
|
|
436
569
|
"id": "mimo-v2.6-flash",
|
|
@@ -441,9 +574,9 @@ export const NAN_GENERATED_MODELS: readonly GeneratedModelEntry[] = [
|
|
|
441
574
|
"image"
|
|
442
575
|
],
|
|
443
576
|
"cost": {
|
|
444
|
-
"input": 0,
|
|
445
|
-
"output": 0,
|
|
446
|
-
"cacheRead": 0,
|
|
577
|
+
"input": 0.19656,
|
|
578
|
+
"output": 0.39312,
|
|
579
|
+
"cacheRead": 0.0039312,
|
|
447
580
|
"cacheWrite": 0
|
|
448
581
|
},
|
|
449
582
|
"contextWindow": 1048576,
|
|
@@ -473,14 +606,7 @@ export const NAN_GENERATED_MODELS: readonly GeneratedModelEntry[] = [
|
|
|
473
606
|
"reasoning": true,
|
|
474
607
|
"reasoning_options": [
|
|
475
608
|
{
|
|
476
|
-
"type": "
|
|
477
|
-
"values": [
|
|
478
|
-
"none",
|
|
479
|
-
"low",
|
|
480
|
-
"medium",
|
|
481
|
-
"high",
|
|
482
|
-
"max"
|
|
483
|
-
]
|
|
609
|
+
"type": "toggle"
|
|
484
610
|
}
|
|
485
611
|
],
|
|
486
612
|
"tool_call": true,
|
|
@@ -503,8 +629,9 @@ export const NAN_GENERATED_MODELS: readonly GeneratedModelEntry[] = [
|
|
|
503
629
|
"output": 131072
|
|
504
630
|
},
|
|
505
631
|
"cost": {
|
|
506
|
-
"input": 0,
|
|
507
|
-
"output": 0
|
|
632
|
+
"input": 0.19656,
|
|
633
|
+
"output": 0.39312,
|
|
634
|
+
"cache_read": 0.0039312
|
|
508
635
|
},
|
|
509
636
|
"canonical_model_id": "xiaomi/mimo-v2.6-flash"
|
|
510
637
|
}
|
|
@@ -564,6 +691,11 @@ export const NAN_GENERATED_MODELS: readonly GeneratedModelEntry[] = [
|
|
|
564
691
|
"high",
|
|
565
692
|
"max"
|
|
566
693
|
]
|
|
694
|
+
},
|
|
695
|
+
{
|
|
696
|
+
"type": "budget_tokens",
|
|
697
|
+
"min": 0,
|
|
698
|
+
"max": 32768
|
|
567
699
|
}
|
|
568
700
|
],
|
|
569
701
|
"tool_call": true,
|
|
@@ -601,9 +733,9 @@ export const NAN_GENERATED_MODELS: readonly GeneratedModelEntry[] = [
|
|
|
601
733
|
"image"
|
|
602
734
|
],
|
|
603
735
|
"cost": {
|
|
604
|
-
"input": 0,
|
|
605
|
-
"output": 0,
|
|
606
|
-
"cacheRead": 0,
|
|
736
|
+
"input": 0.2106,
|
|
737
|
+
"output": 0.65988,
|
|
738
|
+
"cacheRead": 0.022464,
|
|
607
739
|
"cacheWrite": 0
|
|
608
740
|
},
|
|
609
741
|
"contextWindow": 1048576,
|
|
@@ -639,6 +771,11 @@ export const NAN_GENERATED_MODELS: readonly GeneratedModelEntry[] = [
|
|
|
639
771
|
"xhigh",
|
|
640
772
|
"max"
|
|
641
773
|
]
|
|
774
|
+
},
|
|
775
|
+
{
|
|
776
|
+
"type": "budget_tokens",
|
|
777
|
+
"min": 0,
|
|
778
|
+
"max": 32768
|
|
642
779
|
}
|
|
643
780
|
],
|
|
644
781
|
"tool_call": true,
|
|
@@ -661,8 +798,9 @@ export const NAN_GENERATED_MODELS: readonly GeneratedModelEntry[] = [
|
|
|
661
798
|
"output": 131072
|
|
662
799
|
},
|
|
663
800
|
"cost": {
|
|
664
|
-
"input": 0,
|
|
665
|
-
"output": 0
|
|
801
|
+
"input": 0.2106,
|
|
802
|
+
"output": 0.65988,
|
|
803
|
+
"cache_read": 0.022464
|
|
666
804
|
},
|
|
667
805
|
"canonical_model_id": "alibaba/qwen3.8-flash"
|
|
668
806
|
}
|
|
@@ -693,21 +831,62 @@ export const NAN_GENERATED_MODELS: readonly GeneratedModelEntry[] = [
|
|
|
693
831
|
},
|
|
694
832
|
"notes": [
|
|
695
833
|
"compat matches the maintainer's working ~/.pi/agent/models.json LiteLLM config for api.nan.builders (2026-09-04): supportsDeveloperRole false, supportsReasoningEffort true, maxTokensField max_tokens. NaN's docs example sets only supportsDeveloperRole: true and is not battle-tested. supportsFinishReason true (2026-09-13, issue #2): the LiteLLM gateway intermittently closes SSE streams before emitting finish_reason; with true pi-ai raises 'Stream ended without finish_reason', which matches pi-ai's retryable-provider pattern ('ended without') and is retried automatically, whereas false silently synthesized stop/toolUse and stalled the turn mid-answer. supportsUsageInStreaming true (2026-09-16, issue #7): NaN's published schema is silent about stream_options, but the live gateway honors it — two identical streaming calls per model, differing only in stream_options: { include_usage: true }, returned 0 usage chunks without it and exactly 1 with it (prompt/completion/reasoning/cached token counts) on deepseek-v4-flash, glm5.3-flash, qwen3.6, mimo-v2.5 and gemma4, and a real pi session then recorded token counts where it recorded zeros. pi-ai only sends stream_options when this is not false, and the sanitizer forwards it when the model declares true, so chat models opt in by default and usage is reported (issue #4). A model that does not report streaming usage can still opt out per model with a models.json compat override (supportsUsageInStreaming: false); the sanitizer then strips stream_options and the payload stays strict.",
|
|
696
|
-
"
|
|
697
|
-
"
|
|
834
|
+
"NaN external-provider model launched 2026-11-10. contextWindow 1,000,000: NaN pricing page card says '1M context' (maintainer screenshot, 2026-11-10); the first-party vendor value on models.dev provider alibaba (qwen3.8-max) is 1,000,000, the smaller of it and NaN's 1M = 1,048,576 convention (https://nan.builders/docs/pi), so the vendor value is used. maxTokens 32,768: https://nan.builders/docs/pi declares 32768 for every 1M-context NaN model (vendor limit 131,072 on models.dev provider alibaba). input text+image per models.dev provider alibaba (qwen3.8-max), reasoning model per the vendor. Existence: live GET https://api.nan.builders/v1/models (checked 2026-11-10); the docs https://nan.builders/docs/models, https://nan.builders/docs/pi and https://nan.builders/openapi.json do not list it yet. reasoningEffortValues [] and no thinkingLevelMap: the gateway's reasoning_effort handling for external providers is unmeasured. cost 0 per maintainer decision.",
|
|
835
|
+
"manual-only: \"qwen3.8-max\" skipped: models.dev provider \"nan\" now lists it, so the manual-only entry is not emitted and the models.dev values are used (NaN external-provider model launched 2026-11-10, listed by the live GET /v1/models but absent from models.dev provider nan and the NaN docs)"
|
|
698
836
|
],
|
|
699
|
-
"extras": {
|
|
837
|
+
"extras": {
|
|
838
|
+
"id": "qwen3.8-max",
|
|
839
|
+
"name": "Qwen3.8 Max",
|
|
840
|
+
"description": "2.4-trillion-parameter MoE flagship for coding, professional work, multimodal understanding, and long-horizon agentic workflows",
|
|
841
|
+
"family": "qwen",
|
|
842
|
+
"attachment": true,
|
|
843
|
+
"reasoning": true,
|
|
844
|
+
"reasoning_options": [
|
|
845
|
+
{
|
|
846
|
+
"type": "effort",
|
|
847
|
+
"values": [
|
|
848
|
+
"none",
|
|
849
|
+
"low",
|
|
850
|
+
"medium",
|
|
851
|
+
"xhigh"
|
|
852
|
+
]
|
|
853
|
+
}
|
|
854
|
+
],
|
|
855
|
+
"tool_call": true,
|
|
856
|
+
"temperature": true,
|
|
857
|
+
"release_date": "2026-08-03",
|
|
858
|
+
"last_updated": "2026-08-03",
|
|
859
|
+
"modalities": {
|
|
860
|
+
"input": [
|
|
861
|
+
"text",
|
|
862
|
+
"image"
|
|
863
|
+
],
|
|
864
|
+
"output": [
|
|
865
|
+
"text"
|
|
866
|
+
]
|
|
867
|
+
},
|
|
868
|
+
"open_weights": false,
|
|
869
|
+
"limit": {
|
|
870
|
+
"context": 1000000,
|
|
871
|
+
"output": 131072
|
|
872
|
+
},
|
|
873
|
+
"cost": {
|
|
874
|
+
"input": 2.808,
|
|
875
|
+
"output": 8.424,
|
|
876
|
+
"cache_read": 0.351
|
|
877
|
+
},
|
|
878
|
+
"canonical_model_id": "alibaba/qwen3.8-max"
|
|
879
|
+
}
|
|
700
880
|
}
|
|
701
881
|
];
|
|
702
882
|
|
|
703
883
|
export const GENERATED_CATALOG_META = {
|
|
704
884
|
source: "https://models.dev/api.json",
|
|
705
885
|
modelsDevProvider: "nan",
|
|
706
|
-
fetchedAt: "2026-11-
|
|
886
|
+
fetchedAt: "2026-11-16T17:24:10.105Z",
|
|
707
887
|
modelCount: 11,
|
|
708
888
|
models: ["deepseek-v4-flash","deepseek-v4-pro","gemma4","glm5.3","glm5.3-flash","hy4","kimi-k3.1-pro","mimo-v2.6-flash","qwen3.6","qwen3.8-flash","qwen3.8-max"],
|
|
709
889
|
notes: [
|
|
710
|
-
"non-chat: \"qwen-image-2.1\" excluded from the chat catalog (image-generation model (text→image; output modality image) documented in https://nan.builders/docs/models and https://nan.builders/openapi.json (checked 2026-09-29) — not a chat model, out of the static chat catalog (models.dev reports limit.output 0))",
|
|
711
890
|
"provider-removed: \"glm5.2\" excluded from the catalog (removed by NaN (2026-09-05); absent from the official chat model list in https://nan.builders/openapi.json and https://nan.builders/docs/models (checked 2026-09-07) while models.dev provider nan still listed it — excluded so regeneration does not resurrect it)",
|
|
712
891
|
"provider-removed: \"mimo-v2.5\" excluded from the catalog (removed by NaN (checked 2026-09-29): zero mentions in https://nan.builders/docs/models and in the model param description of https://nan.builders/openapi.json, and models.dev provider nan dropped it as well — superseded by mimo-v2.6-flash; excluded so regeneration does not resurrect it)",
|
|
713
892
|
"non-chat: \"qwen3-embedding\" excluded from the chat catalog (embedding endpoint (https://nan.builders/docs/models, checked 2026-10-01) — not a chat model)",
|
|
@@ -715,23 +894,24 @@ export const GENERATED_CATALOG_META = {
|
|
|
715
894
|
"non-chat: \"kokoro\" excluded from the chat catalog (text-to-speech (TTS) endpoint (https://nan.builders/docs/models, checked 2026-10-01) — not a chat model)",
|
|
716
895
|
"non-chat: \"whisper\" excluded from the chat catalog (speech-to-text (STT) endpoint (https://nan.builders/docs/models, checked 2026-10-01) — not a chat model)",
|
|
717
896
|
"non-chat: \"flux-2-klein\" excluded from the chat catalog (image generation endpoint (https://nan.builders/docs/models, checked 2026-10-01) — not a chat model)",
|
|
897
|
+
"non-chat: \"qwen-image-2.1\" excluded from the chat catalog (image-generation model (text→image; output modality image) documented in https://nan.builders/docs/models and https://nan.builders/openapi.json (checked 2026-09-29) — not a chat model, out of the static chat catalog (models.dev reports limit.output 0))",
|
|
718
898
|
"non-chat: \"minimax-h3\" excluded from the chat catalog (video-generation model (output modality video): listed by the live GET https://api.nan.builders/v1/models with owned_by \"nan\" (checked 2026-11-10) next to flux-2-klein and qwen-image-2.1, and models.dev (vercel/minimax/minimax-h3, \"MiniMax H3\", https://models.dev/api.json, checked 2026-11-10) reports output video — not a chat model)",
|
|
719
899
|
"compat matches the maintainer's working ~/.pi/agent/models.json LiteLLM config for api.nan.builders (2026-09-04): supportsDeveloperRole false, supportsReasoningEffort true, maxTokensField max_tokens. NaN's docs example sets only supportsDeveloperRole: true and is not battle-tested. supportsFinishReason true (2026-09-13, issue #2): the LiteLLM gateway intermittently closes SSE streams before emitting finish_reason; with true pi-ai raises 'Stream ended without finish_reason', which matches pi-ai's retryable-provider pattern ('ended without') and is retried automatically, whereas false silently synthesized stop/toolUse and stalled the turn mid-answer. supportsUsageInStreaming true (2026-09-16, issue #7): NaN's published schema is silent about stream_options, but the live gateway honors it — two identical streaming calls per model, differing only in stream_options: { include_usage: true }, returned 0 usage chunks without it and exactly 1 with it (prompt/completion/reasoning/cached token counts) on deepseek-v4-flash, glm5.3-flash, qwen3.6, mimo-v2.5 and gemma4, and a real pi session then recorded token counts where it recorded zeros. pi-ai only sends stream_options when this is not false, and the sanitizer forwards it when the model declares true, so chat models opt in by default and usage is reported (issue #4). A model that does not report streaming usage can still opt out per model with a models.json compat override (supportsUsageInStreaming: false); the sanitizer then strips stream_options and the payload stays strict.",
|
|
720
900
|
"contextWindow 1,048,576: NaN docs state '1M token context' for this model (https://nan.builders/docs/models, checked 2026-10-14). models.dev lists 1,000,000, a rounded form of the same window; the docs value is authoritative (maintainer instruction: docs win over models.dev, which a user updates later). input includes image: NaN serves the Vision-Exp variant ('takes images as input', https://nan.builders/docs/models; the image_url content-parts in https://nan.builders/openapi.json list deepseek-v4-flash among the vision models). models.dev provider nan also lists text+image now (DeepSeek V4.1 Flash entry, checked 2026-09-13), so this stays a pin for the vision capability rather than a divergence. maxTokens 32768 per the official NaN pi docs (https://nan.builders/docs/pi, 'the same set the NaN CLI writes', checked 2026-10-02) closing issue #20 — the gateway now rejects max_tokens above ~256k for this model with 403 permission_error (measured 2026-10-02: 256,000 → 200; 262,143 → 403), and the previous models.dev-derived 384000 made every pi request fail since pi-ai sends max_tokens = model.maxTokens when no cap is set. models.dev still lists 384000, so this override pins the documented value. reasoning_effort_values=[\"none\"] (issue #16, measured 2026-09-27 against live gateway, repro included in the issue): only \"none\" deterministically disables reasoning (0 reasoning tokens, answer produced). Every other value leaves 13-14K reasoning tokens and causes runaway reasoning (finish_reason:\"length\" with ZERO answer text). The catalog declares only [\"none\"] because the remaining values are useless noise. docs vs measurement (re-probed live 2026-10-14): https://nan.builders/docs/models#controlling-reasoning documents the parameter as 'any value (no effect) — the model decides per request', but the live gateway contradicts that: `none` gave 0 reasoning tokens / 0 reasoning chars / a 134-char answer, while `low` gave 57 reasoning tokens and omitting the parameter gave 63 (`minimal` gave 109). The docs are stale here; the measurement wins (maintainer instruction), so the measured behavior is kept. thinkingLevelMap { off: \"none\" } (issue #16, measured 2026-09-27): when pi maps reasoning:\"off\" to reasoningEffort:undefined, the thinkingLevelMap.off=\"none\" supplies the effort so the gateway receives reasoning_effort:\"none\" and does NOT enter runaway reasoning mode.",
|
|
721
|
-
"manual-only: \"deepseek-v4-pro\" not yet on models.dev provider nan (NaN external-provider model launched 2026-11-10, listed by the live GET /v1/models but absent from models.dev provider nan and the NaN docs).",
|
|
722
901
|
"NaN external-provider model launched 2026-11-10 (NaN pricing page name 'DeepSeek V4-Pro (0813 version)'). contextWindow 1,048,576: NaN pricing page card '1M context' (maintainer screenshot, 2026-11-10) with NaN's 1M = 1,048,576 convention (https://nan.builders/docs/pi). maxTokens 32,768: https://nan.builders/docs/pi declares 32768 for every 1M-context NaN model (vendor limit 393,216 on models.dev provider deepseek). input text only per models.dev provider deepseek (deepseek-v4-pro), reasoning model per the vendor. Existence: live GET https://api.nan.builders/v1/models (checked 2026-11-10); the docs https://nan.builders/docs/models, https://nan.builders/docs/pi and https://nan.builders/openapi.json do not list it yet. reasoningEffortValues [] and no thinkingLevelMap: the gateway's reasoning_effort handling for external providers is unmeasured. cost 0 per maintainer decision.",
|
|
902
|
+
"manual-only: \"deepseek-v4-pro\" skipped: models.dev provider \"nan\" now lists it, so the manual-only entry is not emitted and the models.dev values are used (NaN external-provider model launched 2026-11-10, listed by the live GET /v1/models but absent from models.dev provider nan and the NaN docs)",
|
|
723
903
|
"thinkingLevelMap { off: \"none\" } (issue #16): NaN docs state that with no reasoning_effort parameter gemma4 defaults to reasoning ON (16,384-token budget), while `none`/`minimal` skip reasoning entirely (https://nan.builders/docs/models#controlling-reasoning, checked 2026-10-01). pi maps reasoning:\"off\" to reasoningEffort:undefined, so without this map `thinking: off` sent no parameter and the model reasoned anyway; the map sends reasoning_effort:\"none\" and actually disables reasoning.",
|
|
724
904
|
"general catalog model since 2026-11-10: NaN announced it no longer has tier-exclusive models ('a partir de ahora ya NO habrá modelos exclusivos por tier'), and the live GET https://api.nan.builders/v1/models lists glm5.3 for a non-premium key (checked 2026-11-10); it used to be premium live-only. The values are the ones it carried as live-only, from https://nan.builders/docs/models (checked 2026-10-14; docs win over models.dev): contextWindow 1,048,576 ('1M token context'; models.dev lists the rounded 1,000,000); input text+image (multimodal; pi represents only text and image — models.dev lists text only, a stale divergence); maxTokens 131,072 (the confirmed maximum models.dev documents; the docs give the same 131K figure for glm5.3-flash and no lower bound); reasoningEffortValues low/medium/high/max per the docs' effort list; name 'GLM 5.3' per the docs (models.dev says 'GLM-5.3'). thinkingLevelMap { off: \"low\" }: the docs list low as the shallowest level, so `thinking: off` sends the shallowest supported effort; glm5.3 itself was never measured (issue #16 covered glm5.3-flash, whose shallowest effective value is 'minimal'), 'low' is the documented floor.",
|
|
725
905
|
"contextWindow 1,048,576: NaN docs state '1M token context' for this model (https://nan.builders/docs/models, checked 2026-10-14). models.dev lists 1,000,000, a rounded form of the same window; the docs value is authoritative (maintainer instruction: docs win over models.dev, which a user updates later). thinkingLevelMap { off: \"minimal\" } (issue #16, measured 2026-09-27 against live gateway, repro included in the issue): when pi maps reasoning:\"off\" to reasoningEffort:undefined, the thinkingLevelMap.off=\"minimal\" supplies the effort so the gateway receives reasoning_effort:\"minimal\" (38 reasoning tokens + answer). Note: \"none\" does NOT suppress reasoning on glm5.3-flash (13,382 tokens) — only \"minimal\" was measured to be effective. reasoning_effort_values includes \"minimal\" (the docs' glm row lists low/medium/high/max, but the 2026-09-27 measurement shows minimal is accepted and effective, issue #16).",
|
|
726
|
-
"manual-only: \"hy4\" not yet on models.dev provider nan (NaN external-provider model launched 2026-11-10, listed by the live GET /v1/models but absent from models.dev provider nan and the NaN docs).",
|
|
727
906
|
"NaN external-provider model launched 2026-11-10. contextWindow 1,048,576: NaN pricing page card '1M context' (maintainer screenshot, 2026-11-10) with NaN's 1M = 1,048,576 convention (https://nan.builders/docs/pi). maxTokens 32,768: https://nan.builders/docs/pi declares 32768 for every 1M-context NaN model (vendor limit 65,536 on models.dev provider tencent-tokenhub). input text+image per models.dev provider tencent-tokenhub (hy4), reasoning model per the vendor. Existence: live GET https://api.nan.builders/v1/models (checked 2026-11-10); the docs https://nan.builders/docs/models, https://nan.builders/docs/pi and https://nan.builders/openapi.json do not list it yet. reasoningEffortValues [] and no thinkingLevelMap: the gateway's reasoning_effort handling for external providers is unmeasured. cost 0 per maintainer decision.",
|
|
728
|
-
"manual-only: \"
|
|
907
|
+
"manual-only: \"hy4\" skipped: models.dev provider \"nan\" now lists it, so the manual-only entry is not emitted and the models.dev values are used (NaN external-provider model launched 2026-11-10, listed by the live GET /v1/models but absent from models.dev provider nan and the NaN docs)",
|
|
729
908
|
"NaN external-provider model launched 2026-11-10. contextWindow 1,048,576: NaN pricing page card '1M context' (maintainer screenshot, 2026-11-10) with NaN's 1M = 1,048,576 convention (https://nan.builders/docs/pi). maxTokens 32,768: https://nan.builders/docs/pi declares 32768 for every 1M-context NaN model (vendor limit 1,048,576 on models.dev provider moonshotai). input text+image per models.dev provider moonshotai (kimi-k3.1-pro), reasoning model per the vendor. Existence: live GET https://api.nan.builders/v1/models (checked 2026-11-10); the docs https://nan.builders/docs/models, https://nan.builders/docs/pi and https://nan.builders/openapi.json do not list it yet. reasoningEffortValues [] and no thinkingLevelMap: the gateway's reasoning_effort handling for external providers is unmeasured. cost 0 per maintainer decision.",
|
|
909
|
+
"manual-only: \"kimi-k3.1-pro\" skipped: models.dev provider \"nan\" now lists it, so the manual-only entry is not emitted and the models.dev values are used (NaN external-provider model launched 2026-11-10, listed by the live GET /v1/models but absent from models.dev provider nan and the NaN docs)",
|
|
730
910
|
"thinkingLevelMap { off: \"none\" } (live re-probe 2026-10-14): the docs list this model as 'accepted, depth not adjustable', but the gateway makes the parameter effective at the off end — `none` gave 0 reasoning tokens / a full answer, while `low` gave 22 reasoning tokens and omitting the parameter gave 17. Measured behavior wins over the docs, so `thinking: off` now sends reasoning_effort:\"none\" and actually disables reasoning. No other level was sampled, so only `off` is mapped.",
|
|
731
911
|
"manual-only: \"mimo-v2.6-flash\" skipped: models.dev provider \"nan\" now lists it, so the manual-only entry is not emitted and the models.dev values are used (omnimodal model (text, image, audio input) served by NaN; limits and modalities from https://nan.builders/docs/models#mimo-v2-6-flash (checked 2026-09-25, quotas re-checked 2026-09-29): 1,048,576 context / 131,072 max output / 1.0B monthly quota per member. Tool calling: yes. Streaming: yes. Input modalities (pi-representable): text, image (audio not representable in pi's Model type). Fallback entry: emitted only while models.dev provider nan does not list the model — models.dev started listing it on 2026-09-29, so the generator then keeps the models.dev values and attaches this note to that entry instead of emitting a second one.)",
|
|
732
912
|
"thinkingLevelMap { off: \"none\" } (issue #16): NaN docs state that with no reasoning_effort parameter every model uses its own default and that default is reasoning ON for qwen3.6 (16,384-token budget), while `none` and `minimal` skip the reasoning phase entirely (https://nan.builders/docs/models#controlling-reasoning, checked 2026-10-01). pi maps reasoning:\"off\" to reasoningEffort:undefined, so without this map `thinking: off` sent no parameter and the model reasoned anyway; the map sends reasoning_effort:\"none\" and actually disables reasoning.",
|
|
733
913
|
"contextWindow 1,048,576: NaN docs state '1M token context (1,048,576 tokens)' and 'Max answer 131K tokens' (https://nan.builders/docs/models, checked 2026-10-14) — models.dev still lists 262,144. The earlier override was withdrawn 2026-09-07 when the docs read '262K token context, the model's native window'; the docs now state 1M and they are the source of truth (maintainer instruction: docs win over models.dev, which a user updates later). maxTokens stays 131,072, which models.dev already matches and the docs confirm as the 131K max answer. maxTokensField 'max_completion_tokens' (issue #34, NaN maintainer confirmation received 2026-11-11, quoted verbatim in the issue): on this model max_tokens does NOT bound the reasoning phase, the excess bills against the quota (it explained the 796M tokens against the 500M cap in the 2026-09-27 /v1/usage survey), and max_completion_tokens IS respected as the interim bound. The published OpenAPI schema still documents only max_tokens, so the strict-schema sanitizer exempts this model from its max_completion_tokens→max_tokens rename at request time (SanitizerOptions.preserveMaxCompletionTokens, wired from compat.maxTokensField in src/provider-factory.ts). REVERT: once NaN ships their prepared gateway fix, remove this override — test/issue-34-max-completion-tokens.test.ts fails on purpose until it is removed; accepting max_completion_tokens on the other flash models is unverified live (permission-gated probe needed), so the scope stays this one model.",
|
|
734
|
-
"
|
|
735
|
-
"
|
|
914
|
+
"NaN external-provider model launched 2026-11-10. contextWindow 1,000,000: NaN pricing page card says '1M context' (maintainer screenshot, 2026-11-10); the first-party vendor value on models.dev provider alibaba (qwen3.8-max) is 1,000,000, the smaller of it and NaN's 1M = 1,048,576 convention (https://nan.builders/docs/pi), so the vendor value is used. maxTokens 32,768: https://nan.builders/docs/pi declares 32768 for every 1M-context NaN model (vendor limit 131,072 on models.dev provider alibaba). input text+image per models.dev provider alibaba (qwen3.8-max), reasoning model per the vendor. Existence: live GET https://api.nan.builders/v1/models (checked 2026-11-10); the docs https://nan.builders/docs/models, https://nan.builders/docs/pi and https://nan.builders/openapi.json do not list it yet. reasoningEffortValues [] and no thinkingLevelMap: the gateway's reasoning_effort handling for external providers is unmeasured. cost 0 per maintainer decision.",
|
|
915
|
+
"manual-only: \"qwen3.8-max\" skipped: models.dev provider \"nan\" now lists it, so the manual-only entry is not emitted and the models.dev values are used (NaN external-provider model launched 2026-11-10, listed by the live GET /v1/models but absent from models.dev provider nan and the NaN docs)"
|
|
736
916
|
],
|
|
737
917
|
} as const;
|
package/src/mcp/media-server.ts
CHANGED
|
@@ -27,7 +27,7 @@ export function mediaMcpTimeoutSec(): number {
|
|
|
27
27
|
|
|
28
28
|
export const NAN_MEDIA_MCP_ENV = "NAN_MEDIA_MCP";
|
|
29
29
|
|
|
30
|
-
export const DEFAULT_NAN_MEDIA_MCP_VERSION = "1.
|
|
30
|
+
export const DEFAULT_NAN_MEDIA_MCP_VERSION = "1.5.0";
|
|
31
31
|
export const DEFAULT_MEDIA_MCP_TIMEOUT_MS = 120_000;
|
|
32
32
|
export const NAN_MEDIA_MCP_VERSION_ENV = "NAN_MEDIA_MCP_VERSION";
|
|
33
33
|
export const NAN_MEDIA_MCP_COMMAND_ENV = "NAN_MEDIA_MCP_COMMAND";
|