mirror of
https://github.com/hpware/news-analyze.git
synced 2025-06-22 23:31:01 +08:00
Me being me, forgeting what var I setted up in the config, I'm an idiot.
This commit is contained in:
parent
9367f369bc
commit
f9fd4d8d68
@ -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();
|
||||
|
@ -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",
|
||||
|
Loading…
x
Reference in New Issue
Block a user