@shun-js/aibaiban-server 1.2.4 → 1.2.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shun-js/aibaiban-server",
3
- "version": "1.2.4",
3
+ "version": "1.2.5",
4
4
  "description": "aibaiban.com server",
5
5
  "keywords": [
6
6
  "ai aibaiban"
@@ -45,5 +45,5 @@
45
45
  "access": "public",
46
46
  "registry": "https://registry.npmjs.org/"
47
47
  },
48
- "gitHead": "d9255a37dbd25bf32a5c64b0230440eb34c6de2d"
48
+ "gitHead": "1f7c6983686ef774df53ad8aa2ec452ec439d8e9"
49
49
  }
@@ -196,7 +196,7 @@ exports.drawAgent = async (req, res) => {
196
196
  if (decision.action === 'reply') {
197
197
  res.streaming(`data: ${JSON.stringify({ type: 'message', content: decision.message })}\n\n`);
198
198
  } else if (decision.action === 'irrelevant') {
199
- res.streaming(`data: ${JSON.stringify({ type: 'message', content: prompts.FIXED_REPLY })}\n\n`);
199
+ res.streaming(`data: ${JSON.stringify({ type: 'welcome' })}\n\n`);
200
200
  } else if (decision.action === 'generate') {
201
201
  let elaboration = '';
202
202
 
@@ -104,12 +104,6 @@ flowchart TD
104
104
 
105
105
  只回复 Mermaid 代码,不要包含 \`\`\`mermaid 标记。`,
106
106
 
107
- /**
108
- * 非白板请求的固定回复
109
- */
110
- FIXED_REPLY:
111
- '你好!👋 我是 AI 白板助手,支持以下功能:\n\n📊 流程图 — 例如"画一个用户注册登录的流程图"\n🔄 时序图 — 例如"画一个用户下单支付的时序图"\n🏗️ 类图 — 例如"画一个电商系统的类图"\n🗄️ ER图 — 例如"画一个博客系统的ER图"\n🎨 自由绘图 — 例如"画一个红色的圆"、"画两个矩形用箭头连接"\n\n💡 试试直接输入你的需求吧!',
112
-
113
107
  /**
114
108
  * Canvas Function Calling 系统提示词
115
109
  */
package/views/index.html CHANGED
@@ -105,7 +105,7 @@
105
105
  <script
106
106
  type="module"
107
107
  crossorigin
108
- src="https://static-small.vincentqiao.com/aibaiban/static/index-Fo5F7gnm.js"
108
+ src="https://static-small.vincentqiao.com/aibaiban/static/index-DCJwq4XN.js"
109
109
  ></script>
110
110
  <link
111
111
  rel="modulepreload"