forked from Shinonome/dots-hyprland
comment debug print
This commit is contained in:
@@ -249,7 +249,7 @@ Singleton {
|
|||||||
+ ` ${headerString}`
|
+ ` ${headerString}`
|
||||||
+ ' -H "Authorization: Bearer ${API_KEY}"'
|
+ ' -H "Authorization: Bearer ${API_KEY}"'
|
||||||
+ ` -d '${StringUtils.shellSingleQuoteEscape(JSON.stringify(data))}'`
|
+ ` -d '${StringUtils.shellSingleQuoteEscape(JSON.stringify(data))}'`
|
||||||
console.log("Request command: ", requestCommandString);
|
// console.log("Request command: ", requestCommandString);
|
||||||
requester.command = baseCommand.concat([requestCommandString]);
|
requester.command = baseCommand.concat([requestCommandString]);
|
||||||
|
|
||||||
/* Reset vars and make the request */
|
/* Reset vars and make the request */
|
||||||
@@ -314,7 +314,7 @@ Singleton {
|
|||||||
const parsedResponse = JSON.parse(requester.message.content + "]");
|
const parsedResponse = JSON.parse(requester.message.content + "]");
|
||||||
requester.message.content = `\`\`\`json\n${JSON.stringify(parsedResponse, null, 2)}\n\`\`\``;
|
requester.message.content = `\`\`\`json\n${JSON.stringify(parsedResponse, null, 2)}\n\`\`\``;
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.log("[AI] Could not parse response on exit: ", e);
|
// console.log("[AI] Could not parse response on exit: ", e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user