mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2025-12-30 15:59:09 +08:00
Add debug logging for message content blocks
- Log each content block when processing user or assistant messages - Maintain existing switch case logic for text block handling - Improve debugging visibility for multi-block message processing
This commit is contained in:
parent
17a27f0d55
commit
4a5d3b31ab
@ -100,6 +100,7 @@ function handleUserOrAssistantMessage(message: Extract<SDKMessage, { type: 'assi
|
||||
}
|
||||
} else if (Array.isArray(message.message.content)) {
|
||||
for (const block of message.message.content) {
|
||||
logger.debug('Handling user or assistant message:', { block })
|
||||
switch (block.type) {
|
||||
case 'text':
|
||||
chunks.push(...generateTextChunks(messageId, block.text, message))
|
||||
|
||||
Loading…
Reference in New Issue
Block a user