集成WebWhiz

This commit is contained in:
tangly1024.com
2023-08-03 15:15:41 +08:00
parent 5867cb6ce2
commit b498b2f175
5 changed files with 69 additions and 31 deletions

17
components/Webwhiz.js Normal file
View File

@@ -0,0 +1,17 @@
import BLOG from '@/blog.config'
import ExternalScript from './ExternalScript'
/**
* 一个开源ai组件
* @see https://github.com/webwhiz-ai/webwhiz
* @returns
*/
export default function WebWhiz() {
const props = {
id: '__webwhizSdk__',
src: 'https://www.unpkg.com/webwhiz@1.0.0/dist/sdk.js',
baseUrl: BLOG.WEB_WHIZ_BASE_URL,
chatbotId: BLOG.WEB_WHIZ_CHAT_BOT_ID
}
return <ExternalScript {...props}/>
}