Compare commits

...

1 Commits

Author SHA1 Message Date
mingholy.lmh
ea287fae98 docs: add reasoning configuration and sampling parameters instructions 2025-12-29 15:37:08 +08:00
2 changed files with 65 additions and 0 deletions

View File

@@ -124,12 +124,38 @@ Settings are organized into categories. All settings should be placed within the
"temperature": 0.2,
"top_p": 0.8,
"max_tokens": 1024
},
"reasoning": {
"effort": "medium"
}
}
}
}
```
**Reasoning Configuration:**
The `reasoning` field controls reasoning behavior for models that support it:
- Set to `false` to disable reasoning entirely
- Set to an object with `effort` field to enable reasoning with a specific effort level:
- `"low"`: Minimal reasoning effort
- `"medium"`: Balanced reasoning effort (default)
- `"high"`: Maximum reasoning effort
- Optionally include `budget_tokens` to limit reasoning token usage
Example to disable reasoning:
```json
{
"model": {
"generationConfig": {
"reasoning": false
}
}
}
```
**model.openAILoggingDir examples:**
- `"~/qwen-logs"` - Logs to `~/qwen-logs` directory

View File

@@ -675,6 +675,45 @@ const SETTINGS_SCHEMA = {
{ value: 'openapi_30', label: 'OpenAPI 3.0 Strict' },
],
},
samplingParams: {
type: 'object',
label: 'Sampling Parameters',
category: 'Generation Configuration',
requiresRestart: false,
default: undefined as
| {
top_p?: number;
top_k?: number;
repetition_penalty?: number;
presence_penalty?: number;
frequency_penalty?: number;
temperature?: number;
max_tokens?: number;
}
| undefined,
description: 'Sampling parameters for content generation.',
parentKey: 'generationConfig',
childKey: 'samplingParams',
showInDialog: false,
},
reasoning: {
type: 'object',
label: 'Reasoning Configuration',
category: 'Generation Configuration',
requiresRestart: false,
default: undefined as
| false
| {
effort?: 'low' | 'medium' | 'high';
budget_tokens?: number;
}
| undefined,
description:
'Reasoning configuration for models that support reasoning. Set to false to disable reasoning, or provide an object with effort level and optional token budget.',
parentKey: 'generationConfig',
childKey: 'reasoning',
showInDialog: false,
},
},
},
},