add fmpeg system support for linux and windows
This commit is contained in:
parent
a6aa9a0efa
commit
e455b307be
2 changed files with 31 additions and 3 deletions
26
setup.ps1
26
setup.ps1
|
|
@ -526,7 +526,31 @@ if ($NeedNode) {
|
|||
Write-Host "[OK] Node $(node -v) | npm $(npm -v)" -ForegroundColor Green
|
||||
|
||||
# ============================================
|
||||
# 1g. Python (>= 3.11 and < 3.14, matching setup.sh)
|
||||
# 1g. FFmpeg (required for audio model support)
|
||||
# ============================================
|
||||
$HasFFmpeg = $null -ne (Get-Command ffmpeg -ErrorAction SilentlyContinue)
|
||||
if (-not $HasFFmpeg) {
|
||||
Write-Host "FFmpeg not found -- installing via winget..." -ForegroundColor Yellow
|
||||
$HasWinget = $null -ne (Get-Command winget -ErrorAction SilentlyContinue)
|
||||
if ($HasWinget) {
|
||||
try {
|
||||
winget install -e --id Gyan.FFmpeg --source winget --accept-package-agreements --accept-source-agreements 2>&1 | Out-Null
|
||||
Refresh-Environment
|
||||
$HasFFmpeg = $null -ne (Get-Command ffmpeg -ErrorAction SilentlyContinue)
|
||||
} catch { }
|
||||
}
|
||||
if (-not $HasFFmpeg) {
|
||||
Write-Host "[WARN] FFmpeg could not be installed automatically." -ForegroundColor Yellow
|
||||
Write-Host " Install FFmpeg from https://ffmpeg.org/download.html and re-run." -ForegroundColor Yellow
|
||||
} else {
|
||||
Write-Host "[OK] FFmpeg installed: $(ffmpeg -version | Select-Object -First 1)" -ForegroundColor Green
|
||||
}
|
||||
} else {
|
||||
Write-Host "[OK] FFmpeg found: $(ffmpeg -version | Select-Object -First 1)" -ForegroundColor Green
|
||||
}
|
||||
|
||||
# ============================================
|
||||
# 1h. Python (>= 3.11 and < 3.14, matching setup.sh)
|
||||
# ============================================
|
||||
$HasPython = $null -ne (Get-Command python -ErrorAction SilentlyContinue)
|
||||
$PythonOk = $false
|
||||
|
|
|
|||
|
|
@ -419,9 +419,13 @@ TEMPLATE_TO_RESPONSES_MAPPER = {
|
|||
"instruction": "<start_of_turn>user\n",
|
||||
"response": "<start_of_turn>model\n",
|
||||
},
|
||||
"qwen3-instruct": {
|
||||
"qwen3.5": {
|
||||
"instruction": "<|im_start|>user\n",
|
||||
"response": "<|im_start|>assistant\n",
|
||||
"response": "<|im_start|>assistant\n<think>\n",
|
||||
},
|
||||
"qwen3-instruct": {
|
||||
"instruction": "1user\n",
|
||||
"response": "1assistant\n",
|
||||
},
|
||||
"qwen3-thinking": {
|
||||
"instruction": "<|im_start|>user\n",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue