|
|
|
@ -20,7 +20,7 @@ function formatResponse(text) {
|
|
|
|
Hooks.on("chatMessage", async (chatLog, message, chatData) => {
|
|
|
|
Hooks.on("chatMessage", async (chatLog, message, chatData) => {
|
|
|
|
console.log(chatData);
|
|
|
|
console.log(chatData);
|
|
|
|
console.log(message);
|
|
|
|
console.log(message);
|
|
|
|
const response = await fetch('http://192.168.1.183:3000/prompt', {
|
|
|
|
const response = await fetch('https://ai-dm-api.artisan.al/prompt', {
|
|
|
|
//const response = await fetch('http://debianmacbookair:3000/prompt', {
|
|
|
|
//const response = await fetch('http://debianmacbookair:3000/prompt', {
|
|
|
|
method: "POST",
|
|
|
|
method: "POST",
|
|
|
|
headers: { "Content-Type": "application/json" },
|
|
|
|
headers: { "Content-Type": "application/json" },
|
|
|
|
|