From fcf78a774f229a01e66001a19114a94935cf05f2 Mon Sep 17 00:00:00 2001 From: giteaMyFirstvdsRoot Date: Wed, 2 Sep 2026 06:06:19 +0000 Subject: [PATCH] =?UTF-8?q?=D0=BF=D0=B5=D1=80=D0=B5=D0=B8=D0=BC=D0=B5?= =?UTF-8?q?=D0=BD=D0=BE=D0=B2=D0=B0=D0=BD=D0=B8=D0=B5=20=D0=B4=D1=83=D0=B1?= =?UTF-8?q?=D0=BB=D0=B5=D0=B9=20=D0=BF=D1=80=D0=BE=D1=84=D0=B8=D0=BB=D0=B5?= =?UTF-8?q?=D0=B9=20=D1=81=20=D0=BD=D0=B0=D1=88=D0=B8=D0=BC=D0=B8=20=D0=B8?= =?UTF-8?q?=D0=BC=D0=B5=D0=BD=D0=B0=D0=BC=D0=B8=20=D0=BF=D0=BE=D0=B4=20?= =?UTF-8?q?=D1=87=D1=83=D0=B6=D0=B8=D0=BC=D0=B8=20id?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- setup.ps1 | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/setup.ps1 b/setup.ps1 index 6bb1012..a5e327e 100644 --- a/setup.ps1 +++ b/setup.ps1 @@ -121,6 +121,12 @@ function Merge-Meta($applied, $routes) { Write-Utf8 (Join-Path $LIB "$ID_DEFAULT.json") "{}" Set-Entry $entries $ID_DEFAULT "Default" } + # Старые записи с нашими именами, но чужими id переименовываем, иначе в панели два одинаковых пункта. + foreach ($e in $entries) { + if (($e.name -eq "ollama-cloud" -or $e.name -eq "zai-glm") -and $e.id -ne $ID_OLLAMA -and $e.id -ne $ID_ZAI) { + $e.name = $e.name + " (старый)" + } + } if ($routes -eq "ollama" -or $routes -eq "both") { Set-Entry $entries $ID_OLLAMA "ollama-cloud" } if ($routes -eq "zai" -or $routes -eq "both") { Set-Entry $entries $ID_ZAI "zai-glm" }