Me being me, forgeting what var I setted up in the config, I'm an idiot.
Some checks are pending
Build and Push Latest Image / build-and-push (push) Waiting to run

This commit is contained in:
yuanhau 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; isGenerating.value = true;
try { try {
const req = await fetch( 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 reader = req.body?.getReader();
const decoder = new TextDecoder(); const decoder = new TextDecoder();

View file

@ -38,7 +38,7 @@ export default defineEventHandler(async (event) => {
}, },
{ {
role: "system", 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", model: "gemma2-9b-it",