接入 dify
This commit is contained in:
@@ -31,5 +31,33 @@
|
|||||||
<body>
|
<body>
|
||||||
<div id="app"></div>
|
<div id="app"></div>
|
||||||
<script type="module" src="/src/main.ts"></script>
|
<script type="module" src="/src/main.ts"></script>
|
||||||
|
<script>
|
||||||
|
window.difyChatbotConfig = {
|
||||||
|
token: 'Wwun4nxbbn7jvkZj',
|
||||||
|
baseUrl: 'http://dify.ywwuzi.cn',
|
||||||
|
systemVariables: {
|
||||||
|
// user_id: 'YOU CAN DEFINE USER ID HERE',
|
||||||
|
// conversation_id: 'YOU CAN DEFINE CONVERSATION ID HERE, IT MUST BE A VALID UUID',
|
||||||
|
},
|
||||||
|
userVariables: {
|
||||||
|
// avatar_url: 'YOU CAN DEFINE USER AVATAR URL HERE',
|
||||||
|
// name: 'YOU CAN DEFINE USER NAME HERE',
|
||||||
|
},
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
<script
|
||||||
|
src="http://dify.ywwuzi.cn/embed.min.js"
|
||||||
|
id="Wwun4nxbbn7jvkZj"
|
||||||
|
defer>
|
||||||
|
</script>
|
||||||
|
<style>
|
||||||
|
#dify-chatbot-bubble-button {
|
||||||
|
background-color: #1C64F2 !important;
|
||||||
|
}
|
||||||
|
#dify-chatbot-bubble-window {
|
||||||
|
width: 24rem !important;
|
||||||
|
height: 40rem !important;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
Reference in New Issue
Block a user