@kumologica/sdk 4.0.0-beta11 → 4.0.0-beta13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -222,7 +222,7 @@ async function chatWithAi(conversation, question) {
222
222
  };
223
223
 
224
224
  try {
225
- console.log("Calling chatAi with options:", options);
225
+ console.log("Calling chatAi with options:", JSON.stringify(options));
226
226
  const res = await window.__kumologica.libs.chatAi(options);
227
227
 
228
228
  console.log("response:", JSON.stringify(res));
@@ -233,6 +233,7 @@ async function chatWithAi(conversation, question) {
233
233
  conversation.push({ role: 'assistant', content: res.content || '[No response]' });
234
234
  aiConfigStore.updateChatHistory("latest", conversation);
235
235
  } catch(err) {
236
+ console.error("Error during chatWithAi:", JSON.stringify(err));
236
237
  $chat.append(`<div style="color:red; text-align:left;">Error: ${err.message}</div>`);
237
238
 
238
239
  // Auto-scroll on error