File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -328,12 +328,12 @@ function ChatSidebarInternal({ ...props }: ChatSideBarProps) {
328
328
if ( agentData ) {
329
329
setInputTools ( agentData . input_tools ) ;
330
330
setDisplayInputTools ( agentData . input_tools ) ;
331
- if ( agentData . input_tools === undefined ) {
331
+ if ( agentData . input_tools === undefined || agentData . input_tools . length === 0 ) {
332
332
setDisplayInputTools ( agentConfigurationOptions ?. input_tools ? Object . keys ( agentConfigurationOptions . input_tools ) : [ ] ) ;
333
333
}
334
334
setOutputModes ( agentData . output_modes ) ;
335
335
setDisplayOutputModes ( agentData . output_modes ) ;
336
- if ( agentData . output_modes === undefined ) {
336
+ if ( agentData . output_modes === undefined || agentData . output_modes . length === 0 ) {
337
337
setDisplayOutputModes ( agentConfigurationOptions ?. output_modes ? Object . keys ( agentConfigurationOptions . output_modes ) : [ ] ) ;
338
338
}
339
339
You can’t perform that action at this time.
0 commit comments