Me being me, forgeting what var I setted up in the config, I'm an idiot.

This commit is contained in:
Howard Wu 2025-06-16 22:42:52 +08:00
parent 9367f369bc
commit f9fd4d8d68
2 changed files with 2 additions and 2 deletions

View File

@ -88,7 +88,7 @@ const aiSummary = async () => {
isGenerating.value = true;
try {
const req = await fetch(
`/api/ai/summarize/${slug}?lang=${String(locale.value)}`,
`/api/ai/summarize/${slug}?locale=${String(locale.value)}`,
);
const reader = req.body?.getReader();
const decoder = new TextDecoder();

View File

@ -38,7 +38,7 @@ export default defineEventHandler(async (event) => {
},
{
role: "system",
content: `You are a news summarizer. You will be given a news article and you will summarize it into a short paragraph. The user's current locale is ${locale.toString()} please use the correct language as the response.`,
content: `You are a news summarizer. You will be given a news article and you will summarize it into a short paragraph. The user's current locale is ${locale || "zh-tw"} please use the correct language as the response.`,
},
],
model: "gemma2-9b-it",