ai-chat-bot-interface 1.0.8 → 1.1.0

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/vite.config.js CHANGED
@@ -1,7 +1,24 @@
1
- import { defineConfig } from 'vite'
2
- import vue from '@vitejs/plugin-vue'
1
+ import { defineConfig } from 'vite';
2
+ import vue from '@vitejs/plugin-vue';
3
+ import path from 'path';
3
4
 
4
5
  // https://vite.dev/config/
5
6
  export default defineConfig({
6
7
  plugins: [vue()],
7
- })
8
+ resolve: {
9
+ alias: {
10
+ '@': path.resolve(__dirname, 'src'),
11
+ },
12
+ },
13
+ css: {
14
+ preprocessorOptions: {
15
+ less: {
16
+ charset: false,
17
+ additionalData: ['@import "./src/assets/styles/public.less";'],
18
+ },
19
+ },
20
+ },
21
+ server: {
22
+ host: '0.0.0.0',
23
+ },
24
+ });
@@ -1,43 +0,0 @@
1
- <script setup>
2
- import { ref } from 'vue'
3
-
4
- defineProps({
5
- msg: String,
6
- })
7
-
8
- const count = ref(0)
9
- </script>
10
-
11
- <template>
12
- <h1>{{ msg }}</h1>
13
-
14
- <div class="card">
15
- <button type="button" @click="count++">count is {{ count }}</button>
16
- <p>
17
- Edit
18
- <code>components/HelloWorld.vue</code> to test HMR
19
- </p>
20
- </div>
21
-
22
- <p>
23
- Check out
24
- <a href="https://vuejs.org/guide/quick-start.html#local" target="_blank"
25
- >create-vue</a
26
- >, the official Vue + Vite starter
27
- </p>
28
- <p>
29
- Learn more about IDE Support for Vue in the
30
- <a
31
- href="https://vuejs.org/guide/scaling-up/tooling.html#ide-support"
32
- target="_blank"
33
- >Vue Docs Scaling up Guide</a
34
- >.
35
- </p>
36
- <p class="read-the-docs">Click on the Vite and Vue logos to learn more</p>
37
- </template>
38
-
39
- <style scoped>
40
- .read-the-docs {
41
- color: #888;
42
- }
43
- </style>
package/src/mock.js DELETED
@@ -1,162 +0,0 @@
1
- export default [
2
- {
3
- "conversation_id": "7472317677525188619",
4
- "bot_id": "7468975471649194018",
5
- "role": "assistant",
6
- "content": "您好,我是Nutribite",
7
- "status": "ended",
8
- "extra": []
9
- },
10
- {
11
- conversation_id: '7472317677525188619',
12
- bot_id: '7468975471649194018',
13
- role: `user_555`,
14
- content: '配餐1600kcal,身高173,体重60kg,生成一天的套餐',
15
- status: 'ended',
16
- extra: [],
17
- },
18
- {
19
- "conversation_id": "7472317677525188619",
20
- "bot_id": "7468975471649194018",
21
- "role": "assistant",
22
- "content": "为你生成的一天1600kcal套餐如下:\n- **早餐(约450kcal)**:\n - 火腿汁烧豆腐,能量82kcal,蛋白质8.7g,脂肪3.1g,碳水化合物4.7g,<a href=\"https://prodstatic.weis1606.cn/api/diet/2024122015441833302.jpg?x-oss-process=image/resize,h_750\" target=\"_blank\">[点击查看]</a>\n - 五彩鸡块,能量156kcal,蛋白质16.5g,脂肪6.8g,碳水化合物7.2g,<a href=\"https://prodstatic.weis1606.cn/api/diet/2024120910310309135.jpg?x-oss-process=image/resize,h_750\" target=\"_blank\">[点击查看]</a>\n - 素炒云南小瓜,能量39kcal,蛋白质1.7g,脂肪1.3g,碳水化合物5g,<a href=\"https://prodstatic.weis1606.cn/api/diet/2025010318161342225.jpg?x-oss-process=image/resize,h_750\" target=\"_blank\">[点击查看]</a>\n - 牛肉焖饭,能量178kcal,蛋白质7.6g,脂肪2.4g,碳水化合物31.6g,<a href=\"https://prodstatic.weis1606.cn/api/diet/2025010318062384767.jpg?x-oss-process=image/resize,h_750\" target=\"_blank\">[点击查看]</a>\n- **午餐(约540kcal)**:\n - 粟米蒸水蛋,能量117kcal,蛋白质9.9g,脂肪6.6g,碳水化合物4.5g,<a href=\"https://prodstatic.weis1606.cn/api/diet/2025010318155462227.jpg?x-oss-process=image/resize,h_750\" target=\"_blank\">[点击查看]</a>\n - 豉油鸡扒,能量174kcal,蛋白质26.2g,脂肪6.8g,碳水化合物1.9g,<a href=\"https://prodstatic.weis1606.cn/api/diet/2025010318254931832.png?x-oss-process=image/resize,h_750\" target=\"_blank\">[点击查看]</a>\n - 清炒菠菜,能量49kcal,蛋白质4g,脂肪1.5g,碳水化合物4.9g,<a href=\"https://prodstatic.weis1606.cn/api/diet/2025010317554302323.jpg?x-oss-process=image/resize,h_750\" target=\"_blank\">[点击查看]</a>\n - 红米飯,能量182kcal,蛋白质3.4g,脂肪0.1g,碳水化合物41.9g,<a href=\"https://prodstatic.weis1606.cn/api/diet/2025010318002606875.jpg?x-oss-process=image/resize,h_750\" target=\"_blank\">[点击查看]</a>\n- **晚餐(约450kcal)**:\n - 番茄大虾面,能量430kcal,蛋白质26.3g,脂肪5.6g,碳水化合物68.5g,<a href=\"https://prodstatic.weis1606.cn/api/diet/2024092513400322999.jpg?x-oss-process=image/resize,h_750\" target=\"_blank\">[点击查看]</a> \n\n这份套餐营养较为均衡,包含了蛋白质、碳水化合物、脂肪、维生素和矿物质等多种营养成分,希望能满足你的需求。 为你生成的一天1600kcal套餐如下:\n- **早餐(约450kcal)**:\n - 火腿汁烧豆腐,能量82kcal,蛋白质8.7g,脂肪3.1g,碳水化合物4.7g,<a href=\"https://prodstatic.weis1606.cn/api/diet/2024122015441833302.jpg?x-oss-process=image/resize,h_750\" target=\"_blank\">[点击查看]</a>\n - 五彩鸡块,能量156kcal,蛋白质16.5g,脂肪6.8g,碳水化合物7.2g,<a href=\"https://prodstatic.weis1606.cn/api/diet/2024120910310309135.jpg?x-oss-process=image/resize,h_750\" target=\"_blank\">[点击查看]</a>\n - 素炒云南小瓜,能量39kcal,蛋白质1.7g,脂肪1.3g,碳水化合物5g,<a href=\"https://prodstatic.weis1606.cn/api/diet/2025010318161342225.jpg?x-oss-process=image/resize,h_750\" target=\"_blank\">[点击查看]</a>\n - 牛肉焖饭,能量178kcal,蛋白质7.6g,脂肪2.4g,碳水化合物31.6g,<a href=\"https://prodstatic.weis1606.cn/api/diet/2025010318062384767.jpg?x-oss-process=image/resize,h_750\" target=\"_blank\">[点击查看]</a>\n- **午餐(约540kcal)**:\n - 粟米蒸水蛋,能量117kcal,蛋白质9.9g,脂肪6.6g,碳水化合物4.5g,<a href=\"https://prodstatic.weis1606.cn/api/diet/2025010318155462227.jpg?x-oss-process=image/resize,h_750\" target=\"_blank\">[点击查看]</a>\n - 豉油鸡扒,能量174kcal,蛋白质26.2g,脂肪6.8g,碳水化合物1.9g,<a href=\"https://prodstatic.weis1606.cn/api/diet/2025010318254931832.png?x-oss-process=image/resize,h_750\" target=\"_blank\">[点击查看]</a>\n - 清炒菠菜,能量49kcal,蛋白质4g,脂肪1.5g,碳水化合物4.9g,<a href=\"https://prodstatic.weis1606.cn/api/diet/2025010317554302323.jpg?x-oss-process=image/resize,h_750\" target=\"_blank\">[点击查看]</a>\n - 红米飯,能量182kcal,蛋白质3.4g,脂肪0.1g,碳水化合物41.9g,<a href=\"https://prodstatic.weis1606.cn/api/diet/2025010318002606875.jpg?x-oss-process=image/resize,h_750\" target=\"_blank\">[点击查看]</a>\n- **晚餐(约450kcal)**:\n - 番茄大虾面,能量430kcal,蛋白质26.3g,脂肪5.6g,碳水化合物68.5g,<a href=\"https://prodstatic.weis1606.cn/api/diet/2024092513400322999.jpg?x-oss-process=image/resize,h_750\" target=\"_blank\">[点击查看]</a> \n\n这份套餐营养较为均衡,包含了蛋白质、碳水化合物、脂肪、维生素和矿物质等多种营养成分,希望能满足你的需求。 ",
23
- "status": "ended",
24
- "extra": [
25
- {
26
- "type": "tool_response",
27
- "content": {
28
- "code": 0,
29
- "skuList": [
30
- {
31
- "category": "早餐",
32
- "totalKcal": 450,
33
- "sequentialDays": 1,
34
- "list": [
35
- {
36
- "id": 3,
37
- "name": "五彩雞塊饭",
38
- "categoryList": [
39
- {
40
- "energy": 82,
41
- "skuname": "火腿汁燒豆腐",
42
- "skunameEn": "Braised Tofu in Ham Sauce",
43
- "primaryImgUrl": "https://prodstatic.weis1606.cn/api/diet/2024122015441833302.jpg?x-oss-process=image/resize,h_750",
44
- "protein": 8.7,
45
- "fat": 3.1,
46
- "carbonwater": 4.7
47
- },
48
- {
49
- "fat": 6.8,
50
- "carbonwater": 7.2,
51
- "energy": 156,
52
- "skuname": "五彩雞塊",
53
- "skunameEn": "Five-Colored Chicken Cubes",
54
- "primaryImgUrl": "https://prodstatic.weis1606.cn/api/diet/2024120910310309135.jpg?x-oss-process=image/resize,h_750",
55
- "protein": 16.5
56
- },
57
- {
58
- "skuname": "素炒雲南小瓜",
59
- "skunameEn": "Stir-Fried Yunnan Zucchini",
60
- "primaryImgUrl": "https://prodstatic.weis1606.cn/api/diet/2025010318161342225.jpg?x-oss-process=image/resize,h_750",
61
- "protein": 1.7,
62
- "fat": 1.3,
63
- "carbonwater": 5,
64
- "energy": 39
65
- },
66
- {
67
- "carbonwater": 31.6,
68
- "energy": 178,
69
- "skuname": "牛肉燜飯",
70
- "skunameEn": "Stewed Rice with Braised Beef",
71
- "primaryImgUrl": "https://prodstatic.weis1606.cn/api/diet/2025010318062384767.jpg?x-oss-process=image/resize,h_750",
72
- "protein": 7.6,
73
- "fat": 2.4
74
- }
75
- ]
76
- }
77
- ]
78
- },
79
- {
80
- "category": "午餐",
81
- "totalKcal": 540,
82
- "sequentialDays": 1,
83
- "list": [
84
- {
85
- "categoryList": [
86
- {
87
- "carbonwater": 4.5,
88
- "energy": 117,
89
- "skuname": "粟米蒸水蛋",
90
- "skunameEn": "Steamed Eggs with Corn",
91
- "primaryImgUrl": "https://prodstatic.weis1606.cn/api/diet/2025010318155462227.jpg?x-oss-process=image/resize,h_750",
92
- "protein": 9.9,
93
- "fat": 6.6
94
- },
95
- {
96
- "energy": 174,
97
- "skuname": "豉油雞扒",
98
- "skunameEn": "Grilled Chicken Steak with Soy Sauce",
99
- "primaryImgUrl": "https://prodstatic.weis1606.cn/api/diet/2025010318254931832.png?x-oss-process=image/resize,h_750",
100
- "protein": 26.2,
101
- "fat": 6.8,
102
- "carbonwater": 1.9
103
- },
104
- {
105
- "carbonwater": 4.9,
106
- "energy": 49,
107
- "skuname": "清炒菠菜",
108
- "skunameEn": "Stir-Fried Spinach",
109
- "primaryImgUrl": "https://prodstatic.weis1606.cn/api/diet/2025010317554302323.jpg?x-oss-process=image/resize,h_750",
110
- "protein": 4,
111
- "fat": 1.5
112
- },
113
- {
114
- "energy": 182,
115
- "skuname": "紅米飯",
116
- "skunameEn": "Red rice",
117
- "primaryImgUrl": "https://prodstatic.weis1606.cn/api/diet/2025010318002606875.jpg?x-oss-process=image/resize,h_750",
118
- "protein": 3.4,
119
- "fat": 0.1,
120
- "carbonwater": 41.9
121
- }
122
- ],
123
- "id": 4,
124
- "name": "豉油雞扒饭"
125
- }
126
- ]
127
- },
128
- {
129
- "sequentialDays": 1,
130
- "list": [
131
- {
132
- "id": 5,
133
- "name": "番茄大蝦麵",
134
- "categoryList": [
135
- {
136
- "energy": 430,
137
- "skuname": "番茄大蝦麵",
138
- "skunameEn": "Tomato Prawn Noodles",
139
- "primaryImgUrl": "https://prodstatic.weis1606.cn/api/diet/2024092513400322999.jpg?x-oss-process=image/resize,h_750",
140
- "protein": 26.3,
141
- "fat": 5.6,
142
- "carbonwater": 68.5
143
- }
144
- ]
145
- }
146
- ],
147
- "category": "晚餐",
148
- "totalKcal": 450
149
- },
150
- {
151
- "totalKcal": 360,
152
- "sequentialDays": 1,
153
- "list": [],
154
- "category": "加餐"
155
- }
156
- ],
157
- "msg": "success"
158
- }
159
- }
160
- ]
161
- }
162
- ]