with Svix and Cerebras?
Emit new event when an event is received for an application
Creates a new message and dispatches it to all of the application's endpoints. See the docs here
Create a chat completion with Cerebras AI. See the documentation
The Svix API enables developers to manage and automate webhooks with ease. By integrating with Pipedream, you can leverage serverless workflows to react to incoming webhooks, manage webhook endpoints, and send out messages to subscribed endpoints. Whether you're seeking to enhance your application's notifications system or streamline event-driven integrations, Svix's API, when combined with Pipedream's capabilities, provides a robust platform for automating and scaling your webhook infrastructure.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
svix: {
type: "app",
app: "svix",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.svix.com/api/v1/app/`,
headers: {
Authorization: `Bearer ${this.svix.$auth.api_key}`,
"Accept": `application/json`,
"Content-Type": `application/json`,
},
})
},
})
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}`,
},
})
},
})