File tree Expand file tree Collapse file tree 6 files changed +68
-8
lines changed Expand file tree Collapse file tree 6 files changed +68
-8
lines changed Original file line number Diff line number Diff line change @@ -321,7 +321,7 @@ export const ChatMessageArea: React.FC<ChatMessageAreaProps> = ({
321
321
return (
322
322
< div className = "flex flex-col w-full h-full max-w-full" >
323
323
{ /* Messages area */ }
324
- < div className = "flex-1 p-4 space-y-4 overflow-y-auto" >
324
+ < div className = "p-4 space-y-4 overflow-y-auto" >
325
325
{ getMessagesList ( ) . map ( ( message ) => {
326
326
if ( message . role === 'system' ) return null ;
327
327
Original file line number Diff line number Diff line change @@ -56,19 +56,19 @@ const MainLayout: React.FC<MainLayoutProps> = ({
56
56
onOpenSettingsDialog = { handleOpenSettingsDialog }
57
57
/>
58
58
59
- < div className = "flex flex-1 w -full overflow-hidden" >
59
+ < div className = "flex w-full h -full overflow-hidden" >
60
60
< Sidebar
61
61
activePage = { activePage }
62
62
onChangePage = { handlePageChange }
63
63
showSettings = { showSettings }
64
64
setShowSettings = { setShowSettings }
65
65
/>
66
66
67
- < div className = "flex flex-col flex-1 w-[calc(100%-68px)] bg-main-background-color" >
67
+ < div className = "flex flex-col h-full w-[calc(100%-68px)] bg-main-background-color" >
68
68
{ /* Main content */ }
69
69
70
- < div className = 'relative flex flex-col flex-1 w -full overflow-hidden major-area-border major-area-bg-color' >
71
- < div className = "flex-1 w -full overflow-auto" >
70
+ < div className = 'relative flex flex-col w-full h -full overflow-hidden major-area-border major-area-bg-color' >
71
+ < div className = "w-full h -full overflow-auto" >
72
72
{ children }
73
73
</ div >
74
74
Original file line number Diff line number Diff line change @@ -372,7 +372,7 @@ export const ChatPage = () => {
372
372
< div className = "flex flex-col w-full h-full bg-white" >
373
373
374
374
{ /* Main content with chat history and messages */ }
375
- < div className = "flex flex-1 w-full overflow-hidden" >
375
+ < div className = "flex w-full overflow-hidden" >
376
376
< ChatHistoryList
377
377
conversations = { conversations }
378
378
folders = { folders }
@@ -387,7 +387,7 @@ export const ChatPage = () => {
387
387
onMoveConversation = { handleMoveConversation }
388
388
/>
389
389
390
- < div className = "flex flex-col flex-1 w-full min-w-0 overflow-hidden" >
390
+ < div className = "flex flex-col w-full min-w-0 overflow-hidden" >
391
391
{ isApiKeyMissing && (
392
392
< div className = "p-2 text-sm text-center text-yellow-800 bg-yellow-100" >
393
393
Please set your API key for the selected provider in the settings.
Original file line number Diff line number Diff line change @@ -51,4 +51,17 @@ export interface ConversationFolder{
51
51
createdAt : Date ;
52
52
updatedAt : Date ;
53
53
colorFlag : string ;
54
- }
54
+ }
55
+
56
+ export interface ImageGenerationResult {
57
+ id : string ;
58
+ prompt : string ;
59
+ negativePrompt : string ;
60
+ seed : string ;
61
+ number : number ;
62
+ status : string ;
63
+ aspectRatio : string ;
64
+ provider : string ;
65
+ model : string ;
66
+ images : MessageContent [ ] ;
67
+ }
Original file line number Diff line number Diff line change
1
+ - Message Content:
2
+
3
+ - Text:
4
+ - cotent: string text content
5
+ - dataJson: none
6
+
7
+ - File:
8
+ - content: string file reference id
9
+ - dataJson:
10
+ - name: string file name
11
+ - type: string file mime type
12
+ - size: string file size in bytes
13
+
14
+ - Image:
15
+ - content: string file reference id
16
+ - dataJson:
17
+ - name: string file name
18
+ - type: string file mime type
19
+ - size: string file size in bytes
20
+
21
+
22
+ - File Data:
23
+
24
+ - file id: string file reference id
25
+ - file type: Document/Image/Audio/Others
26
+ - data: ArrayBuffer data
27
+
28
+
29
+ - Image generation result:
30
+
31
+ - prompt: string prompt text
32
+ - negative prompt: string negative prompt text
33
+ - seed: string seed
34
+ - number: numbers of generation
35
+ - status: string none/success/error/running
36
+ - aspect ratio: string
37
+ - provider: string provider id
38
+ - model: string model id
39
+ - images: MessageContent[ ]
40
+
Original file line number Diff line number Diff line change
1
+ export interface File {
2
+ fileId : string ;
3
+ name : string ;
4
+ type : string ;
5
+ size : number ;
6
+ data : ArrayBuffer ;
7
+ }
You can’t perform that action at this time.
0 commit comments