debug: check sentMsg constructor and result property
This commit is contained in:
@@ -60,7 +60,8 @@ export async function sendStreamingMessage(ctx, text, options = {}) {
|
||||
|
||||
// Log response structure - try to understand the format
|
||||
logger.info('📡 Response typeof:', typeof sentMsg);
|
||||
logger.info('📡 sentMsg:', JSON.stringify(sentMsg).substring(0, 300));
|
||||
logger.info('📡 sentMsg constructor:', sentMsg?.constructor?.name);
|
||||
logger.info('📡 sentMsg has result?:', 'result' in (sentMsg || {}));
|
||||
|
||||
// The response might be wrapped in a 'result' property
|
||||
const response = sentMsg?.result || sentMsg;
|
||||
|
||||
Reference in New Issue
Block a user