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

@@ -1,4 +1,4 @@
import { getAnswer } from "../zhipu";
import { getAnswer } from "../llm";
import { parseAIGeneratedJSON } from "@/utils/json";
import { LanguageDetectionResult, TranslationLLMResponse } from "./types";
import { createLogger } from "@/lib/logger";