Ummm Fix some stuff.

This commit is contained in:
yuanhau 2025-06-07 10:55:00 +08:00
parent a0a5cb833e
commit a232d9bc2b
3 changed files with 5 additions and 2 deletions

View file

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

View file

@ -17,4 +17,7 @@ export default defineEventHandler(async (event) => {
error: "ERR_NOT_ALLOWED", error: "ERR_NOT_ALLOWED",
}; };
} }
if (request_change === "groq_api_key") {
const updateListing = await sql``;
}
}); });