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() {
37
37
>
38
38
< Header />
39
39
< Outlet />
40
- < ServerInfo />
41
40
</ main >
42
41
{
43
42
< SettingDialog
@@ -50,37 +49,4 @@ function AppLayout() {
50
49
) ;
51
50
}
52
51
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
-
86
52
export default App ;
Original file line number Diff line number Diff line change @@ -296,7 +296,7 @@ function ChatInput({
296
296
role = "group"
297
297
aria-label = "Chat input"
298
298
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 ,
300
300
'opacity-50' : isDrag , // simply visual feedback to inform user that the file will be accepted
301
301
} ) }
302
302
>
@@ -423,6 +423,40 @@ function ChatInput({
423
423
</ div >
424
424
) }
425
425
</ 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 >
426
460
</ div >
427
461
) ;
428
462
}
You can’t perform that action at this time.
0 commit comments