Skip to content

Commit 59bdee9

Browse files
chore(catalog): sync from gateway — 1 added, 0 corrected, 0 retired (#419)
Every added param and every corrected bound was verified end-to-end through the gateway.
1 parent 09565eb commit 59bdee9

9 files changed

Lines changed: 238 additions & 0 deletions

File tree

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
# yaml-language-server: $schema=https://modelparams.dev/api/v1/schema.json
2+
provider: alibaba
3+
authType: api_key
4+
apiSurface: openai-chat-completions
5+
model: deepseek-v4.1-flash-1017
6+
params:
7+
- path: max_completion_tokens
8+
type: integer
9+
label: Max tokens
10+
description: Maximum number of tokens to generate, including both reasoning and the final answer.
11+
range:
12+
min: 1
13+
group: generation_length
14+
- path: temperature
15+
type: number
16+
label: Temperature
17+
description: Controls randomness. Lower values make outputs more focused; higher values make them more varied.
18+
range:
19+
min: 0
20+
max: 1.9
21+
step: 0.1
22+
group: sampling
23+
- path: top_p
24+
type: number
25+
label: Top P
26+
description: Controls nucleus sampling by limiting generation to tokens within the selected cumulative probability.
27+
range:
28+
min: 0
29+
max: 1
30+
step: 0.01
31+
group: sampling
32+
- path: extra_body.top_k
33+
type: integer
34+
label: Top K
35+
description: Limits generation to the selected number of highest-probability tokens. Values above 100 disable top-k sampling.
36+
default: 20
37+
range:
38+
min: 0
39+
group: sampling
40+
- path: extra_body.enable_thinking
41+
type: boolean
42+
label: Enable thinking
43+
description: Toggles the model's hybrid thinking mode, sent as a provider-specific extra body field on OpenAI-compatible clients.
44+
default: true
45+
group: reasoning
46+
- path: extra_body.thinking_budget
47+
type: integer
48+
label: Thinking budget
49+
description: Maximum number of tokens the model may spend on reasoning before it starts the final answer; defaults to the model's maximum reasoning length.
50+
range:
51+
min: 1
52+
group: reasoning
53+
applicability:
54+
only:
55+
extra_body.enable_thinking: true

‎packages/modelparams-python/src/modelparams/_generated/catalog.json‎

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -457,6 +457,82 @@
457457
}
458458
]
459459
},
460+
{
461+
"provider": "alibaba",
462+
"authType": "api_key",
463+
"apiSurface": "openai-chat-completions",
464+
"model": "deepseek-v4.1-flash-1017",
465+
"params": [
466+
{
467+
"path": "max_completion_tokens",
468+
"label": "Max tokens",
469+
"description": "Maximum number of tokens to generate, including both reasoning and the final answer.",
470+
"group": "generation_length",
471+
"type": "integer",
472+
"range": {
473+
"min": 1
474+
}
475+
},
476+
{
477+
"path": "temperature",
478+
"label": "Temperature",
479+
"description": "Controls randomness. Lower values make outputs more focused; higher values make them more varied.",
480+
"group": "sampling",
481+
"type": "number",
482+
"range": {
483+
"min": 0,
484+
"max": 1.9,
485+
"step": 0.1
486+
}
487+
},
488+
{
489+
"path": "top_p",
490+
"label": "Top P",
491+
"description": "Controls nucleus sampling by limiting generation to tokens within the selected cumulative probability.",
492+
"group": "sampling",
493+
"type": "number",
494+
"range": {
495+
"min": 0,
496+
"max": 1,
497+
"step": 0.01
498+
}
499+
},
500+
{
501+
"path": "extra_body.top_k",
502+
"label": "Top K",
503+
"description": "Limits generation to the selected number of highest-probability tokens. Values above 100 disable top-k sampling.",
504+
"group": "sampling",
505+
"type": "integer",
506+
"default": 20,
507+
"range": {
508+
"min": 0
509+
}
510+
},
511+
{
512+
"path": "extra_body.enable_thinking",
513+
"label": "Enable thinking",
514+
"description": "Toggles the model's hybrid thinking mode, sent as a provider-specific extra body field on OpenAI-compatible clients.",
515+
"group": "reasoning",
516+
"type": "boolean",
517+
"default": true
518+
},
519+
{
520+
"path": "extra_body.thinking_budget",
521+
"label": "Thinking budget",
522+
"description": "Maximum number of tokens the model may spend on reasoning before it starts the final answer; defaults to the model's maximum reasoning length.",
523+
"group": "reasoning",
524+
"applicability": {
525+
"only": {
526+
"extra_body.enable_thinking": true
527+
}
528+
},
529+
"type": "integer",
530+
"range": {
531+
"min": 1
532+
}
533+
}
534+
]
535+
},
460536
{
461537
"provider": "alibaba",
462538
"authType": "api_key",

‎packages/modelparams-python/src/modelparams/_generated/model_ids.py‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
"alibaba/deepseek-v4-pro",
1111
"alibaba/deepseek-v4-pro-0813",
1212
"alibaba/deepseek-v4.1-flash",
13+
"alibaba/deepseek-v4.1-flash-1017",
1314
"alibaba/glm-5.1",
1415
"alibaba/glm-5.2",
1516
"alibaba/glm-5.2-fast-preview",
@@ -509,6 +510,7 @@
509510
"alibaba/deepseek-v4-pro",
510511
"alibaba/deepseek-v4-pro-0813",
511512
"alibaba/deepseek-v4.1-flash",
513+
"alibaba/deepseek-v4.1-flash-1017",
512514
"alibaba/glm-5.1",
513515
"alibaba/glm-5.2",
514516
"alibaba/glm-5.2-fast-preview",

‎packages/modelparams-python/src/modelparams/_generated/registry.py‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
"alibaba/deepseek-v4-pro": alibaba.Deepseek_V4_ProParams,
3636
"alibaba/deepseek-v4-pro-0813": alibaba.Deepseek_V4_Pro_0813Params,
3737
"alibaba/deepseek-v4.1-flash": alibaba.Deepseek_V4_1_FlashParams,
38+
"alibaba/deepseek-v4.1-flash-1017": alibaba.Deepseek_V4_1_Flash_1017Params,
3839
"alibaba/glm-5.1": alibaba.Glm_5_1Params,
3940
"alibaba/glm-5.2": alibaba.Glm_5_2Params,
4041
"alibaba/glm-5.2-fast-preview": alibaba.Glm_5_2_Fast_PreviewParams,

‎packages/modelparams-python/src/modelparams/types/alibaba.py‎

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,20 @@
9494
)
9595
setattr(Deepseek_V4_1_FlashParams, "__pydantic_config__", _PARAMS_CONFIG)
9696

97+
Deepseek_V4_1_Flash_1017Params = TypedDict(
98+
"Deepseek_V4_1_Flash_1017Params",
99+
{
100+
"max_completion_tokens": Annotated[int, Field(ge=1)],
101+
"temperature": Annotated[float, Field(ge=0, le=1.9)],
102+
"top_p": Annotated[float, Field(ge=0, le=1)],
103+
"extra_body.top_k": Annotated[int, Field(ge=0)],
104+
"extra_body.enable_thinking": bool,
105+
"extra_body.thinking_budget": Annotated[int, Field(ge=1)],
106+
},
107+
total=False,
108+
)
109+
setattr(Deepseek_V4_1_Flash_1017Params, "__pydantic_config__", _PARAMS_CONFIG)
110+
97111
Glm_5_1Params = TypedDict(
98112
"Glm_5_1Params",
99113
{
@@ -1082,6 +1096,7 @@
10821096
"Deepseek_V4_ProParams",
10831097
"Deepseek_V4_Pro_0813Params",
10841098
"Deepseek_V4_1_FlashParams",
1099+
"Deepseek_V4_1_Flash_1017Params",
10851100
"Glm_5_1Params",
10861101
"Glm_5_2Params",
10871102
"Glm_5_2_Fast_PreviewParams",

‎packages/modelparams/src/generated/data.ts‎

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -462,6 +462,82 @@ const GENERATED_CATALOG = [
462462
}
463463
]
464464
},
465+
{
466+
"provider": "alibaba",
467+
"authType": "api_key",
468+
"apiSurface": "openai-chat-completions",
469+
"model": "deepseek-v4.1-flash-1017",
470+
"params": [
471+
{
472+
"path": "max_completion_tokens",
473+
"label": "Max tokens",
474+
"description": "Maximum number of tokens to generate, including both reasoning and the final answer.",
475+
"group": "generation_length",
476+
"type": "integer",
477+
"range": {
478+
"min": 1
479+
}
480+
},
481+
{
482+
"path": "temperature",
483+
"label": "Temperature",
484+
"description": "Controls randomness. Lower values make outputs more focused; higher values make them more varied.",
485+
"group": "sampling",
486+
"type": "number",
487+
"range": {
488+
"min": 0,
489+
"max": 1.9,
490+
"step": 0.1
491+
}
492+
},
493+
{
494+
"path": "top_p",
495+
"label": "Top P",
496+
"description": "Controls nucleus sampling by limiting generation to tokens within the selected cumulative probability.",
497+
"group": "sampling",
498+
"type": "number",
499+
"range": {
500+
"min": 0,
501+
"max": 1,
502+
"step": 0.01
503+
}
504+
},
505+
{
506+
"path": "extra_body.top_k",
507+
"label": "Top K",
508+
"description": "Limits generation to the selected number of highest-probability tokens. Values above 100 disable top-k sampling.",
509+
"group": "sampling",
510+
"type": "integer",
511+
"default": 20,
512+
"range": {
513+
"min": 0
514+
}
515+
},
516+
{
517+
"path": "extra_body.enable_thinking",
518+
"label": "Enable thinking",
519+
"description": "Toggles the model's hybrid thinking mode, sent as a provider-specific extra body field on OpenAI-compatible clients.",
520+
"group": "reasoning",
521+
"type": "boolean",
522+
"default": true
523+
},
524+
{
525+
"path": "extra_body.thinking_budget",
526+
"label": "Thinking budget",
527+
"description": "Maximum number of tokens the model may spend on reasoning before it starts the final answer; defaults to the model's maximum reasoning length.",
528+
"group": "reasoning",
529+
"applicability": {
530+
"only": {
531+
"extra_body.enable_thinking": true
532+
}
533+
},
534+
"type": "integer",
535+
"range": {
536+
"min": 1
537+
}
538+
}
539+
]
540+
},
465541
{
466542
"provider": "alibaba",
467543
"authType": "api_key",

‎packages/modelparams/src/generated/defaults.ts‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ export const DEFAULTS = {
2929
"extra_body.top_k": 20,
3030
"extra_body.enable_thinking": true,
3131
},
32+
"alibaba/deepseek-v4.1-flash-1017": {
33+
"extra_body.top_k": 20,
34+
"extra_body.enable_thinking": true,
35+
},
3236
"alibaba/glm-5.1": {
3337
"extra_body.top_k": 20,
3438
"extra_body.enable_thinking": true,

‎packages/modelparams/src/generated/model-ids.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ export const MODEL_IDS = [
88
"alibaba/deepseek-v4-pro",
99
"alibaba/deepseek-v4-pro-0813",
1010
"alibaba/deepseek-v4.1-flash",
11+
"alibaba/deepseek-v4.1-flash-1017",
1112
"alibaba/glm-5.1",
1213
"alibaba/glm-5.2",
1314
"alibaba/glm-5.2-fast-preview",

‎packages/modelparams/src/generated/params-by-id.ts‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,14 @@ export type ParamsById = {
5555
"extra_body.enable_thinking": boolean;
5656
"extra_body.thinking_budget": number;
5757
};
58+
"alibaba/deepseek-v4.1-flash-1017": {
59+
max_completion_tokens: number;
60+
temperature: number;
61+
top_p: number;
62+
"extra_body.top_k": number;
63+
"extra_body.enable_thinking": boolean;
64+
"extra_body.thinking_budget": number;
65+
};
5866
"alibaba/glm-5.1": {
5967
max_completion_tokens: number;
6068
temperature: number;

0 commit comments

Comments
 (0)