Skip to content

Commit cd9d920

Browse files
committed
ImageToText.mjs
Signed-off-by: Demis Bellot <demis.bellot@gmail.com>
1 parent bb32a75 commit cd9d920

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

AiServer/wwwroot/mjs/components/ImageToText.mjs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -276,9 +276,9 @@ export default {
276276
watch(() => routes.id, updated)
277277

278278
watch(() => [prefs.value.model], () => {
279-
request.value.prompt = prefs.value.model && !request.value.prompt
280-
? 'Describe this image'
281-
: ''
279+
if (prefs.value.model && !request.value.prompt) {
280+
request.value.prompt = 'Describe this image'
281+
}
282282
})
283283

284284
onMounted(async () => {

0 commit comments

Comments
 (0)