From d52c608639f873490c86396cd42160b3394e735d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?ACT=E4=B8=B6=E6=B5=81=E6=98=9F=E9=9B=A8?= <1340145680@qq.com> Date: Sat, 18 Apr 2026 15:47:18 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E5=8D=87=E5=81=A5=E5=A3=AE=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/release.yml | 7 +++---- src/types/database.d.ts | 4 ++-- src/utils/vendor.ts | 1 + 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 0693963..964b0c5 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -183,15 +183,14 @@ jobs: | 操作系统 | 架构 | 文件 | 说明 | |---------|------|------|------| - | 🪟 Windows | 通用 | `ToonFlow-*-win-setup.exe` | **推荐**,适用于大多数 Windows 电脑 | - | 🪟 Windows | x64 | `ToonFlow-*-win-x64-setup.exe` | 适用于 64 位 Windows 电脑 | + | 🪟 Windows | x64 | `ToonFlow-*-win-x64-setup.exe` | **推荐**,适用于大多数 Windows 电脑 | | 🪟 Windows | ARM64 | `ToonFlow-*-win-arm64-setup.exe` | 适用于 ARM 架构 Windows 设备 | | 🍎 macOS | Apple Silicon | `ToonFlow-*-mac-arm64.dmg` | 适用于 M1/M2/M3/M4 芯片的 Mac | | 🍎 macOS | Intel | `ToonFlow-*-mac-x64.dmg` | 适用于 Intel 芯片的 Mac | - | 🐧 Linux | x86_64 | `ToonFlow-*-linux-x86_64.AppImage` | 适用于大多数 Linux 发行版 | + | 🐧 Linux | x64 | `ToonFlow-*-linux-x86_64.AppImage` | 适用于大多数 Linux 发行版 | | 🐧 Linux | ARM64 | `ToonFlow-*-linux-arm64.AppImage` | 适用于 ARM 架构的 Linux 设备 | - > 💡 **不确定选哪个?** Windows 用户通常选 **win-setup.exe**;Mac 用户查看「关于本机」:M 系列芯片选 **arm64.dmg**,Intel 选 **x64.dmg**。 + > 💡 **不确定选哪个?** Windows 用户通常选 **win-x64-setup.exe**;Mac 用户查看「关于本机」:M 系列芯片选 **arm64.dmg**,Intel 选 **x64.dmg**。 ## 🚀 安装说明 diff --git a/src/types/database.d.ts b/src/types/database.d.ts index 74ef407..eb4d216 100644 --- a/src/types/database.d.ts +++ b/src/types/database.d.ts @@ -1,4 +1,4 @@ -// @db-hash 88c167ba73e2771e7b043419ca5089dd +// @db-hash 5364c2db0bf42b520761b813ce040489 //该文件由脚本自动生成,请勿手动修改 export interface memories { @@ -23,6 +23,7 @@ export interface o_agentDeploy { 'modelName'?: string | null; 'name'?: string | null; 'temperature'?: number | null; + 'topP'?: number | null; 'type'?: string | null; 'vendorId'?: string | null; } @@ -210,7 +211,6 @@ export interface o_user { 'password'?: string | null; } export interface o_vendorConfig { - 'code'?: string | null; 'enable'?: number | null; 'id'?: string; 'inputValues'?: string | null; diff --git a/src/utils/vendor.ts b/src/utils/vendor.ts index c574222..8f77e6c 100644 --- a/src/utils/vendor.ts +++ b/src/utils/vendor.ts @@ -25,6 +25,7 @@ export async function getModelList(id: string): Promise> { const code = getCode(id); const jsCode = transform(code, { transforms: ["typescript"] }).code; const vendorData = u.vm(jsCode); + if(!vendorData || !vendorData.vendor || !vendorData.vendor.models) return []; const combined = [...JSON.parse(JSON.stringify(vendorData.vendor.models)), ...JSON.parse(models?.models ?? "[]")]; const map = new Map(); for (const m of combined) {