...
Some checks reported errors
continuous-integration/drone/push Build encountered an error
continuous-integration/drone Build is failing

This commit is contained in:
2025-10-14 21:15:25 +08:00
parent 4210517cdd
commit 75ed2c6d12
4 changed files with 75 additions and 8 deletions

View File

@@ -1,5 +1,4 @@
import { EdgeTTS, ProsodyOptions } from "edge-tts-universal/browser";
import { env } from "process";
import { TextSpeakerArraySchema } from "./interfaces";
import z from "zod";
@@ -16,7 +15,7 @@ export function inspect(word: string) {
export function urlGoto(url: string) {
window.open(url, '_blank');
}
const API_KEY = env.ZHIPU_API_KEY;
const API_KEY = process.env.ZHIPU_API_KEY;
export async function callZhipuAPI(messages: { role: string; content: string; }[], model = 'glm-4.5-flash') {
const url = 'https://open.bigmodel.cn/api/paas/v4/chat/completions';