File tree 1 file changed +13
-11
lines changed
ui/src/components/ai-chat
1 file changed +13
-11
lines changed Original file line number Diff line number Diff line change 387
387
<span class =" color-secondary mr-4" >{{ history.role }}:</span >
388
388
389
389
<span v-if =" Array.isArray(history.content)" >
390
- <template v-for =" (h , i ) in history .content " :key =" i " >
391
- <el-image
392
- v-if =" h.type === 'image_url'"
393
- :src =" h.image_url.url"
394
- alt =" "
395
- fit =" cover"
396
- style =" width : 40px ; height : 40px ; display : block "
397
- class =" border-r-4"
398
- />
399
- <span v-else >{{ h.text }}</span >
400
- </template >
390
+ <el-space wrap >
391
+ <template v-for =" (h , i ) in history .content " :key =" i " >
392
+ <el-image
393
+ v-if =" h.type === 'image_url'"
394
+ :src =" h.image_url.url"
395
+ alt =" "
396
+ fit =" cover"
397
+ style =" width : 40px ; height : 40px ; display : block "
398
+ class =" border-r-4"
399
+ />
400
+ <span v-else >{{ h.text }}</span >
401
+ </template >
402
+ </el-space >
401
403
</span >
402
404
403
405
<span v-else >{{ history.content }}</span >
You can’t perform that action at this time.
0 commit comments