mirror of
https://github.com/hpware/news-analyze.git
synced 2025-06-23 15:51:01 +08:00
Ummm Fix some stuff.
This commit is contained in:
parent
a0a5cb833e
commit
a232d9bc2b
@ -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) {
|
||||
|
@ -34,7 +34,7 @@ CREATE TABLE IF NOT EXISTS chat_history (
|
||||
|
||||
const createUserOtherData = await sql`
|
||||
create table if not exists user_other_data (
|
||||
user_id text primary key ,
|
||||
user_id text primary key,
|
||||
user text not null unique,
|
||||
groq_api_key text,
|
||||
starred_news JSON not null,
|
||||
|
@ -17,4 +17,7 @@ export default defineEventHandler(async (event) => {
|
||||
error: "ERR_NOT_ALLOWED",
|
||||
};
|
||||
}
|
||||
if (request_change === "groq_api_key") {
|
||||
const updateListing = await sql``;
|
||||
}
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user