mirror of
https://github.com/QwenLM/qwen-code.git
synced 2025-12-19 09:33:53 +00:00
docs: add /model command documentation (#872)
This commit is contained in:
@@ -66,17 +66,6 @@ Slash commands provide meta-level control over the CLI itself.
|
|||||||
- **Description:** Display all directories added by `/directory add` and `--include-directories`.
|
- **Description:** Display all directories added by `/directory add` and `--include-directories`.
|
||||||
- **Usage:** `/directory show`
|
- **Usage:** `/directory show`
|
||||||
|
|
||||||
- **`/directory`** (or **`/dir`**)
|
|
||||||
- **Description:** Manage workspace directories for multi-directory support.
|
|
||||||
- **Sub-commands:**
|
|
||||||
- **`add`**:
|
|
||||||
- **Description:** Add a directory to the workspace. The path can be absolute or relative to the current working directory. Moreover, the reference from home directory is supported as well.
|
|
||||||
- **Usage:** `/directory add <path1>,<path2>`
|
|
||||||
- **Note:** Disabled in restrictive sandbox profiles. If you're using that, use `--include-directories` when starting the session instead.
|
|
||||||
- **`show`**:
|
|
||||||
- **Description:** Display all directories added by `/directory add` and `--include-directories`.
|
|
||||||
- **Usage:** `/directory show`
|
|
||||||
|
|
||||||
- **`/editor`**
|
- **`/editor`**
|
||||||
- **Description:** Open a dialog for selecting supported editors.
|
- **Description:** Open a dialog for selecting supported editors.
|
||||||
|
|
||||||
@@ -108,6 +97,20 @@ Slash commands provide meta-level control over the CLI itself.
|
|||||||
- **Description:** Reload the hierarchical instructional memory from all context files (default: `QWEN.md`) found in the configured locations (global, project/ancestors, and sub-directories). This updates the model with the latest context content.
|
- **Description:** Reload the hierarchical instructional memory from all context files (default: `QWEN.md`) found in the configured locations (global, project/ancestors, and sub-directories). This updates the model with the latest context content.
|
||||||
- **Note:** For more details on how context files contribute to hierarchical memory, see the [CLI Configuration documentation](./configuration.md#context-files-hierarchical-instructional-context).
|
- **Note:** For more details on how context files contribute to hierarchical memory, see the [CLI Configuration documentation](./configuration.md#context-files-hierarchical-instructional-context).
|
||||||
|
|
||||||
|
- **`/model`**
|
||||||
|
- **Description:** Switch the model for the current session. Opens a dialog to select from available models based on your authentication type.
|
||||||
|
- **Usage:** `/model`
|
||||||
|
- **Features:**
|
||||||
|
- Shows a dialog with all available models for your current authentication type
|
||||||
|
- Displays model descriptions and capabilities (e.g., vision support)
|
||||||
|
- Changes the model for the current session only
|
||||||
|
- Supports both Qwen models (via OAuth) and OpenAI models (via API key)
|
||||||
|
- **Available Models:**
|
||||||
|
- **Qwen Coder:** The latest Qwen Coder model from Alibaba Cloud ModelStudio (version: qwen3-coder-plus-2025-09-23)
|
||||||
|
- **Qwen Vision:** The latest Qwen Vision model from Alibaba Cloud ModelStudio (version: qwen3-vl-plus-2025-09-23) - supports image analysis
|
||||||
|
- **OpenAI Models:** Available when using OpenAI authentication (configured via `OPENAI_MODEL` environment variable)
|
||||||
|
- **Note:** Model selection is session-specific and does not persist across different Qwen Code sessions. To set a default model, use the `model.name` setting in your configuration.
|
||||||
|
|
||||||
- **`/restore`**
|
- **`/restore`**
|
||||||
- **Description:** Restores the project files to the state they were in just before a tool was executed. This is particularly useful for undoing file edits made by a tool. If run without a tool call ID, it will list available checkpoints to restore from.
|
- **Description:** Restores the project files to the state they were in just before a tool was executed. This is particularly useful for undoing file edits made by a tool. If run without a tool call ID, it will list available checkpoints to restore from.
|
||||||
- **Usage:** `/restore [tool_call_id]`
|
- **Usage:** `/restore [tool_call_id]`
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ export default {
|
|||||||
subagents: 'Subagents',
|
subagents: 'Subagents',
|
||||||
checkpointing: 'Checkpointing',
|
checkpointing: 'Checkpointing',
|
||||||
sandbox: 'Sandbox Support',
|
sandbox: 'Sandbox Support',
|
||||||
'headless-mode': 'Headless Mode',
|
headless: 'Headless Mode',
|
||||||
'welcome-back': 'Welcome Back',
|
'welcome-back': 'Welcome Back',
|
||||||
'token-caching': 'Token Caching',
|
'token-caching': 'Token Caching',
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -20,12 +20,14 @@ export const AVAILABLE_MODELS_QWEN: AvailableModel[] = [
|
|||||||
{
|
{
|
||||||
id: MAINLINE_CODER,
|
id: MAINLINE_CODER,
|
||||||
label: MAINLINE_CODER,
|
label: MAINLINE_CODER,
|
||||||
description: 'Optimized for code generation and understanding',
|
description:
|
||||||
|
'The latest Qwen Coder model from Alibaba Cloud ModelStudio (version: qwen3-coder-plus-2025-09-23)',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: MAINLINE_VLM,
|
id: MAINLINE_VLM,
|
||||||
label: MAINLINE_VLM,
|
label: MAINLINE_VLM,
|
||||||
description: 'Vision model with multimodal capabilities',
|
description:
|
||||||
|
'The latest Qwen Vision model from Alibaba Cloud ModelStudio (version: qwen3-vl-plus-2025-09-23)',
|
||||||
isVision: true,
|
isVision: true,
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|||||||
Reference in New Issue
Block a user