mirror of
https://github.com/hpware/news-analyze.git
synced 2025-06-24 05:24:23 +00:00
Oh, I think the translating system works now?
Some checks are pending
Build and Push Docker Image / build-and-push (push) Waiting to run
Some checks are pending
Build and Push Docker Image / build-and-push (push) Waiting to run
This commit is contained in:
parent
25760cf0d1
commit
378689da87
1 changed files with 3 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue