File tree Expand file tree Collapse file tree 3 files changed +1
-12
lines changed
client/packages/lowcoder/src/comps/comps/chatComp Expand file tree Collapse file tree 3 files changed +1
-12
lines changed Original file line number Diff line number Diff line change @@ -79,14 +79,9 @@ export function ChatCoreMain({
79
79
const { state, actions } = useChatContext ( ) ;
80
80
const [ isRunning , setIsRunning ] = useState ( false ) ;
81
81
82
- console . log ( "CHAT CORE STATE" , state ) ;
83
-
84
82
// Get messages for current thread
85
83
const currentMessages = actions . getCurrentMessages ( ) ;
86
84
87
-
88
- console . log ( "CURRENT MESSAGES" , currentMessages ) ;
89
-
90
85
// Notify parent component of conversation changes
91
86
useEffect ( ( ) => {
92
87
onConversationUpdate ?.( currentMessages ) ;
@@ -132,8 +127,6 @@ export function ChatCoreMain({
132
127
// Use the message handler (no more complex logic here!)
133
128
const response = await messageHandler . sendMessage ( userMessage . text ) ;
134
129
135
- console . log ( "AI RESPONSE" , response ) ;
136
-
137
130
const assistantMessage : ChatMessage = {
138
131
id : generateId ( ) ,
139
132
role : "assistant" ,
Original file line number Diff line number Diff line change @@ -78,9 +78,7 @@ export class QueryHandler implements MessageHandler {
78
78
)
79
79
) ;
80
80
81
- console . log ( "QUERY RESULT" , result ) ;
82
-
83
- return result . message
81
+ return result . message
84
82
} catch ( e : any ) {
85
83
throw new Error ( e ?. message || "Query execution failed" ) ;
86
84
}
Original file line number Diff line number Diff line change @@ -41,7 +41,6 @@ export function createChatStorage(tableName: string): ChatStorage {
41
41
)
42
42
` ) ;
43
43
44
- console . log ( `✅ Chat database initialized: ${ dbName } ` ) ;
45
44
} catch ( error ) {
46
45
console . error ( `Failed to initialize chat database ${ dbName } :` , error ) ;
47
46
throw error ;
@@ -170,7 +169,6 @@ export function createChatStorage(tableName: string): ChatStorage {
170
169
171
170
// Reinitialize fresh
172
171
await this . initialize ( ) ;
173
- console . log ( `✅ Database reset and reinitialized: ${ dbName } ` ) ;
174
172
} catch ( error ) {
175
173
console . error ( "Failed to reset database:" , error ) ;
176
174
throw error ;
You can’t perform that action at this time.
0 commit comments