@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.
- package/cli/commands/open.js +27 -2
- package/package.json +4 -4
- package/src/app/lib/stores/settings-ai-store.js +34 -1
- package/src/app/lib/stores/settings-cloud-store.js +2 -1
- package/src/app/ui/editor-client/public/red/red.js +2 -1
- package/src/app/ui/editor-client/public/red/red.min.js +1 -1
- package/src/app/ui/editor-client/src/js/ui/palette-aiassistant.js +2 -1
|
@@ -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
|