Skip to content

Commit

Permalink
Merge pull request #52 from OVINC-CN/feat_icon
Browse files Browse the repository at this point in the history
feat(model): add icon display
  • Loading branch information
OrenZhang authored Dec 30, 2024
2 parents 2232603 + 9661542 commit 8c54165
Show file tree
Hide file tree
Showing 9 changed files with 55 additions and 26 deletions.
Binary file added public/extra-assets/img/anthropic.webp
Binary file not shown.
Binary file added public/extra-assets/img/deepseek.webp
Binary file not shown.
1 change: 1 addition & 0 deletions public/extra-assets/img/gemini.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions public/extra-assets/img/hunyuan.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions public/extra-assets/img/midjourney.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/extra-assets/img/openai.webp
Binary file not shown.
Binary file added public/extra-assets/img/qwen.webp
Binary file not shown.
1 change: 1 addition & 0 deletions public/extra-assets/img/zhipu.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
77 changes: 51 additions & 26 deletions src/components/ChatInput.vue
Original file line number Diff line number Diff line change
Expand Up @@ -709,33 +709,44 @@ defineExpose({reGenerate, promptForm});
:value="item.id"
:label="item.name"
>
<a-space
:size="2"
>
<span>
{{ item.name }}
</span>
<a-tag
v-if="item.config.support_system_define"
size="small"
color="orange"
>
{{ $t('SupportSystemDefine') }}
</a-tag>
<a-tag
v-if="item.config.support_vision"
size="small"
color="blue"
<a-space :size="8">
<a-space
class="model-select-model-detail-space"
:size="8"
>
{{ $t('SupportVision') }}
</a-tag>
<a-tag
v-if="item.config.is_vision"
size="small"
color="magenta"
>
{{ $t('SupportImageGenerate') }}
</a-tag>
<div>
<a-avatar
style="background: unset;"
:size="18"
:image-url="item.icon || '/favicon.ico'"
object-fit="cover"
/>
</div>
{{ item.name }}
</a-space>
<a-space :size="2">
<a-tag
v-if="item.config.support_system_define"
size="small"
color="orange"
>
{{ $t('SupportSystemDefine') }}
</a-tag>
<a-tag
v-if="item.config.support_vision"
size="small"
color="blue"
>
{{ $t('SupportVision') }}
</a-tag>
<a-tag
v-if="item.config.is_vision"
size="small"
color="magenta"
>
{{ $t('SupportImageGenerate') }}
</a-tag>
</a-space>
</a-space>
</a-option>
</a-select>
Expand Down Expand Up @@ -825,4 +836,18 @@ defineExpose({reGenerate, promptForm});
#chat-input-textarea {
box-shadow: var(--shadow-special);
}
.model-select-model-detail-space :deep(.arco-avatar-image) {
line-height: 100%;
}
.model-select-model-detail-space > :deep(.arco-space-item) > div {
display: flex;
height: 20px;
width: 20px;
align-items: center;
justify-content: center;
border-radius: 20px;
overflow: hidden;
}
</style>

0 comments on commit 8c54165

Please sign in to comment.