AItherapy / Aitherapyy.jsonl
focus1AI's picture
Upload Aitherapyy.jsonl
fa0d88a verified
Raw History Blame Contribute Delete
1.35 kB
async function query(data) {
const response = await fetch(
"https://cloud.flowiseai.com/api/v1/prediction/a5bdff45-1ec4-4ab0-a58b-f39b423f1a05",
{
headers: {
Authorization: "Bearer 3yPns_cUcWpdEGc9bXZ4iA2JM-ZxZZVH8MLf1DuztS8",
"Content-Type": "application/json"
},
method: "POST",
body: JSON.stringify(data)
}
);
const result = await response.json();
return result;
}
query({"question": "Hey, how are you?"}).then((response) => {
console.log(response);
});
async function query(data) {
const response = await fetch(
"https://cloud.flowiseai.com/api/v1/prediction/a5bdff45-1ec4-4ab0-a58b-f39b423f1a05",
{
headers: {
Authorization: "Bearer 3yPns_cUcWpdEGc9bXZ4iA2JM-ZxZZVH8MLf1DuztS8",
"Content-Type": "application/json"
},
method: "POST",
body: JSON.stringify(data)
}
);
const result = await response.json();
return result;
}
query({
"question": "Hey, how are you?",
"overrideConfig": {
"aiName": "example",
"aiRole": "example",
"maxLoop": 1,
"openAIApiKey": "example",
}
}).then((response) => {
console.log(response);
});