win下使用多杰droid 1.auto 2.7.x 3.固定模型 4.上一次对话 📅 2026/8/5 9:35:22 1)参考: 知识库:droid指南 [多杰游戏学]2)安装irm https://app.factory.ai/cli/windows | iex3)配置使用audo(不要一直问)检查下当前PowerShell的版本$PSVersionTable.PSVersion先下载7.x(科学上网会下载快很多)//查看可用版本 winget search Microsoft.PowerShell //安装稳定版 winget install --id Microsoft.PowerShell --source winget先找到配置5.x文件的位置echo $PROFILE修改下添加小于7则跳转$utf8Block chcp 65001 | Out-Null [Console]::InputEncoding [System.Text.UTF8Encoding]::new() [Console]::OutputEncoding [System.Text.UTF8Encoding]::new() $OutputEncoding [System.Text.UTF8Encoding]::new() $PSDefaultParameterValues[Out-File:Encoding] utf8 $PSDefaultParameterValues[Set-Content:Encoding] utf8 $PSDefaultParameterValues[Add-Content:Encoding] utf8 # 先读取现有 profile 内容如果有 $profileContent if (Test-Path $PROFILE) { $profileContent Get-Content -Path $PROFILE -Raw } # 如果还没写过就追加一份确保文件保存为 UTF-8 无 BOM if ($profileContent -notmatch Console::OutputEncoding) { $newContent $profileContent rn $utf8Block [System.IO.File]::WriteAllText($PROFILE, $newContent, (New-Object System.Text.UTF8Encoding($false))) } # PowerShell 5.1 自动跳转 PowerShell 7 if ($PSVersionTable.PSVersion.Major -lt 7) { # 启动 PowerShell 7并执行 droid auto pwsh # 退出当前 PowerShell 5.1 exit }此时打开powershell会自动跳转到7.x先打印下7.x文件的位置并且搜索下是否存在echo $PROFILE如果不存在则创建7.x的配置文件New-Item -ItemType Directory -Path (Split-Path $PROFILE) -Force New-Item -ItemType File -Path $PROFILE -Force7.x加入autofunction droid { droid.exe --auto high args }4)启动时使用默认模型(如: 5.6sol high)C:\Users\Admin\.factory\settings.jsonsessionDefaultSettings: { model: custom:GPT-5.6-Sol-[duojie.games]-0, reasoningEffort: high }5)启动时接着上一次的对话(列出来对话选一个)/sessions