From 701903d1e07c3a6651e604e090537bfe4c927c42 Mon Sep 17 00:00:00 2001 From: Phantom Date: Thu, 23 Oct 2025 18:21:00 +0800 Subject: [PATCH] ci: update OpenAI dependency in i18n workflow (#10914) * ci: update OpenAI dependency in i18n workflow Use @cherrystudio/openai instead of openai package for translation dependencies * ci(workflows): allow workflow dispatch for auto-i18n job (cherry picked from commit 53881c58245d9d9b374716d3a14288751166c103) --- .github/workflows/auto-i18n.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/auto-i18n.yml b/.github/workflows/auto-i18n.yml index 204d8ac437..e45a65ce08 100644 --- a/.github/workflows/auto-i18n.yml +++ b/.github/workflows/auto-i18n.yml @@ -13,7 +13,7 @@ on: jobs: auto-i18n: runs-on: ubuntu-latest - if: github.event.pull_request.head.repo.full_name == 'CherryHQ/cherry-studio' + if: github.event_name == 'workflow_dispatch' || github.event.pull_request.head.repo.full_name == 'CherryHQ/cherry-studio' name: Auto I18N permissions: contents: write @@ -35,7 +35,7 @@ jobs: # 在临时目录安装依赖 mkdir -p /tmp/translation-deps cd /tmp/translation-deps - echo '{"dependencies": {"openai": "^5.12.2", "cli-progress": "^3.12.0", "tsx": "^4.20.3", "@biomejs/biome": "2.2.4"}}' > package.json + echo '{"dependencies": {"@cherrystudio/openai": "^6.5.0", "cli-progress": "^3.12.0", "tsx": "^4.20.3", "@biomejs/biome": "2.2.4"}}' > package.json npm install --no-package-lock # 设置 NODE_PATH 让项目能找到这些依赖