add 'type' field for ChatModel, support Chat and Image model

This commit is contained in:
RockYang
2024-12-25 18:57:18 +08:00
parent cbf06eea24
commit acee2d9d81
35 changed files with 766 additions and 698 deletions

View File

@@ -5,7 +5,7 @@
.chat-page {
height: 100%;
::v-deep (.el-message-box__message){
:deep (.el-message-box__message){
font-size: 18px !important
}
.newChat{

View File

@@ -54,7 +54,7 @@
width: 306px;
margin-right: 9px;
}
::v-deep(.el-tabs__item.is-active, .el-tabs__item:hover){
:deep(.el-tabs__item.is-active, .el-tabs__item:hover){
color: var(--common-text-color) !important;
}
.el-tabs__item{

View File

@@ -4,8 +4,13 @@
width 100%
display flex
flex-flow row
.image-slot {
color var(--theme-text-color-primary)
}
}
.job-item {
margin-right 10px
width 200px
@@ -31,7 +36,7 @@
span {
font-size 20px
color #ffffff
color var(--theme-text-color-primary)
}
}
}

View File

@@ -22,7 +22,7 @@
--border-active:rgba(255, 255, 255, 0.1);
--card-bg:#252d58;
--chat-bg:#1f243f
--chat-wel-bg:#2d2f388a;
--chat-wel-bg:#2d2f38;
--card-bg-table: rgba(17, 28, 68, 1);
--theme-bg:rgb(13, 20, 53);
--theme-bg-color: rgb(13, 20, 53);
@@ -76,4 +76,7 @@
//
--el-mask-color: rgba(255, 255, 255, 0.5);
--van-toast-background: rgba(255, 255, 255, 0.3);
--code-bg-color: #424242;
--code-text-color: #fff;
}

View File

@@ -45,6 +45,9 @@
//
--el-mask-color: rgba(100, 100, 100, 0.2);
// code
--code-bg-color: #ececec;
--code-text-color: var(--el-color-primary);
}