mirror of
https://github.com/hpware/news-analyze.git
synced 2025-06-23 13:04:23 +00:00
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
Some checks are pending
Build and Push Latest Image / build-and-push (push) Waiting to run
This commit is contained in:
parent
9367f369bc
commit
f9fd4d8d68
2 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue