提升健壮性

This commit is contained in:
ACT丶流星雨 2026-04-18 15:47:18 +08:00
parent 9c2694f842
commit d52c608639
3 changed files with 6 additions and 6 deletions

View File

@ -183,15 +183,14 @@ jobs:
| 操作系统 | 架构 | 文件 | 说明 | | 操作系统 | 架构 | 文件 | 说明 |
|---------|------|------|------| |---------|------|------|------|
| 🪟 Windows | 通用 | `ToonFlow-*-win-setup.exe` | **推荐**,适用于大多数 Windows 电脑 | | 🪟 Windows | x64 | `ToonFlow-*-win-x64-setup.exe` | **推荐**,适用于大多数 Windows 电脑 |
| 🪟 Windows | x64 | `ToonFlow-*-win-x64-setup.exe` | 适用于 64 位 Windows 电脑 |
| 🪟 Windows | ARM64 | `ToonFlow-*-win-arm64-setup.exe` | 适用于 ARM 架构 Windows 设备 | | 🪟 Windows | ARM64 | `ToonFlow-*-win-arm64-setup.exe` | 适用于 ARM 架构 Windows 设备 |
| 🍎 macOS | Apple Silicon | `ToonFlow-*-mac-arm64.dmg` | 适用于 M1/M2/M3/M4 芯片的 Mac | | 🍎 macOS | Apple Silicon | `ToonFlow-*-mac-arm64.dmg` | 适用于 M1/M2/M3/M4 芯片的 Mac |
| 🍎 macOS | Intel | `ToonFlow-*-mac-x64.dmg` | 适用于 Intel 芯片的 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 设备 | | 🐧 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**。
## 🚀 安装说明 ## 🚀 安装说明

View File

@ -1,4 +1,4 @@
// @db-hash 88c167ba73e2771e7b043419ca5089dd // @db-hash 5364c2db0bf42b520761b813ce040489
//该文件由脚本自动生成,请勿手动修改 //该文件由脚本自动生成,请勿手动修改
export interface memories { export interface memories {
@ -23,6 +23,7 @@ export interface o_agentDeploy {
'modelName'?: string | null; 'modelName'?: string | null;
'name'?: string | null; 'name'?: string | null;
'temperature'?: number | null; 'temperature'?: number | null;
'topP'?: number | null;
'type'?: string | null; 'type'?: string | null;
'vendorId'?: string | null; 'vendorId'?: string | null;
} }
@ -210,7 +211,6 @@ export interface o_user {
'password'?: string | null; 'password'?: string | null;
} }
export interface o_vendorConfig { export interface o_vendorConfig {
'code'?: string | null;
'enable'?: number | null; 'enable'?: number | null;
'id'?: string; 'id'?: string;
'inputValues'?: string | null; 'inputValues'?: string | null;

View File

@ -25,6 +25,7 @@ export async function getModelList(id: string): Promise<Array<any>> {
const code = getCode(id); const code = getCode(id);
const jsCode = transform(code, { transforms: ["typescript"] }).code; const jsCode = transform(code, { transforms: ["typescript"] }).code;
const vendorData = u.vm(jsCode); 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 combined = [...JSON.parse(JSON.stringify(vendorData.vendor.models)), ...JSON.parse(models?.models ?? "[]")];
const map = new Map<string, any>(); const map = new Map<string, any>();
for (const m of combined) { for (const m of combined) {