refactor: 使用 openai SDK 替换 fetch 调用 LLM
All checks were successful
continuous-integration/drone/push Build is passing

- 安装 openai 包
- 重命名 zhipu.ts -> llm.ts
- 使用 OpenAI SDK 替代原生 fetch 实现
- 更新所有导入路径
This commit is contained in:
2026-03-10 11:58:27 +08:00
parent 0cb240791b
commit 6b9fba254d
8 changed files with 61 additions and 62 deletions

View File

@@ -8,7 +8,7 @@ import {
import { ValidateError } from "@/lib/errors";
import { createLogger } from "@/lib/logger";
import { serviceTranslateText } from "./translator-service";
import { getAnswer } from "@/lib/bigmodel/zhipu";
import { getAnswer } from "@/lib/bigmodel/llm";
const log = createLogger("translator-action");