Upload Aitherapyy.jsonl
Browse files12345678910111213141516171819202122232425262728293031323334353637383940414243444546async 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);
});Aitherapyy.jsonlAdded+46