with Cerebras and Microsoft Graph Security?
Create a chat completion with Cerebras AI. See the documentation
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
cerebras: {
type: "app",
app: "cerebras",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.cerebras.ai/v1/models`,
headers: {
Authorization: `Bearer ${this.cerebras.$auth.api_key}`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
microsoft_graph_security: {
type: "app",
app: "microsoft_graph_security",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://graph.microsoft.com/v1.0/security/alerts`,
headers: {
Authorization: `Bearer ${this.microsoft_graph_security.$auth.oauth_access_token}`,
},
})
},
})