@@ -57,8 +57,6 @@ const currentChatModel = computed(() => nowSelectChatModel.value ?? currentChatH
5757
5858const currentNavIndexRef = ref <number >(- 1 )
5959
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-
6260let loadingms: MessageReactive
6361let allmsg: MessageReactive
6462let prevScrollTop: number
@@ -94,7 +92,7 @@ async function onConversation() {
9492 if (nowSelectChatModel .value && currentChatHistory .value )
9593 currentChatHistory .value .chatModel = nowSelectChatModel .value
9694
97- const uploadFileKeys = isVisionModel . value ? uploadFileKeysRef .value : []
95+ const uploadFileKeys = uploadFileKeysRef .value
9896 uploadFileKeysRef .value = []
9997
10098 controller = new AbortController ()
@@ -714,7 +712,7 @@ onUnmounted(() => {
714712 <footer :class =" footerClass" >
715713 <div class =" w-full max-w-screen-xl m-auto" >
716714 <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" >
718716 <NSpace >
719717 <img v-for =" (v, i) of uploadFileKeysRef" :key =" i" :src =" `/uploads/${v}`" class =" max-h-10" >
720718 <HoverButton @click =" handleDeleteUploadFile" >
@@ -728,7 +726,6 @@ onUnmounted(() => {
728726 <div class =" flex items-center space-x-2" >
729727 <div >
730728 <NUpload
731- :disabled =" !isVisionModel"
732729 action =" /api/upload-image"
733730 list-type =" image"
734731 class =" flex items-center justify-center h-10 transition hover:bg-neutral-100 dark:hover:bg-[#414755]"
0 commit comments