mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-24 23:16:52 +00:00
集成WebWhiz
This commit is contained in:
17
components/Webwhiz.js
Normal file
17
components/Webwhiz.js
Normal 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}/>
|
||||
}
|
||||
Reference in New Issue
Block a user