...
This commit is contained in:
@@ -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';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user