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
44 changes: 44 additions & 0 deletions models/alibaba/glm-5.2-fast-preview.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# yaml-language-server: $schema=https://modelparams.dev/api/v1/schema.json
provider: alibaba
authType: api_key
model: glm-5.2-fast-preview
params:
- path: max_tokens
type: integer
label: Max tokens
description: Maximum number of output tokens the model may generate.
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.
default: 20
range:
min: 1
group: sampling
- path: extra_body.chat_template_kwargs.enable_thinking
type: boolean
label: Enable thinking
description: Controls Qwen3 thinking mode when using OpenAI-compatible clients that pass provider-specific extra body fields.
default: true
group: reasoning
60 changes: 60 additions & 0 deletions packages/modelparams/src/generated/data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,66 @@
import type { ModelId } from "./model-ids.js";

export const CATALOG = [
{
"provider": "alibaba",
"authType": "api_key",
"model": "glm-5.2-fast-preview",
"params": [
{
"path": "max_tokens",
"label": "Max tokens",
"description": "Maximum number of output tokens the model may generate.",
"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.",
"group": "sampling",
"type": "integer",
"default": 20,
"range": {
"min": 1
}
},
{
"path": "extra_body.chat_template_kwargs.enable_thinking",
"label": "Enable thinking",
"description": "Controls Qwen3 thinking mode when using OpenAI-compatible clients that pass provider-specific extra body fields.",
"group": "reasoning",
"type": "boolean",
"default": true
}
]
},
{
"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.2-fast-preview": {
"extra_body.top_k": 20,
"extra_body.chat_template_kwargs.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.2-fast-preview",
"alibaba/qwen-flash",
"alibaba/qwen-plus",
"alibaba/qwen3-coder-flash",
Expand Down
7 changes: 7 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,13 @@
* parameters they want to override.
*/
export type ParamsById = {
"alibaba/glm-5.2-fast-preview": {
max_tokens: number;
temperature: number;
top_p: number;
"extra_body.top_k": number;
"extra_body.chat_template_kwargs.enable_thinking": boolean;
};
"alibaba/qwen-flash": {
max_tokens: number;
temperature: number;
Expand Down
Loading