mirror of
https://github.com/QwenLM/qwen-code.git
synced 2025-12-29 21:19:14 +00:00
Compare commits
1 Commits
v0.6.0
...
mingholy/d
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ea287fae98 |
@@ -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
|
||||
|
||||
@@ -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,
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user