File tree Expand file tree Collapse file tree 4 files changed +12
-12
lines changed Expand file tree Collapse file tree 4 files changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ RUN BACKEND_API_URL=$BACKEND_API_URL \
27
27
CHUNK_SIZE=$CHUNK_SIZE \
28
28
ENV=$ENV \
29
29
LARGE_FILE_SIZE=${LARGE_FILE_SIZE} \
30
+ CHAT_MODES=$CHAT_MODES \
30
31
yarn run build
31
32
32
33
# Step 2: Serve the application using Nginx
Original file line number Diff line number Diff line change @@ -301,16 +301,14 @@ const Chatbot: React.FC<ChatbotProps> = (props) => {
301
301
< Widget
302
302
header = ''
303
303
isElevated = { true }
304
- className = { `p-4 self-start ${ isFullScreen ? 'max-w-[55%]' : '' } ${
305
- chat . user === 'chatbot' ? 'n-bg-palette-neutral-bg-strong' : 'n-bg-palette-primary-bg-weak'
306
- } `}
304
+ className = { `p-4 self-start ${ isFullScreen ? 'max-w-[55%]' : '' } ${ chat . user === 'chatbot' ? 'n-bg-palette-neutral-bg-strong' : 'n-bg-palette-primary-bg-weak'
305
+ } `}
307
306
>
308
307
< div
309
- className = { `${
310
- listMessages [ index ] . isLoading && index === listMessages . length - 1 && chat . user == 'chatbot'
311
- ? 'loader'
312
- : ''
313
- } `}
308
+ className = { `${ listMessages [ index ] . isLoading && index === listMessages . length - 1 && chat . user == 'chatbot'
309
+ ? 'loader'
310
+ : ''
311
+ } `}
314
312
>
315
313
< ReactMarkdown > { chat . message } </ ReactMarkdown >
316
314
</ div >
@@ -397,15 +395,15 @@ const Chatbot: React.FC<ChatbotProps> = (props) => {
397
395
< div className = 'n-bg-palette-neutral-bg-weak flex gap-2.5 bottom-0 p-2.5 w-full' >
398
396
< form onSubmit = { handleSubmit } className = 'flex gap-2.5 w-full' >
399
397
< TextInput
400
- className = 'n-bg-palette-neutral-bg-default flex-grow-7 w-full '
398
+ className = 'n-bg-palette-neutral-bg-default flex-grow-7 w-[70%] '
401
399
aria-label = 'chatbot-input'
402
400
type = 'text'
403
401
value = { inputMessage }
404
402
fluid
405
403
onChange = { handleInputChange }
406
404
/>
407
- < Button type = 'submit' disabled = { loading } >
408
- Ask
405
+ < Button type = 'submit' disabled = { loading } size = 'medium' >
406
+ { buttonCaptions . ask } { selectedRows != undefined && selectedRows . length > 0 && `( ${ selectedRows . length } )` }
409
407
</ Button >
410
408
</ form >
411
409
</ div >
Original file line number Diff line number Diff line change @@ -278,4 +278,4 @@ const DropZone: FunctionComponent = () => {
278
278
) ;
279
279
} ;
280
280
281
- export default DropZone ;
281
+ export default DropZone ;
Original file line number Diff line number Diff line change @@ -154,6 +154,7 @@ export const buttonCaptions = {
154
154
details : 'Details' ,
155
155
continueSettings : 'Continue' ,
156
156
clearSettings : 'Clear Settings' ,
157
+ ask :'Ask'
157
158
} ;
158
159
159
160
export const taskParam : string [ ] = [ 'update_similarity_graph' , 'create_fulltext_index' , 'create_entity_embedding' ] ;
You can’t perform that action at this time.
0 commit comments