@gtrabanco/pi-nan-provider 1.5.5 → 1.5.6
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 +50 -27
- package/README.es.md +30 -18
- package/README.md +29 -17
- package/package.json +1 -1
- package/scripts/generate-models.ts +27 -37
- package/scripts/manual-overrides.ts +168 -120
- package/scripts/models.generated.ts +216 -67
|
@@ -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-17T01:04:35.527Z
|
|
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.
|
|
@@ -21,18 +21,26 @@ export const NAN_GENERATED_MODELS: readonly GeneratedModelEntry[] = [
|
|
|
21
21
|
"image"
|
|
22
22
|
],
|
|
23
23
|
"cost": {
|
|
24
|
-
"input": 0
|
|
25
|
-
"output":
|
|
26
|
-
"cacheRead": 0
|
|
24
|
+
"input": 0,
|
|
25
|
+
"output": 0,
|
|
26
|
+
"cacheRead": 0,
|
|
27
27
|
"cacheWrite": 0
|
|
28
28
|
},
|
|
29
29
|
"contextWindow": 1048576,
|
|
30
30
|
"maxTokens": 32768,
|
|
31
31
|
"reasoningEffortValues": [
|
|
32
|
-
"none"
|
|
32
|
+
"none",
|
|
33
|
+
"minimal",
|
|
34
|
+
"low",
|
|
35
|
+
"medium",
|
|
36
|
+
"high",
|
|
37
|
+
"xhigh",
|
|
38
|
+
"max"
|
|
33
39
|
],
|
|
34
40
|
"thinkingLevelMap": {
|
|
35
|
-
"off": "none"
|
|
41
|
+
"off": "none",
|
|
42
|
+
"xhigh": "xhigh",
|
|
43
|
+
"max": "max"
|
|
36
44
|
},
|
|
37
45
|
"compat": {
|
|
38
46
|
"supportsDeveloperRole": false,
|
|
@@ -43,7 +51,8 @@ export const NAN_GENERATED_MODELS: readonly GeneratedModelEntry[] = [
|
|
|
43
51
|
},
|
|
44
52
|
"notes": [
|
|
45
53
|
"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.",
|
|
46
|
-
"
|
|
54
|
+
"cost 0 on every model: NaN bills a credit pool (1 credit ≈ 0.026 €) rather than per-token USD, so pi's per-token cost estimate does not apply. models.dev provider nan started publishing a derived USD conversion on 2026-11-17; it is not a price NaN charges, so it is not adopted (delete NAN_CATALOG_COST in scripts/generate-models.ts to adopt it).",
|
|
55
|
+
"contextWindow 1,048,576: NaN docs state '1M token context' for this model (https://nan.builders/docs/models, checked 2026-11-17). 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, 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 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 because pi-ai sends max_tokens = model.maxTokens by default. models.dev still lists 384000, so this override pins the documented value. reasoningEffortValues: the docs say 'none turns it off · minimal to max' and the contract table says the other values 'steer how much it reasons. They are hints the model follows, not hard caps' (https://nan.builders/docs/models#controlling-reasoning, checked 2026-11-17), so the documented ladder is declared. The measurement behind issue #16 stays the load-bearing fact and is unchanged: only \"none\" suppresses reasoning (0 reasoning tokens with a full answer; `low` 57, omitted 63, `minimal` 109 — re-probed live 2026-10-14), which is why thinkingLevelMap.off is \"none\". 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."
|
|
47
56
|
],
|
|
48
57
|
"extras": {
|
|
49
58
|
"id": "deepseek-v4-flash",
|
|
@@ -108,7 +117,7 @@ export const NAN_GENERATED_MODELS: readonly GeneratedModelEntry[] = [
|
|
|
108
117
|
"cacheWrite": 0
|
|
109
118
|
},
|
|
110
119
|
"contextWindow": 1048576,
|
|
111
|
-
"maxTokens":
|
|
120
|
+
"maxTokens": 393216,
|
|
112
121
|
"reasoningEffortValues": [],
|
|
113
122
|
"compat": {
|
|
114
123
|
"supportsDeveloperRole": false,
|
|
@@ -119,8 +128,9 @@ export const NAN_GENERATED_MODELS: readonly GeneratedModelEntry[] = [
|
|
|
119
128
|
},
|
|
120
129
|
"notes": [
|
|
121
130
|
"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.",
|
|
122
|
-
"
|
|
123
|
-
"
|
|
131
|
+
"cost 0 on every model: NaN bills a credit pool (1 credit ≈ 0.026 €) rather than per-token USD, so pi's per-token cost estimate does not apply. models.dev provider nan started publishing a derived USD conversion on 2026-11-17; it is not a price NaN charges, so it is not adopted (delete NAN_CATALOG_COST in scripts/generate-models.ts to adopt it).",
|
|
132
|
+
"DeepSeek V4-Pro (0813 version), documented in https://nan.builders/docs/models (checked 2026-11-17; models.dev provider nan lists it since 2026-11-10). contextWindow 1,048,576 ('1M token context'). maxTokens 393,216: the card says 'Max answer 393K tokens', the same 393,216 the docs clamp deepseek-v4-flash to; models.dev nan reports 384,000, so the docs value wins (maintainer instruction: docs are the source of truth). input text only per the card ('text generation & chat · reasoning'). Reasoning: the card only says 'Reasoning model', and the docs state the `none` aliases are NOT mapped on this model, so no reasoningEffortValues and no thinkingLevelMap are declared. Cost 0 per maintainer decision (NaN bills credits, not per-token USD).",
|
|
133
|
+
"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 larger model documented in https://nan.builders/docs/models (checked 2026-11-17) and listed by the live GET https://api.nan.builders/v1/models (checked 2026-11-17), but absent from models.dev provider nan)"
|
|
124
134
|
],
|
|
125
135
|
"extras": {
|
|
126
136
|
"id": "deepseek-v4-pro",
|
|
@@ -187,10 +197,13 @@ export const NAN_GENERATED_MODELS: readonly GeneratedModelEntry[] = [
|
|
|
187
197
|
"low",
|
|
188
198
|
"medium",
|
|
189
199
|
"high",
|
|
200
|
+
"xhigh",
|
|
190
201
|
"max"
|
|
191
202
|
],
|
|
192
203
|
"thinkingLevelMap": {
|
|
193
|
-
"off": "none"
|
|
204
|
+
"off": "none",
|
|
205
|
+
"xhigh": "xhigh",
|
|
206
|
+
"max": "max"
|
|
194
207
|
},
|
|
195
208
|
"compat": {
|
|
196
209
|
"supportsDeveloperRole": false,
|
|
@@ -201,7 +214,8 @@ export const NAN_GENERATED_MODELS: readonly GeneratedModelEntry[] = [
|
|
|
201
214
|
},
|
|
202
215
|
"notes": [
|
|
203
216
|
"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.",
|
|
204
|
-
"
|
|
217
|
+
"cost 0 on every model: NaN bills a credit pool (1 credit ≈ 0.026 €) rather than per-token USD, so pi's per-token cost estimate does not apply. models.dev provider nan started publishing a derived USD conversion on 2026-11-17; it is not a price NaN charges, so it is not adopted (delete NAN_CATALOG_COST in scripts/generate-models.ts to adopt it).",
|
|
218
|
+
"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-11-17). 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. reasoningEffortValues: the contract table documents the whole ladder (low 2,048, medium 8,192, high 16,384, xhigh and max 32,768 reasoning tokens on Chat Completions)."
|
|
205
219
|
],
|
|
206
220
|
"extras": {
|
|
207
221
|
"id": "gemma4",
|
|
@@ -258,25 +272,28 @@ export const NAN_GENERATED_MODELS: readonly GeneratedModelEntry[] = [
|
|
|
258
272
|
"name": "GLM 5.3",
|
|
259
273
|
"reasoning": true,
|
|
260
274
|
"input": [
|
|
261
|
-
"text"
|
|
262
|
-
"image"
|
|
275
|
+
"text"
|
|
263
276
|
],
|
|
264
277
|
"cost": {
|
|
265
|
-
"input":
|
|
266
|
-
"output":
|
|
267
|
-
"cacheRead": 0
|
|
278
|
+
"input": 0,
|
|
279
|
+
"output": 0,
|
|
280
|
+
"cacheRead": 0,
|
|
268
281
|
"cacheWrite": 0
|
|
269
282
|
},
|
|
270
283
|
"contextWindow": 1048576,
|
|
271
284
|
"maxTokens": 131072,
|
|
272
285
|
"reasoningEffortValues": [
|
|
286
|
+
"minimal",
|
|
273
287
|
"low",
|
|
274
288
|
"medium",
|
|
275
289
|
"high",
|
|
290
|
+
"xhigh",
|
|
276
291
|
"max"
|
|
277
292
|
],
|
|
278
293
|
"thinkingLevelMap": {
|
|
279
|
-
"off": "
|
|
294
|
+
"off": "minimal",
|
|
295
|
+
"xhigh": "xhigh",
|
|
296
|
+
"max": "max"
|
|
280
297
|
},
|
|
281
298
|
"compat": {
|
|
282
299
|
"supportsDeveloperRole": false,
|
|
@@ -287,7 +304,8 @@ export const NAN_GENERATED_MODELS: readonly GeneratedModelEntry[] = [
|
|
|
287
304
|
},
|
|
288
305
|
"notes": [
|
|
289
306
|
"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.",
|
|
290
|
-
"
|
|
307
|
+
"cost 0 on every model: NaN bills a credit pool (1 credit ≈ 0.026 €) rather than per-token USD, so pi's per-token cost estimate does not apply. models.dev provider nan started publishing a derived USD conversion on 2026-11-17; it is not a price NaN charges, so it is not adopted (delete NAN_CATALOG_COST in scripts/generate-models.ts to adopt it).",
|
|
308
|
+
"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). input text only: the model card says 'Text only: text in, text out, with no image, audio, video or file input; a request carrying one answers 400, earlier turns of the conversation included', and https://nan.builders/docs/pi declares the same 'input': ['text'] (https://nan.builders/docs/models, checked 2026-11-17). The earlier override declared text+image from the 2026-10-14 card; models.dev also lists it text-only now, so this is a correction of a stale value, not a divergence. contextWindow 1,048,576 ('1M token context'). maxTokens 131,072: models.dev's documented maximum; the docs' own pi/OpenCode blocks publish 32,768 and describe that field as 'a client-side budget rather than a server cap' (https://nan.builders/docs/opencode), so the larger model maximum stays. reasoningEffortValues minimal..max and thinkingLevelMap { off: 'minimal' }: the card says 'reasoning_effort: minimal to max; always reasons, none is applied as minimal' (checked 2026-11-17), so `thinking: off` sends the shortest reasoning the gateway honours. The previous map sent 'low' because the stale docs listed low as the floor. name 'GLM 5.3' per the docs (models.dev says 'GLM-5.3')."
|
|
291
309
|
],
|
|
292
310
|
"extras": {
|
|
293
311
|
"id": "glm5.3",
|
|
@@ -344,9 +362,9 @@ export const NAN_GENERATED_MODELS: readonly GeneratedModelEntry[] = [
|
|
|
344
362
|
"image"
|
|
345
363
|
],
|
|
346
364
|
"cost": {
|
|
347
|
-
"input": 0
|
|
348
|
-
"output": 0
|
|
349
|
-
"cacheRead": 0
|
|
365
|
+
"input": 0,
|
|
366
|
+
"output": 0,
|
|
367
|
+
"cacheRead": 0,
|
|
350
368
|
"cacheWrite": 0
|
|
351
369
|
},
|
|
352
370
|
"contextWindow": 1048576,
|
|
@@ -356,10 +374,13 @@ export const NAN_GENERATED_MODELS: readonly GeneratedModelEntry[] = [
|
|
|
356
374
|
"low",
|
|
357
375
|
"medium",
|
|
358
376
|
"high",
|
|
377
|
+
"xhigh",
|
|
359
378
|
"max"
|
|
360
379
|
],
|
|
361
380
|
"thinkingLevelMap": {
|
|
362
|
-
"off": "minimal"
|
|
381
|
+
"off": "minimal",
|
|
382
|
+
"xhigh": "xhigh",
|
|
383
|
+
"max": "max"
|
|
363
384
|
},
|
|
364
385
|
"compat": {
|
|
365
386
|
"supportsDeveloperRole": false,
|
|
@@ -370,7 +391,8 @@ export const NAN_GENERATED_MODELS: readonly GeneratedModelEntry[] = [
|
|
|
370
391
|
},
|
|
371
392
|
"notes": [
|
|
372
393
|
"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.",
|
|
373
|
-
"
|
|
394
|
+
"cost 0 on every model: NaN bills a credit pool (1 credit ≈ 0.026 €) rather than per-token USD, so pi's per-token cost estimate does not apply. models.dev provider nan started publishing a derived USD conversion on 2026-11-17; it is not a price NaN charges, so it is not adopted (delete NAN_CATALOG_COST in scripts/generate-models.ts to adopt it).",
|
|
395
|
+
"contextWindow 1,048,576 ('1M token context') and maxTokens 131,072: the docs state that an output budget above this model's maximum is lowered to 131072, so 131,072 is its documented ceiling (https://nan.builders/docs/models, checked 2026-11-17); models.dev lists the rounded 1,000,000 window. thinkingLevelMap { off: \"minimal\" }: the card says 'reasoning_effort: minimal to max; always reasons, none is applied as minimal' — the gateway never stops reasoning on this model. issue #16 measured the same effect on 2026-09-27: 'minimal' yields ~38 reasoning tokens with an answer, while 'none' does not suppress it (13,382 tokens). reasoningEffortValues minimal..max per the card, xhigh included (the docs' value ladder runs none, minimal, low, medium, high, xhigh, max)."
|
|
374
396
|
],
|
|
375
397
|
"extras": {
|
|
376
398
|
"id": "glm5.3-flash",
|
|
@@ -434,8 +456,13 @@ export const NAN_GENERATED_MODELS: readonly GeneratedModelEntry[] = [
|
|
|
434
456
|
"cacheWrite": 0
|
|
435
457
|
},
|
|
436
458
|
"contextWindow": 1048576,
|
|
437
|
-
"maxTokens":
|
|
438
|
-
"reasoningEffortValues": [
|
|
459
|
+
"maxTokens": 65536,
|
|
460
|
+
"reasoningEffortValues": [
|
|
461
|
+
"none"
|
|
462
|
+
],
|
|
463
|
+
"thinkingLevelMap": {
|
|
464
|
+
"off": "none"
|
|
465
|
+
},
|
|
439
466
|
"compat": {
|
|
440
467
|
"supportsDeveloperRole": false,
|
|
441
468
|
"supportsReasoningEffort": true,
|
|
@@ -445,8 +472,9 @@ export const NAN_GENERATED_MODELS: readonly GeneratedModelEntry[] = [
|
|
|
445
472
|
},
|
|
446
473
|
"notes": [
|
|
447
474
|
"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.",
|
|
448
|
-
"
|
|
449
|
-
"
|
|
475
|
+
"cost 0 on every model: NaN bills a credit pool (1 credit ≈ 0.026 €) rather than per-token USD, so pi's per-token cost estimate does not apply. models.dev provider nan started publishing a derived USD conversion on 2026-11-17; it is not a price NaN charges, so it is not adopted (delete NAN_CATALOG_COST in scripts/generate-models.ts to adopt it).",
|
|
476
|
+
"Hy4, Tencent's Hunyuan 4, documented in https://nan.builders/docs/models (checked 2026-11-17; models.dev provider nan lists it since 2026-11-10). contextWindow 1,048,576 ('1M token context'). maxTokens 65,536: the card says 'Max answer 64K tokens' and models.dev provider nan reports the same 65,536, so it is no longer the flat 32,768 default. input text+image, reasoning true. Reasoning: the card says 'Reasons by default; if you send no reasoning_effort (nor an alias) we apply low, and your own value always wins', and the aliases ARE mapped on this model, so thinkingLevelMap { off: 'none' } supplies the documented off switch ('To turn reasoning off, send none ... it works on every model except GLM'). No other level is documented for it, so reasoningEffortValues declares only 'none'. Cost 0 per maintainer decision (NaN bills credits, not per-token USD).",
|
|
477
|
+
"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 larger model documented in https://nan.builders/docs/models (checked 2026-11-17) and listed by the live GET https://api.nan.builders/v1/models (checked 2026-11-17), but absent from models.dev provider nan)"
|
|
450
478
|
],
|
|
451
479
|
"extras": {
|
|
452
480
|
"id": "hy4",
|
|
@@ -492,6 +520,43 @@ export const NAN_GENERATED_MODELS: readonly GeneratedModelEntry[] = [
|
|
|
492
520
|
"canonical_model_id": "tencent/hy4"
|
|
493
521
|
}
|
|
494
522
|
},
|
|
523
|
+
{
|
|
524
|
+
"id": "hy4-flash",
|
|
525
|
+
"name": "Hy4 Flash",
|
|
526
|
+
"reasoning": true,
|
|
527
|
+
"input": [
|
|
528
|
+
"text",
|
|
529
|
+
"image"
|
|
530
|
+
],
|
|
531
|
+
"cost": {
|
|
532
|
+
"input": 0,
|
|
533
|
+
"output": 0,
|
|
534
|
+
"cacheRead": 0,
|
|
535
|
+
"cacheWrite": 0
|
|
536
|
+
},
|
|
537
|
+
"contextWindow": 1048576,
|
|
538
|
+
"maxTokens": 65536,
|
|
539
|
+
"reasoningEffortValues": [
|
|
540
|
+
"none"
|
|
541
|
+
],
|
|
542
|
+
"thinkingLevelMap": {
|
|
543
|
+
"off": "none"
|
|
544
|
+
},
|
|
545
|
+
"compat": {
|
|
546
|
+
"supportsDeveloperRole": false,
|
|
547
|
+
"supportsReasoningEffort": true,
|
|
548
|
+
"supportsUsageInStreaming": true,
|
|
549
|
+
"supportsFinishReason": true,
|
|
550
|
+
"maxTokensField": "max_tokens"
|
|
551
|
+
},
|
|
552
|
+
"notes": [
|
|
553
|
+
"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.",
|
|
554
|
+
"cost 0 on every model: NaN bills a credit pool (1 credit ≈ 0.026 €) rather than per-token USD, so pi's per-token cost estimate does not apply. models.dev provider nan started publishing a derived USD conversion on 2026-11-17; it is not a price NaN charges, so it is not adopted (delete NAN_CATALOG_COST in scripts/generate-models.ts to adopt it).",
|
|
555
|
+
"manual-only: \"hy4-flash\" not yet on models.dev provider nan (NaN larger model documented in https://nan.builders/docs/models (checked 2026-11-17) and listed by the live GET https://api.nan.builders/v1/models (checked 2026-11-17), but absent from models.dev provider nan).",
|
|
556
|
+
"Hy4 Flash, Tencent's fast Hunyuan 4, documented in https://nan.builders/docs/models (checked 2026-11-17) and listed by the live GET https://api.nan.builders/v1/models (checked 2026-11-17); models.dev provider nan does not list it, so it enters as a manual-only entry. contextWindow 1,048,576: the card says '1M token context' and NaN's 1M convention is 1,048,576 (https://nan.builders/docs/pi), which the first-party models.dev entry openrouter/tencent/hy4-flash also reports. maxTokens 65,536: the card says 'Max answer 64K tokens' (64K = 65,536), and its reasoning section says 'max_tokens bounds reasoning plus answer, up to 64,000', so the classic max_tokens field stays. input text+image and reasoning true per the card ('Tool calling and reasoning'). The docs keep this model out of the effort table ('Reasons by default, with no default level applied ... To turn reasoning off send reasoning_effort: none; the model ignores enable_thinking on its own'), so reasoningEffortValues declares only the documented off value and thinkingLevelMap { off: 'none' } puts it on the wire. Cost 0 per maintainer decision (NaN bills credits, not per-token USD)."
|
|
557
|
+
],
|
|
558
|
+
"extras": {}
|
|
559
|
+
},
|
|
495
560
|
{
|
|
496
561
|
"id": "kimi-k3.1-pro",
|
|
497
562
|
"name": "Kimi K3.1 Pro",
|
|
@@ -507,7 +572,7 @@ export const NAN_GENERATED_MODELS: readonly GeneratedModelEntry[] = [
|
|
|
507
572
|
"cacheWrite": 0
|
|
508
573
|
},
|
|
509
574
|
"contextWindow": 1048576,
|
|
510
|
-
"maxTokens":
|
|
575
|
+
"maxTokens": 1048576,
|
|
511
576
|
"reasoningEffortValues": [],
|
|
512
577
|
"compat": {
|
|
513
578
|
"supportsDeveloperRole": false,
|
|
@@ -518,8 +583,9 @@ export const NAN_GENERATED_MODELS: readonly GeneratedModelEntry[] = [
|
|
|
518
583
|
},
|
|
519
584
|
"notes": [
|
|
520
585
|
"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.",
|
|
521
|
-
"
|
|
522
|
-
"
|
|
586
|
+
"cost 0 on every model: NaN bills a credit pool (1 credit ≈ 0.026 €) rather than per-token USD, so pi's per-token cost estimate does not apply. models.dev provider nan started publishing a derived USD conversion on 2026-11-17; it is not a price NaN charges, so it is not adopted (delete NAN_CATALOG_COST in scripts/generate-models.ts to adopt it).",
|
|
587
|
+
"Kimi K3.1 Pro, documented in https://nan.builders/docs/models (checked 2026-11-17; models.dev provider nan lists it since 2026-11-10). contextWindow 1,048,576 ('1M token context') and maxTokens 1,048,576 ('Max answer 1M tokens', which models.dev nan reports as limit.output) — pi-ai clamps the outgoing budget with clampMaxTokensToContext, so declaring the documented maximum never sends an over-context max_tokens. input text+image per the card. Reasoning: the card only says 'Reasoning model', and the docs keep this model out of the effort contract while stating that the `none` aliases are NOT mapped on it, so no reasoningEffortValues and no thinkingLevelMap are declared: pi sends no reasoning_effort and the model's own behaviour decides. Cost 0 per maintainer decision (NaN bills credits, not per-token USD).",
|
|
588
|
+
"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 larger model documented in https://nan.builders/docs/models (checked 2026-11-17) and listed by the live GET https://api.nan.builders/v1/models (checked 2026-11-17), but absent from models.dev provider nan)"
|
|
523
589
|
],
|
|
524
590
|
"extras": {
|
|
525
591
|
"id": "kimi-k3.1-pro",
|
|
@@ -574,16 +640,24 @@ export const NAN_GENERATED_MODELS: readonly GeneratedModelEntry[] = [
|
|
|
574
640
|
"image"
|
|
575
641
|
],
|
|
576
642
|
"cost": {
|
|
577
|
-
"input": 0
|
|
578
|
-
"output": 0
|
|
579
|
-
"cacheRead": 0
|
|
643
|
+
"input": 0,
|
|
644
|
+
"output": 0,
|
|
645
|
+
"cacheRead": 0,
|
|
580
646
|
"cacheWrite": 0
|
|
581
647
|
},
|
|
582
648
|
"contextWindow": 1048576,
|
|
583
649
|
"maxTokens": 131072,
|
|
584
|
-
"reasoningEffortValues": [
|
|
650
|
+
"reasoningEffortValues": [
|
|
651
|
+
"none",
|
|
652
|
+
"low",
|
|
653
|
+
"medium",
|
|
654
|
+
"high",
|
|
655
|
+
"max"
|
|
656
|
+
],
|
|
585
657
|
"thinkingLevelMap": {
|
|
586
|
-
"off": "none"
|
|
658
|
+
"off": "none",
|
|
659
|
+
"xhigh": "xhigh",
|
|
660
|
+
"max": "max"
|
|
587
661
|
},
|
|
588
662
|
"compat": {
|
|
589
663
|
"supportsDeveloperRole": false,
|
|
@@ -594,7 +668,8 @@ export const NAN_GENERATED_MODELS: readonly GeneratedModelEntry[] = [
|
|
|
594
668
|
},
|
|
595
669
|
"notes": [
|
|
596
670
|
"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.",
|
|
597
|
-
"
|
|
671
|
+
"cost 0 on every model: NaN bills a credit pool (1 credit ≈ 0.026 €) rather than per-token USD, so pi's per-token cost estimate does not apply. models.dev provider nan started publishing a derived USD conversion on 2026-11-17; it is not a price NaN charges, so it is not adopted (delete NAN_CATALOG_COST in scripts/generate-models.ts to adopt it).",
|
|
672
|
+
"reasoningEffortValues none/low/medium/high/max: the card says 'reasoning_effort: none turns it off · low to max', and the contract table says 'minimal is applied as low and xhigh as max' (https://nan.builders/docs/models#controlling-reasoning, checked 2026-11-17), so only the values with their own meaning are declared. thinkingLevelMap { off: \"none\" } (live re-probe 2026-10-14): the 2026-10-14 docs called the parameter 'accepted, depth not adjustable', but the gateway makes it 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` sends reasoning_effort:\"none\" and actually disables reasoning.",
|
|
598
673
|
"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.)"
|
|
599
674
|
],
|
|
600
675
|
"extras": {
|
|
@@ -658,10 +733,13 @@ export const NAN_GENERATED_MODELS: readonly GeneratedModelEntry[] = [
|
|
|
658
733
|
"low",
|
|
659
734
|
"medium",
|
|
660
735
|
"high",
|
|
736
|
+
"xhigh",
|
|
661
737
|
"max"
|
|
662
738
|
],
|
|
663
739
|
"thinkingLevelMap": {
|
|
664
|
-
"off": "none"
|
|
740
|
+
"off": "none",
|
|
741
|
+
"xhigh": "xhigh",
|
|
742
|
+
"max": "max"
|
|
665
743
|
},
|
|
666
744
|
"compat": {
|
|
667
745
|
"supportsDeveloperRole": false,
|
|
@@ -672,7 +750,8 @@ export const NAN_GENERATED_MODELS: readonly GeneratedModelEntry[] = [
|
|
|
672
750
|
},
|
|
673
751
|
"notes": [
|
|
674
752
|
"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.",
|
|
675
|
-
"
|
|
753
|
+
"cost 0 on every model: NaN bills a credit pool (1 credit ≈ 0.026 €) rather than per-token USD, so pi's per-token cost estimate does not apply. models.dev provider nan started publishing a derived USD conversion on 2026-11-17; it is not a price NaN charges, so it is not adopted (delete NAN_CATALOG_COST in scripts/generate-models.ts to adopt it).",
|
|
754
|
+
"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-11-17). 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. reasoningEffortValues: the contract table documents the whole ladder (low 2,048, medium 8,192, high 16,384, xhigh and max 32,768 reasoning tokens on Chat Completions)."
|
|
676
755
|
],
|
|
677
756
|
"extras": {
|
|
678
757
|
"id": "qwen3.6",
|
|
@@ -733,14 +812,27 @@ export const NAN_GENERATED_MODELS: readonly GeneratedModelEntry[] = [
|
|
|
733
812
|
"image"
|
|
734
813
|
],
|
|
735
814
|
"cost": {
|
|
736
|
-
"input": 0
|
|
737
|
-
"output": 0
|
|
738
|
-
"cacheRead": 0
|
|
815
|
+
"input": 0,
|
|
816
|
+
"output": 0,
|
|
817
|
+
"cacheRead": 0,
|
|
739
818
|
"cacheWrite": 0
|
|
740
819
|
},
|
|
741
820
|
"contextWindow": 1048576,
|
|
742
821
|
"maxTokens": 131072,
|
|
743
|
-
"reasoningEffortValues": [
|
|
822
|
+
"reasoningEffortValues": [
|
|
823
|
+
"none",
|
|
824
|
+
"minimal",
|
|
825
|
+
"low",
|
|
826
|
+
"medium",
|
|
827
|
+
"high",
|
|
828
|
+
"xhigh",
|
|
829
|
+
"max"
|
|
830
|
+
],
|
|
831
|
+
"thinkingLevelMap": {
|
|
832
|
+
"off": "none",
|
|
833
|
+
"xhigh": "xhigh",
|
|
834
|
+
"max": "max"
|
|
835
|
+
},
|
|
744
836
|
"compat": {
|
|
745
837
|
"supportsDeveloperRole": false,
|
|
746
838
|
"supportsReasoningEffort": true,
|
|
@@ -750,7 +842,8 @@ export const NAN_GENERATED_MODELS: readonly GeneratedModelEntry[] = [
|
|
|
750
842
|
},
|
|
751
843
|
"notes": [
|
|
752
844
|
"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.",
|
|
753
|
-
"
|
|
845
|
+
"cost 0 on every model: NaN bills a credit pool (1 credit ≈ 0.026 €) rather than per-token USD, so pi's per-token cost estimate does not apply. models.dev provider nan started publishing a derived USD conversion on 2026-11-17; it is not a price NaN charges, so it is not adopted (delete NAN_CATALOG_COST in scripts/generate-models.ts to adopt it).",
|
|
846
|
+
"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-11-17) — 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 is the tripwire. reasoningEffortValues none..max and thinkingLevelMap { off: 'none' }: the card says 'Reasoning on by default (reasoning_effort: none turns it off · minimal to max)' and the contract table says 'Off. No reasoning tokens' for `none` (https://nan.builders/docs/models, checked 2026-11-17), so `thinking: off` now actually disables reasoning. The earlier note said the parameter was 'accepted, depth not adjustable' with no map, which was true of the 2026-10-14 docs; the model card and the contract table now state the opposite and the docs win."
|
|
754
847
|
],
|
|
755
848
|
"extras": {
|
|
756
849
|
"id": "qwen3.8-flash",
|
|
@@ -820,19 +913,25 @@ export const NAN_GENERATED_MODELS: readonly GeneratedModelEntry[] = [
|
|
|
820
913
|
"cacheWrite": 0
|
|
821
914
|
},
|
|
822
915
|
"contextWindow": 1000000,
|
|
823
|
-
"maxTokens":
|
|
824
|
-
"reasoningEffortValues": [
|
|
916
|
+
"maxTokens": 131072,
|
|
917
|
+
"reasoningEffortValues": [
|
|
918
|
+
"none"
|
|
919
|
+
],
|
|
920
|
+
"thinkingLevelMap": {
|
|
921
|
+
"off": "none"
|
|
922
|
+
},
|
|
825
923
|
"compat": {
|
|
826
924
|
"supportsDeveloperRole": false,
|
|
827
925
|
"supportsReasoningEffort": true,
|
|
828
926
|
"supportsUsageInStreaming": true,
|
|
829
927
|
"supportsFinishReason": true,
|
|
830
|
-
"maxTokensField": "
|
|
928
|
+
"maxTokensField": "max_completion_tokens"
|
|
831
929
|
},
|
|
832
930
|
"notes": [
|
|
833
931
|
"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.",
|
|
834
|
-
"
|
|
835
|
-
"
|
|
932
|
+
"cost 0 on every model: NaN bills a credit pool (1 credit ≈ 0.026 €) rather than per-token USD, so pi's per-token cost estimate does not apply. models.dev provider nan started publishing a derived USD conversion on 2026-11-17; it is not a price NaN charges, so it is not adopted (delete NAN_CATALOG_COST in scripts/generate-models.ts to adopt it).",
|
|
933
|
+
"Qwen3.8 Max, documented in https://nan.builders/docs/models (checked 2026-11-17; models.dev provider nan lists it since 2026-11-10). contextWindow 1,000,000: the card says '1M token context' and the first-party vendor value on models.dev provider alibaba (qwen3.8-max) is 1,000,000 — the smaller of that and NaN's 1M = 1,048,576 convention (https://nan.builders/docs/pi). maxTokens 131,072: the card says 'Max answer 131K tokens'. maxTokensField 'max_completion_tokens': the docs state that on this model 'max_tokens only bounds the visible answer: the reasoning comes on top of it. To cap the total (reasoning plus answer, and so the cost) use max_completion_tokens' — the quota blowout issue #34 fixed for qwen3.8-flash, same fix, same sanitizer exemption (SanitizerOptions.preserveMaxCompletionTokens, wired from compat.maxTokensField in src/provider-factory.ts). input text+image per the card. Reasoning: the docs say 'none turns it off' for this model, so reasoningEffortValues declares 'none' and thinkingLevelMap { off: 'none' } sends it when pi maps reasoning:'off' to undefined. Cost 0 per maintainer decision (NaN bills credits, not per-token USD).",
|
|
934
|
+
"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 larger model documented in https://nan.builders/docs/models (checked 2026-11-17) and listed by the live GET https://api.nan.builders/v1/models (checked 2026-11-17), but absent from models.dev provider nan)"
|
|
836
935
|
],
|
|
837
936
|
"extras": {
|
|
838
937
|
"id": "qwen3.8-max",
|
|
@@ -877,15 +976,60 @@ export const NAN_GENERATED_MODELS: readonly GeneratedModelEntry[] = [
|
|
|
877
976
|
},
|
|
878
977
|
"canonical_model_id": "alibaba/qwen3.8-max"
|
|
879
978
|
}
|
|
979
|
+
},
|
|
980
|
+
{
|
|
981
|
+
"id": "qwen4-max",
|
|
982
|
+
"name": "Qwen4 Max",
|
|
983
|
+
"reasoning": true,
|
|
984
|
+
"input": [
|
|
985
|
+
"text",
|
|
986
|
+
"image"
|
|
987
|
+
],
|
|
988
|
+
"cost": {
|
|
989
|
+
"input": 0,
|
|
990
|
+
"output": 0,
|
|
991
|
+
"cacheRead": 0,
|
|
992
|
+
"cacheWrite": 0
|
|
993
|
+
},
|
|
994
|
+
"contextWindow": 1000000,
|
|
995
|
+
"maxTokens": 131072,
|
|
996
|
+
"reasoningEffortValues": [
|
|
997
|
+
"none",
|
|
998
|
+
"minimal",
|
|
999
|
+
"low",
|
|
1000
|
+
"medium",
|
|
1001
|
+
"high",
|
|
1002
|
+
"xhigh",
|
|
1003
|
+
"max"
|
|
1004
|
+
],
|
|
1005
|
+
"thinkingLevelMap": {
|
|
1006
|
+
"off": "none",
|
|
1007
|
+
"xhigh": "xhigh",
|
|
1008
|
+
"max": "max"
|
|
1009
|
+
},
|
|
1010
|
+
"compat": {
|
|
1011
|
+
"supportsDeveloperRole": false,
|
|
1012
|
+
"supportsReasoningEffort": true,
|
|
1013
|
+
"supportsUsageInStreaming": true,
|
|
1014
|
+
"supportsFinishReason": true,
|
|
1015
|
+
"maxTokensField": "max_tokens"
|
|
1016
|
+
},
|
|
1017
|
+
"notes": [
|
|
1018
|
+
"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.",
|
|
1019
|
+
"cost 0 on every model: NaN bills a credit pool (1 credit ≈ 0.026 €) rather than per-token USD, so pi's per-token cost estimate does not apply. models.dev provider nan started publishing a derived USD conversion on 2026-11-17; it is not a price NaN charges, so it is not adopted (delete NAN_CATALOG_COST in scripts/generate-models.ts to adopt it).",
|
|
1020
|
+
"manual-only: \"qwen4-max\" not yet on models.dev provider nan (NaN larger model documented in https://nan.builders/docs/models (checked 2026-11-17) and listed by the live GET https://api.nan.builders/v1/models (checked 2026-11-17), but absent from models.dev provider nan).",
|
|
1021
|
+
"Qwen4 Max, Alibaba's Qwen 4 flagship, documented in https://nan.builders/docs/models (checked 2026-11-17) and listed by the live GET https://api.nan.builders/v1/models (checked 2026-11-17); models.dev provider nan does not list it, so it enters as a manual-only entry. contextWindow 1,000,000: the card says '1M token context' and both first-party vendor entries on models.dev (vercel/alibaba/qwen4-max and openrouter/qwen/qwen4-max) say 1,000,000 — the smaller of that and NaN's 1M = 1,048,576 convention (https://nan.builders/docs/pi), the same rule qwen3.8-max follows. maxTokens 131,072: the card says 'Max answer 131K tokens' and the reasoning section says 'max_tokens bounds the total, reasoning plus answer, up to 131,000'. input text+image and reasoning true per the card. Reasoning: the card says 'reasoning_effort: none turns it off · minimal to max', and the reasoning section repeats that none turns it off on this model, so reasoningEffortValues declares the documented ladder and thinkingLevelMap { off: 'none' } supplies the off switch when pi maps reasoning:'off' to undefined. Cost 0 per maintainer decision (NaN bills credits, not per-token USD)."
|
|
1022
|
+
],
|
|
1023
|
+
"extras": {}
|
|
880
1024
|
}
|
|
881
1025
|
];
|
|
882
1026
|
|
|
883
1027
|
export const GENERATED_CATALOG_META = {
|
|
884
1028
|
source: "https://models.dev/api.json",
|
|
885
1029
|
modelsDevProvider: "nan",
|
|
886
|
-
fetchedAt: "2026-11-
|
|
887
|
-
modelCount:
|
|
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"],
|
|
1030
|
+
fetchedAt: "2026-11-17T01:04:35.527Z",
|
|
1031
|
+
modelCount: 13,
|
|
1032
|
+
models: ["deepseek-v4-flash","deepseek-v4-pro","gemma4","glm5.3","glm5.3-flash","hy4","hy4-flash","kimi-k3.1-pro","mimo-v2.6-flash","qwen3.6","qwen3.8-flash","qwen3.8-max","qwen4-max"],
|
|
889
1033
|
notes: [
|
|
890
1034
|
"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)",
|
|
891
1035
|
"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)",
|
|
@@ -897,21 +1041,26 @@ export const GENERATED_CATALOG_META = {
|
|
|
897
1041
|
"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))",
|
|
898
1042
|
"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)",
|
|
899
1043
|
"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.",
|
|
900
|
-
"
|
|
901
|
-
"
|
|
902
|
-
"
|
|
903
|
-
"
|
|
904
|
-
"
|
|
905
|
-
"
|
|
906
|
-
"
|
|
907
|
-
"
|
|
908
|
-
"
|
|
909
|
-
"manual-only: \"
|
|
910
|
-
"
|
|
1044
|
+
"cost 0 on every model: NaN bills a credit pool (1 credit ≈ 0.026 €) rather than per-token USD, so pi's per-token cost estimate does not apply. models.dev provider nan started publishing a derived USD conversion on 2026-11-17; it is not a price NaN charges, so it is not adopted (delete NAN_CATALOG_COST in scripts/generate-models.ts to adopt it).",
|
|
1045
|
+
"contextWindow 1,048,576: NaN docs state '1M token context' for this model (https://nan.builders/docs/models, checked 2026-11-17). 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, 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 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 because pi-ai sends max_tokens = model.maxTokens by default. models.dev still lists 384000, so this override pins the documented value. reasoningEffortValues: the docs say 'none turns it off · minimal to max' and the contract table says the other values 'steer how much it reasons. They are hints the model follows, not hard caps' (https://nan.builders/docs/models#controlling-reasoning, checked 2026-11-17), so the documented ladder is declared. The measurement behind issue #16 stays the load-bearing fact and is unchanged: only \"none\" suppresses reasoning (0 reasoning tokens with a full answer; `low` 57, omitted 63, `minimal` 109 — re-probed live 2026-10-14), which is why thinkingLevelMap.off is \"none\". 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.",
|
|
1046
|
+
"DeepSeek V4-Pro (0813 version), documented in https://nan.builders/docs/models (checked 2026-11-17; models.dev provider nan lists it since 2026-11-10). contextWindow 1,048,576 ('1M token context'). maxTokens 393,216: the card says 'Max answer 393K tokens', the same 393,216 the docs clamp deepseek-v4-flash to; models.dev nan reports 384,000, so the docs value wins (maintainer instruction: docs are the source of truth). input text only per the card ('text generation & chat · reasoning'). Reasoning: the card only says 'Reasoning model', and the docs state the `none` aliases are NOT mapped on this model, so no reasoningEffortValues and no thinkingLevelMap are declared. Cost 0 per maintainer decision (NaN bills credits, not per-token USD).",
|
|
1047
|
+
"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 larger model documented in https://nan.builders/docs/models (checked 2026-11-17) and listed by the live GET https://api.nan.builders/v1/models (checked 2026-11-17), but absent from models.dev provider nan)",
|
|
1048
|
+
"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-11-17). 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. reasoningEffortValues: the contract table documents the whole ladder (low 2,048, medium 8,192, high 16,384, xhigh and max 32,768 reasoning tokens on Chat Completions).",
|
|
1049
|
+
"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). input text only: the model card says 'Text only: text in, text out, with no image, audio, video or file input; a request carrying one answers 400, earlier turns of the conversation included', and https://nan.builders/docs/pi declares the same 'input': ['text'] (https://nan.builders/docs/models, checked 2026-11-17). The earlier override declared text+image from the 2026-10-14 card; models.dev also lists it text-only now, so this is a correction of a stale value, not a divergence. contextWindow 1,048,576 ('1M token context'). maxTokens 131,072: models.dev's documented maximum; the docs' own pi/OpenCode blocks publish 32,768 and describe that field as 'a client-side budget rather than a server cap' (https://nan.builders/docs/opencode), so the larger model maximum stays. reasoningEffortValues minimal..max and thinkingLevelMap { off: 'minimal' }: the card says 'reasoning_effort: minimal to max; always reasons, none is applied as minimal' (checked 2026-11-17), so `thinking: off` sends the shortest reasoning the gateway honours. The previous map sent 'low' because the stale docs listed low as the floor. name 'GLM 5.3' per the docs (models.dev says 'GLM-5.3').",
|
|
1050
|
+
"contextWindow 1,048,576 ('1M token context') and maxTokens 131,072: the docs state that an output budget above this model's maximum is lowered to 131072, so 131,072 is its documented ceiling (https://nan.builders/docs/models, checked 2026-11-17); models.dev lists the rounded 1,000,000 window. thinkingLevelMap { off: \"minimal\" }: the card says 'reasoning_effort: minimal to max; always reasons, none is applied as minimal' — the gateway never stops reasoning on this model. issue #16 measured the same effect on 2026-09-27: 'minimal' yields ~38 reasoning tokens with an answer, while 'none' does not suppress it (13,382 tokens). reasoningEffortValues minimal..max per the card, xhigh included (the docs' value ladder runs none, minimal, low, medium, high, xhigh, max).",
|
|
1051
|
+
"Hy4, Tencent's Hunyuan 4, documented in https://nan.builders/docs/models (checked 2026-11-17; models.dev provider nan lists it since 2026-11-10). contextWindow 1,048,576 ('1M token context'). maxTokens 65,536: the card says 'Max answer 64K tokens' and models.dev provider nan reports the same 65,536, so it is no longer the flat 32,768 default. input text+image, reasoning true. Reasoning: the card says 'Reasons by default; if you send no reasoning_effort (nor an alias) we apply low, and your own value always wins', and the aliases ARE mapped on this model, so thinkingLevelMap { off: 'none' } supplies the documented off switch ('To turn reasoning off, send none ... it works on every model except GLM'). No other level is documented for it, so reasoningEffortValues declares only 'none'. Cost 0 per maintainer decision (NaN bills credits, not per-token USD).",
|
|
1052
|
+
"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 larger model documented in https://nan.builders/docs/models (checked 2026-11-17) and listed by the live GET https://api.nan.builders/v1/models (checked 2026-11-17), but absent from models.dev provider nan)",
|
|
1053
|
+
"manual-only: \"hy4-flash\" not yet on models.dev provider nan (NaN larger model documented in https://nan.builders/docs/models (checked 2026-11-17) and listed by the live GET https://api.nan.builders/v1/models (checked 2026-11-17), but absent from models.dev provider nan).",
|
|
1054
|
+
"Hy4 Flash, Tencent's fast Hunyuan 4, documented in https://nan.builders/docs/models (checked 2026-11-17) and listed by the live GET https://api.nan.builders/v1/models (checked 2026-11-17); models.dev provider nan does not list it, so it enters as a manual-only entry. contextWindow 1,048,576: the card says '1M token context' and NaN's 1M convention is 1,048,576 (https://nan.builders/docs/pi), which the first-party models.dev entry openrouter/tencent/hy4-flash also reports. maxTokens 65,536: the card says 'Max answer 64K tokens' (64K = 65,536), and its reasoning section says 'max_tokens bounds reasoning plus answer, up to 64,000', so the classic max_tokens field stays. input text+image and reasoning true per the card ('Tool calling and reasoning'). The docs keep this model out of the effort table ('Reasons by default, with no default level applied ... To turn reasoning off send reasoning_effort: none; the model ignores enable_thinking on its own'), so reasoningEffortValues declares only the documented off value and thinkingLevelMap { off: 'none' } puts it on the wire. Cost 0 per maintainer decision (NaN bills credits, not per-token USD).",
|
|
1055
|
+
"Kimi K3.1 Pro, documented in https://nan.builders/docs/models (checked 2026-11-17; models.dev provider nan lists it since 2026-11-10). contextWindow 1,048,576 ('1M token context') and maxTokens 1,048,576 ('Max answer 1M tokens', which models.dev nan reports as limit.output) — pi-ai clamps the outgoing budget with clampMaxTokensToContext, so declaring the documented maximum never sends an over-context max_tokens. input text+image per the card. Reasoning: the card only says 'Reasoning model', and the docs keep this model out of the effort contract while stating that the `none` aliases are NOT mapped on it, so no reasoningEffortValues and no thinkingLevelMap are declared: pi sends no reasoning_effort and the model's own behaviour decides. Cost 0 per maintainer decision (NaN bills credits, not per-token USD).",
|
|
1056
|
+
"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 larger model documented in https://nan.builders/docs/models (checked 2026-11-17) and listed by the live GET https://api.nan.builders/v1/models (checked 2026-11-17), but absent from models.dev provider nan)",
|
|
1057
|
+
"reasoningEffortValues none/low/medium/high/max: the card says 'reasoning_effort: none turns it off · low to max', and the contract table says 'minimal is applied as low and xhigh as max' (https://nan.builders/docs/models#controlling-reasoning, checked 2026-11-17), so only the values with their own meaning are declared. thinkingLevelMap { off: \"none\" } (live re-probe 2026-10-14): the 2026-10-14 docs called the parameter 'accepted, depth not adjustable', but the gateway makes it 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` sends reasoning_effort:\"none\" and actually disables reasoning.",
|
|
911
1058
|
"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.)",
|
|
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-
|
|
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-
|
|
914
|
-
"
|
|
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
|
|
1059
|
+
"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-11-17). 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. reasoningEffortValues: the contract table documents the whole ladder (low 2,048, medium 8,192, high 16,384, xhigh and max 32,768 reasoning tokens on Chat Completions).",
|
|
1060
|
+
"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-11-17) — 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 is the tripwire. reasoningEffortValues none..max and thinkingLevelMap { off: 'none' }: the card says 'Reasoning on by default (reasoning_effort: none turns it off · minimal to max)' and the contract table says 'Off. No reasoning tokens' for `none` (https://nan.builders/docs/models, checked 2026-11-17), so `thinking: off` now actually disables reasoning. The earlier note said the parameter was 'accepted, depth not adjustable' with no map, which was true of the 2026-10-14 docs; the model card and the contract table now state the opposite and the docs win.",
|
|
1061
|
+
"Qwen3.8 Max, documented in https://nan.builders/docs/models (checked 2026-11-17; models.dev provider nan lists it since 2026-11-10). contextWindow 1,000,000: the card says '1M token context' and the first-party vendor value on models.dev provider alibaba (qwen3.8-max) is 1,000,000 — the smaller of that and NaN's 1M = 1,048,576 convention (https://nan.builders/docs/pi). maxTokens 131,072: the card says 'Max answer 131K tokens'. maxTokensField 'max_completion_tokens': the docs state that on this model 'max_tokens only bounds the visible answer: the reasoning comes on top of it. To cap the total (reasoning plus answer, and so the cost) use max_completion_tokens' — the quota blowout issue #34 fixed for qwen3.8-flash, same fix, same sanitizer exemption (SanitizerOptions.preserveMaxCompletionTokens, wired from compat.maxTokensField in src/provider-factory.ts). input text+image per the card. Reasoning: the docs say 'none turns it off' for this model, so reasoningEffortValues declares 'none' and thinkingLevelMap { off: 'none' } sends it when pi maps reasoning:'off' to undefined. Cost 0 per maintainer decision (NaN bills credits, not per-token USD).",
|
|
1062
|
+
"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 larger model documented in https://nan.builders/docs/models (checked 2026-11-17) and listed by the live GET https://api.nan.builders/v1/models (checked 2026-11-17), but absent from models.dev provider nan)",
|
|
1063
|
+
"manual-only: \"qwen4-max\" not yet on models.dev provider nan (NaN larger model documented in https://nan.builders/docs/models (checked 2026-11-17) and listed by the live GET https://api.nan.builders/v1/models (checked 2026-11-17), but absent from models.dev provider nan).",
|
|
1064
|
+
"Qwen4 Max, Alibaba's Qwen 4 flagship, documented in https://nan.builders/docs/models (checked 2026-11-17) and listed by the live GET https://api.nan.builders/v1/models (checked 2026-11-17); models.dev provider nan does not list it, so it enters as a manual-only entry. contextWindow 1,000,000: the card says '1M token context' and both first-party vendor entries on models.dev (vercel/alibaba/qwen4-max and openrouter/qwen/qwen4-max) say 1,000,000 — the smaller of that and NaN's 1M = 1,048,576 convention (https://nan.builders/docs/pi), the same rule qwen3.8-max follows. maxTokens 131,072: the card says 'Max answer 131K tokens' and the reasoning section says 'max_tokens bounds the total, reasoning plus answer, up to 131,000'. input text+image and reasoning true per the card. Reasoning: the card says 'reasoning_effort: none turns it off · minimal to max', and the reasoning section repeats that none turns it off on this model, so reasoningEffortValues declares the documented ladder and thinkingLevelMap { off: 'none' } supplies the off switch when pi maps reasoning:'off' to undefined. Cost 0 per maintainer decision (NaN bills credits, not per-token USD)."
|
|
916
1065
|
],
|
|
917
1066
|
} as const;
|