mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-11-13 12:43:42 +08:00
chore: small changes
This commit is contained in:
@@ -79,12 +79,3 @@ export async function getWbiKeys(): Promise<{
|
||||
),
|
||||
};
|
||||
}
|
||||
|
||||
// async function main(): Promise<void> {
|
||||
// const web_keys: { img_key: string, sub_key: string } = await getWbiKeys()
|
||||
// const params: Record<string, string | number> = { foo: '114', bar: '514', baz: 1919810 }
|
||||
// const img_key: string = web_keys.img_key
|
||||
// const sub_key: string = web_keys.sub_key
|
||||
// const query: string = encWbi(params, img_key, sub_key)
|
||||
// console.log(query)
|
||||
// }
|
||||
|
||||
@@ -76,6 +76,7 @@ export class BilibiliVideoConclusionTool
|
||||
);
|
||||
|
||||
const vidinfo = await vidinfo_resp.json();
|
||||
console.log("[BilibiliVideoConclusionTool]", vidinfo);
|
||||
const mid = vidinfo.data.owner.mid;
|
||||
const cid = vidinfo.data.pages[pid - 1].cid;
|
||||
|
||||
@@ -99,6 +100,7 @@ export class BilibiliVideoConclusionTool
|
||||
);
|
||||
|
||||
const data = await resp.json();
|
||||
console.log("[BilibiliVideoConclusionTool]", data);
|
||||
const model_result = data.data.model_result;
|
||||
switch (model_result.result_type) {
|
||||
case 0:
|
||||
|
||||
@@ -68,7 +68,7 @@ export class BilibiliVideoSearchTool extends Tool implements RequestTool {
|
||||
});
|
||||
|
||||
let rawData: { [key: string]: any } = await resp.json();
|
||||
// console.log(rawData);
|
||||
console.log("[BilibiliVideoSearchTool]", rawData);
|
||||
let data: Array<{
|
||||
title: string;
|
||||
url: string;
|
||||
@@ -99,7 +99,7 @@ export class BilibiliVideoSearchTool extends Tool implements RequestTool {
|
||||
durationSeconds,
|
||||
});
|
||||
});
|
||||
|
||||
console.log("[BilibiliVideoSearchTool]", data);
|
||||
return data;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user