import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
albus: {
type: "app",
app: "albus",
}
},
async run({steps, $}) {
const data = {
"prompt": `Once upon`,
}
return await axios($, {
method: "post",
url: `https://api-albus.springworks.in/chat/completions/custom`,
headers: {
"Authorization": `${this.albus.$auth.api_key}`,
},
data,
})
},
})
Albus uses API keys for authentication. When you connect your Albus account, Pipedream securely stores the keys so you can easily authenticate to Albus APIs in both code and no-code steps.