uery);
        } else if (this.selectedApi === 'deepseek') {
          translations = await this.translateDeepSeek(query);
        } else if (this.selectedApi === 'youdao') {
          translations = await this.translateYoudao(query);
        }

        // 检查翻译结果是否有效
        if (translations.length === 0 || translations.every(t => !t.trim())) {
          continue;
        } else {
          translationSucceeded = true;
        }

        // 回写翻译
        batch.forEach((item, index