mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-05-24 22:50:22 +09:00
chore: small changes
This commit is contained in:
parent
1087df6b37
commit
d725b342a8
10
README.md
10
README.md
@ -68,7 +68,7 @@
|
|||||||
- 环境变量:`BING_SEARCH_API_KEY`
|
- 环境变量:`BING_SEARCH_API_KEY`
|
||||||
- 申请地址:[Web Search API | Microsoft Bing](https://www.microsoft.com/en-us/bing/apis/bing-web-search-api)
|
- 申请地址:[Web Search API | Microsoft Bing](https://www.microsoft.com/en-us/bing/apis/bing-web-search-api)
|
||||||
|
|
||||||
- ChooseSearchEngine
|
- ChooseSearchEngine(作者:[hang666](https://github.com/hang666))
|
||||||
|
|
||||||
- 环境变量:`CHOOSE_SEARCH_ENGINE`
|
- 环境变量:`CHOOSE_SEARCH_ENGINE`
|
||||||
|
|
||||||
@ -107,6 +107,14 @@
|
|||||||
- 使用本插件需要一定的专业知识,Stable Diffusion 本身的相关问题不在本项目的解答范围内,如果您确定要使用本插件请参考 [Stable Diffusion 插件配置指南](./docs/stable-diffusion-plugin-cn.md) 文档进行配置
|
- 使用本插件需要一定的专业知识,Stable Diffusion 本身的相关问题不在本项目的解答范围内,如果您确定要使用本插件请参考 [Stable Diffusion 插件配置指南](./docs/stable-diffusion-plugin-cn.md) 文档进行配置
|
||||||
- StableDiffusion 插件需要配置对象存储服务,请参考 [对象存储服务配置指南](./docs/s3-oss.md) 配置
|
- StableDiffusion 插件需要配置对象存储服务,请参考 [对象存储服务配置指南](./docs/s3-oss.md) 配置
|
||||||
- Arxiv
|
- Arxiv
|
||||||
|
- B站相关插件(作者:[fred913](https://github.com/fred913))
|
||||||
|
- bilibili 视频信息获取(建议使用以下插件时同时启用本插件)
|
||||||
|
- bilibili 视频搜索
|
||||||
|
- 需配置环境变量 `BILIBILI_COOKIES`
|
||||||
|
- bilibili 听歌识曲
|
||||||
|
- 需提前部署 [bilivid-metaprocess-server](https://github.com/fred913/bilivid-metaprocess-server) 并配置环境变量 `BILIVID_METAPROCESS_SERVER_ADDRESS`
|
||||||
|
- bilibili视频总结
|
||||||
|
- 需配置环境变量 `BILIBILI_COOKIES`
|
||||||
|
|
||||||
- 支持 gemini-pro, gemini-pro-vision 模型
|
- 支持 gemini-pro, gemini-pro-vision 模型
|
||||||
- 以下功能目前还不支持
|
- 以下功能目前还不支持
|
||||||
|
@ -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();
|
const vidinfo = await vidinfo_resp.json();
|
||||||
|
console.log("[BilibiliVideoConclusionTool]", vidinfo);
|
||||||
const mid = vidinfo.data.owner.mid;
|
const mid = vidinfo.data.owner.mid;
|
||||||
const cid = vidinfo.data.pages[pid - 1].cid;
|
const cid = vidinfo.data.pages[pid - 1].cid;
|
||||||
|
|
||||||
@ -99,6 +100,7 @@ export class BilibiliVideoConclusionTool
|
|||||||
);
|
);
|
||||||
|
|
||||||
const data = await resp.json();
|
const data = await resp.json();
|
||||||
|
console.log("[BilibiliVideoConclusionTool]", data);
|
||||||
const model_result = data.data.model_result;
|
const model_result = data.data.model_result;
|
||||||
switch (model_result.result_type) {
|
switch (model_result.result_type) {
|
||||||
case 0:
|
case 0:
|
||||||
|
@ -68,7 +68,7 @@ export class BilibiliVideoSearchTool extends Tool implements RequestTool {
|
|||||||
});
|
});
|
||||||
|
|
||||||
let rawData: { [key: string]: any } = await resp.json();
|
let rawData: { [key: string]: any } = await resp.json();
|
||||||
// console.log(rawData);
|
console.log("[BilibiliVideoSearchTool]", rawData);
|
||||||
let data: Array<{
|
let data: Array<{
|
||||||
title: string;
|
title: string;
|
||||||
url: string;
|
url: string;
|
||||||
@ -99,7 +99,7 @@ export class BilibiliVideoSearchTool extends Tool implements RequestTool {
|
|||||||
durationSeconds,
|
durationSeconds,
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
console.log("[BilibiliVideoSearchTool]", data);
|
||||||
return data;
|
return data;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -32,46 +32,6 @@ export const CN_PLUGINS: BuiltinPlugin[] = [
|
|||||||
enable: true,
|
enable: true,
|
||||||
onlyNodeRuntime: false,
|
onlyNodeRuntime: false,
|
||||||
},
|
},
|
||||||
{
|
|
||||||
name: "Bilibili视频信息获取",
|
|
||||||
toolName: "bilibili_video_info",
|
|
||||||
lang: "cn",
|
|
||||||
description: "通过Bilibili视频ID获取视频信息,如标题、简介等。",
|
|
||||||
builtin: true,
|
|
||||||
createdAt: 1712394126000,
|
|
||||||
enable: true,
|
|
||||||
onlyNodeRuntime: false,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: "Bilibili视频搜索",
|
|
||||||
toolName: "bilibili_video_search",
|
|
||||||
lang: "cn",
|
|
||||||
description: "通过关键词搜索Bilibili视频,并获取视频信息。",
|
|
||||||
builtin: true,
|
|
||||||
createdAt: 1712394126000,
|
|
||||||
enable: true,
|
|
||||||
onlyNodeRuntime: false,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: "Bilibili听歌识曲",
|
|
||||||
toolName: "bilibili_music_recognition",
|
|
||||||
lang: "cn",
|
|
||||||
description: "通过Bilibili视频ID进行听歌识曲识别。",
|
|
||||||
builtin: true,
|
|
||||||
createdAt: 1712394126000,
|
|
||||||
enable: true,
|
|
||||||
onlyNodeRuntime: false,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: "Bilibili视频总结",
|
|
||||||
toolName: "bilibili_video_conclusion",
|
|
||||||
lang: "cn",
|
|
||||||
description: "通过Bilibili视频ID进行视频总结。",
|
|
||||||
builtin: true,
|
|
||||||
createdAt: 1712394126000,
|
|
||||||
enable: true,
|
|
||||||
onlyNodeRuntime: false,
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
name: "维基百科",
|
name: "维基百科",
|
||||||
toolName: "WikipediaQueryRun",
|
toolName: "WikipediaQueryRun",
|
||||||
@ -135,4 +95,46 @@ export const CN_PLUGINS: BuiltinPlugin[] = [
|
|||||||
enable: false,
|
enable: false,
|
||||||
onlyNodeRuntime: false,
|
onlyNodeRuntime: false,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
name: "bilibili视频信息获取",
|
||||||
|
toolName: "bilibili_video_info",
|
||||||
|
lang: "cn",
|
||||||
|
description: "通过bilibili视频ID获取视频信息,如标题、简介等。",
|
||||||
|
builtin: true,
|
||||||
|
createdAt: 1712394126000,
|
||||||
|
enable: false,
|
||||||
|
onlyNodeRuntime: false,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: "bilibili视频搜索",
|
||||||
|
toolName: "bilibili_video_search",
|
||||||
|
lang: "cn",
|
||||||
|
description: "通过关键词搜索bilibili视频,并获取视频信息。",
|
||||||
|
builtin: true,
|
||||||
|
createdAt: 1712394126000,
|
||||||
|
enable: false,
|
||||||
|
onlyNodeRuntime: false,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: "bilibili听歌识曲",
|
||||||
|
toolName: "bilibili_music_recognition",
|
||||||
|
lang: "cn",
|
||||||
|
description:
|
||||||
|
"通过bilibili视频ID进行听歌识曲识别。(建议同时启用`bilibili视频信息获取`插件保证功能完整)",
|
||||||
|
builtin: true,
|
||||||
|
createdAt: 1712394126000,
|
||||||
|
enable: false,
|
||||||
|
onlyNodeRuntime: false,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: "bilibili视频总结",
|
||||||
|
toolName: "bilibili_video_conclusion",
|
||||||
|
lang: "cn",
|
||||||
|
description:
|
||||||
|
"通过bilibili视频ID进行视频总结。(建议同时启用`bilibili视频信息获取`插件保证功能完整)",
|
||||||
|
builtin: true,
|
||||||
|
createdAt: 1712394126000,
|
||||||
|
enable: false,
|
||||||
|
onlyNodeRuntime: false,
|
||||||
|
},
|
||||||
];
|
];
|
||||||
|
Loading…
Reference in New Issue
Block a user