Oh, I think the translating system works now?

This commit is contained in:
吳元皓 2025-06-10 21:19:00 +08:00
parent 25760cf0d1
commit 378689da87

View File

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