with StealthGPT and Meetstream AI?
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
stealthgpt: {
type: "app",
app: "stealthgpt",
}
},
async run({steps, $}) {
const data = {
"prompt": `tell me something about modern backend architecture`,
"size": `medium`,
}
return await axios($, {
method: "POST",
url: `https://stealthgpt.ai/api/stealthify/articles`,
headers: {
"Content-Type": `application/json`,
"api-token": `${this.stealthgpt.$auth.api_key}`,
},
data,
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
meetstream_ai: {
type: "app",
app: "meetstream_ai",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api-meetstream-tst-hack.meetstream.ai/api/v1/bots/${this.meetstream_ai.$auth.bot_id}/status`,
headers: {
"authorization": `Token ${this.meetstream_ai.$auth.api_key}`,
},
})
},
})