mirror of
https://github.com/hpware/news-analyze.git
synced 2025-06-23 07:41:02 +08:00
Oh, I think the translating system works now?
This commit is contained in:
parent
25760cf0d1
commit
378689da87
@ -82,7 +82,9 @@ 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=${String(locale)}`);
|
const req = await fetch(
|
||||||
|
`/api/ai/summarize/${slug}?lang=${String(locale.value)}`,
|
||||||
|
);
|
||||||
const reader = req.body?.getReader();
|
const reader = req.body?.getReader();
|
||||||
const decoder = new TextDecoder();
|
const decoder = new TextDecoder();
|
||||||
while (reader) {
|
while (reader) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user