Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
54 changes: 54 additions & 0 deletions models/alibaba/glm-5.1.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
# yaml-language-server: $schema=https://modelparams.dev/api/v1/schema.json
provider: alibaba
authType: api_key
model: glm-5.1
params:
- path: max_completion_tokens
type: integer
label: Max tokens
description: Maximum number of tokens to generate, including both reasoning and the final answer.
range:
min: 1
group: generation_length
- path: temperature
type: number
label: Temperature
description: Controls randomness. Lower values make outputs more focused; higher values make them more varied.
range:
min: 0
max: 2
step: 0.1
group: sampling
- path: top_p
type: number
label: Top P
description: Controls nucleus sampling by limiting generation to tokens within the selected cumulative probability.
range:
min: 0
max: 1
step: 0.01
group: sampling
- path: extra_body.top_k
type: integer
label: Top K
description: Limits generation to the selected number of highest-probability tokens. Values above 100 disable top-k sampling.
default: 20
range:
min: 0
group: sampling
- path: extra_body.enable_thinking
type: boolean
label: Enable thinking
description: Toggles the model's hybrid thinking mode, sent as a provider-specific extra body field on OpenAI-compatible clients.
default: true
group: reasoning
- path: extra_body.thinking_budget
type: integer
label: Thinking budget
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.
range:
min: 1
group: reasoning
applicability:
only:
extra_body.enable_thinking: true
75 changes: 75 additions & 0 deletions packages/modelparams/src/generated/data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,81 @@
import type { ModelId } from "./model-ids.js";

export const CATALOG = [
{
"provider": "alibaba",
"authType": "api_key",
"model": "glm-5.1",
"params": [
{
"path": "max_completion_tokens",
"label": "Max tokens",
"description": "Maximum number of tokens to generate, including both reasoning and the final answer.",
"group": "generation_length",
"type": "integer",
"range": {
"min": 1
}
},
{
"path": "temperature",
"label": "Temperature",
"description": "Controls randomness. Lower values make outputs more focused; higher values make them more varied.",
"group": "sampling",
"type": "number",
"range": {
"min": 0,
"max": 2,
"step": 0.1
}
},
{
"path": "top_p",
"label": "Top P",
"description": "Controls nucleus sampling by limiting generation to tokens within the selected cumulative probability.",
"group": "sampling",
"type": "number",
"range": {
"min": 0,
"max": 1,
"step": 0.01
}
},
{
"path": "extra_body.top_k",
"label": "Top K",
"description": "Limits generation to the selected number of highest-probability tokens. Values above 100 disable top-k sampling.",
"group": "sampling",
"type": "integer",
"default": 20,
"range": {
"min": 0
}
},
{
"path": "extra_body.enable_thinking",
"label": "Enable thinking",
"description": "Toggles the model's hybrid thinking mode, sent as a provider-specific extra body field on OpenAI-compatible clients.",
"group": "reasoning",
"type": "boolean",
"default": true
},
{
"path": "extra_body.thinking_budget",
"label": "Thinking budget",
"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.",
"group": "reasoning",
"applicability": {
"only": {
"extra_body.enable_thinking": true
}
},
"type": "integer",
"range": {
"min": 1
}
}
]
},
{
"provider": "alibaba",
"authType": "api_key",
Expand Down
4 changes: 4 additions & 0 deletions packages/modelparams/src/generated/defaults.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ import type { ModelId } from "./model-ids.js";
import type { ParamsById } from "./params-by-id.js";

export const DEFAULTS = {
"alibaba/glm-5.1": {
"extra_body.top_k": 20,
"extra_body.enable_thinking": true,
},
"alibaba/qwen-flash": {
"extra_body.top_k": 20,
"extra_body.chat_template_kwargs.enable_thinking": true,
Expand Down
1 change: 1 addition & 0 deletions packages/modelparams/src/generated/model-ids.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// Source of truth: the YAML catalog under /models in modelparams.dev.

export const MODEL_IDS = [
"alibaba/glm-5.1",
"alibaba/qwen-flash",
"alibaba/qwen-plus",
"alibaba/qwen3-coder-flash",
Expand Down
8 changes: 8 additions & 0 deletions packages/modelparams/src/generated/params-by-id.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,14 @@
* parameters they want to override.
*/
export type ParamsById = {
"alibaba/glm-5.1": {
max_completion_tokens: number;
temperature: number;
top_p: number;
"extra_body.top_k": number;
"extra_body.enable_thinking": boolean;
"extra_body.thinking_budget": number;
};
"alibaba/qwen-flash": {
max_tokens: number;
temperature: number;
Expand Down
Loading