edge func
This commit is contained in:
@@ -47,7 +47,7 @@ Deno.serve(async (req: Request) => {
|
||||
const completion = await glm.chat.completions.create({
|
||||
// GLM-4-32B-0414-128K: cheapest paid model at $0.1/$0.1 per 1M tokens.
|
||||
// Override via: supabase secrets set GLM_MODEL=<other-model>
|
||||
model: Deno.env.get("GLM_MODEL") ?? "GLM-4-32B-0414-128K",
|
||||
model: Deno.env.get("GLM_MODEL") ?? "GLM-4.5-Flash",
|
||||
messages: [
|
||||
{ role: "system", content: SYSTEM_PROMPT },
|
||||
{ role: "user", content: `Analyse this writing:\n\n${content.slice(0, 2000)}` },
|
||||
|
||||
Reference in New Issue
Block a user