@@ -57,8 +57,6 @@ const currentChatModel = computed(() => nowSelectChatModel.value ?? currentChatH
57
57
58
58
const currentNavIndexRef = ref <number >(- 1 )
59
59
60
- const isVisionModel = computed (() => currentChatModel .value && (currentChatModel .value ?.includes (' vision' ) || [' gpt-4-turbo' , ' gpt-4-turbo-2024-04-09' ].includes (currentChatModel .value ) || currentChatModel .value ?.includes (' gpt-4o' )))
61
-
62
60
let loadingms: MessageReactive
63
61
let allmsg: MessageReactive
64
62
let prevScrollTop: number
@@ -94,7 +92,7 @@ async function onConversation() {
94
92
if (nowSelectChatModel .value && currentChatHistory .value )
95
93
currentChatHistory .value .chatModel = nowSelectChatModel .value
96
94
97
- const uploadFileKeys = isVisionModel . value ? uploadFileKeysRef .value : []
95
+ const uploadFileKeys = uploadFileKeysRef .value
98
96
uploadFileKeysRef .value = []
99
97
100
98
controller = new AbortController ()
@@ -714,7 +712,7 @@ onUnmounted(() => {
714
712
<footer :class =" footerClass" >
715
713
<div class =" w-full max-w-screen-xl m-auto" >
716
714
<NSpace vertical >
717
- <div v-if =" isVisionModel && uploadFileKeysRef.length > 0" class =" flex items-center space-x-2 h-10" >
715
+ <div v-if =" uploadFileKeysRef.length > 0" class =" flex items-center space-x-2 h-10" >
718
716
<NSpace >
719
717
<img v-for =" (v, i) of uploadFileKeysRef" :key =" i" :src =" `/uploads/${v}`" class =" max-h-10" >
720
718
<HoverButton @click =" handleDeleteUploadFile" >
@@ -728,7 +726,6 @@ onUnmounted(() => {
728
726
<div class =" flex items-center space-x-2" >
729
727
<div >
730
728
<NUpload
731
- :disabled =" !isVisionModel"
732
729
action =" /api/upload-image"
733
730
list-type =" image"
734
731
class =" flex items-center justify-center h-10 transition hover:bg-neutral-100 dark:hover:bg-[#414755]"
0 commit comments