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}`,
},
})
},
})
Create a chat completion with Cerebras AI. See the documentation
Cerebras uses API keys for authentication. When you connect your Cerebras account, Pipedream securely stores the keys so you can easily authenticate to Cerebras APIs in both code and no-code steps.