@@ -77,6 +77,11 @@ const MainLayout = (props: LayoutProps) => {
7777 boolean | null
7878 > ( null ) ;
7979
80+ const [ useImages , setUseImages ] = createSignal <
81+ boolean | null
82+ > ( null ) ;
83+
84+
8085 const [ streamCompletionsFirst , setStreamCompletionsFirst ] = createSignal <
8186 boolean | null
8287 > ( null ) ;
@@ -221,6 +226,9 @@ const MainLayout = (props: LayoutProps) => {
221226 system_prompt : systemPrompt ( ) ,
222227 llm_options : {
223228 completion_first : streamCompletionsFirst ( ) ,
229+ image_options : {
230+ use_images : useImages ( )
231+ }
224232 } ,
225233 search_type : searchType ( ) ,
226234 } ) ,
@@ -339,6 +347,9 @@ const MainLayout = (props: LayoutProps) => {
339347 topic_id : props . selectedTopic ?. id ,
340348 llm_options : {
341349 completion_first : streamCompletionsFirst ( ) ,
350+ image_options : {
351+ use_images : useImages ( )
352+ }
342353 } ,
343354 } ) ,
344355 } )
@@ -449,6 +460,20 @@ const MainLayout = (props: LayoutProps) => {
449460 } }
450461 />
451462 </ div >
463+ < div class = "flex w-full items-center gap-x-2" >
464+ < label for = "concat_user_messages" >
465+ Use Images
466+ </ label >
467+ < input
468+ type = "checkbox"
469+ id = "concat_user_messages"
470+ class = "h-4 w-4 rounded-md border border-neutral-300 bg-neutral-100 p-1 dark:border-neutral-900 dark:bg-neutral-800"
471+ checked = { useImages ( ) ?? false }
472+ onChange = { ( e ) => {
473+ setUseImages ( e . target . checked ) ;
474+ } }
475+ />
476+ </ div >
452477 < div class = "flex w-full items-center gap-x-2" >
453478 < label for = "page_size" > Page Size:</ label >
454479 < input
0 commit comments