File tree Expand file tree Collapse file tree 2 files changed +35
-35
lines changed Expand file tree Collapse file tree 2 files changed +35
-35
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,6 @@ function AppLayout() {
3737 >
3838 < Header />
3939 < Outlet />
40- < ServerInfo />
4140 </ main >
4241 {
4342 < SettingDialog
@@ -50,37 +49,4 @@ function AppLayout() {
5049 ) ;
5150}
5251
53- function ServerInfo ( ) {
54- const { serverProps } = useAppContext ( ) ;
55- const modalities = [ ] ;
56- if ( serverProps ?. modalities ?. audio ) {
57- modalities . push ( 'audio' ) ;
58- }
59- if ( serverProps ?. modalities ?. vision ) {
60- modalities . push ( 'vision' ) ;
61- }
62- return (
63- < div
64- className = "sticky bottom-0 w-full pb-1 text-base-content/70 text-xs text-center"
65- tabIndex = { 0 }
66- aria-description = "Server information"
67- >
68- < span >
69- < b > Llama.cpp</ b > { serverProps ?. build_info }
70- </ span >
71-
72- < span className = "sm:ml-2" >
73- { modalities . length > 0 ? (
74- < >
75- < br className = "sm:hidden" />
76- < b > Supported modalities:</ b > { modalities . join ( ', ' ) }
77- </ >
78- ) : (
79- ''
80- ) }
81- </ span >
82- </ div >
83- ) ;
84- }
85-
8652export default App ;
Original file line number Diff line number Diff line change @@ -296,7 +296,7 @@ function ChatInput({
296296 role = "group"
297297 aria-label = "Chat input"
298298 className = { classNames ( {
299- 'flex items-end pt-8 pb-1 sticky bottom-0 bg-base-100' : true ,
299+ 'flex flex-col items-end pt-8 sticky bottom-0 bg-base-100' : true ,
300300 'opacity-50' : isDrag , // simply visual feedback to inform user that the file will be accepted
301301 } ) }
302302 >
@@ -423,6 +423,40 @@ function ChatInput({
423423 </ div >
424424 ) }
425425 </ Dropzone >
426+ < ServerInfo />
427+ </ div >
428+ ) ;
429+ }
430+
431+ function ServerInfo ( ) {
432+ const { serverProps } = useAppContext ( ) ;
433+ const modalities = [ ] ;
434+ if ( serverProps ?. modalities ?. audio ) {
435+ modalities . push ( 'audio' ) ;
436+ }
437+ if ( serverProps ?. modalities ?. vision ) {
438+ modalities . push ( 'vision' ) ;
439+ }
440+ return (
441+ < div
442+ className = "sticky bottom-0 w-full pt-1 pb-1 text-base-content/70 text-xs text-center"
443+ tabIndex = { 0 }
444+ aria-description = "Server information"
445+ >
446+ < span >
447+ < b > Llama.cpp</ b > { serverProps ?. build_info }
448+ </ span >
449+
450+ < span className = "sm:ml-2" >
451+ { modalities . length > 0 ? (
452+ < >
453+ < br className = "sm:hidden" />
454+ < b > Supported modalities:</ b > { modalities . join ( ', ' ) }
455+ </ >
456+ ) : (
457+ ''
458+ ) }
459+ </ span >
426460 </ div >
427461 ) ;
428462}
You can’t perform that action at this time.
0 commit comments