mirror of
https://github.com/hpware/news-analyze.git
synced 2025-06-23 21:14:23 +00:00
Ummm Fix some stuff.
This commit is contained in:
parent
a0a5cb833e
commit
a232d9bc2b
3 changed files with 5 additions and 2 deletions
|
@ -64,7 +64,7 @@ const aiSummary = async () => {
|
|||
activateAiSummary.value = true;
|
||||
isGenerating.value = true;
|
||||
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 decoder = new TextDecoder();
|
||||
while (reader) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue