Hyperfast LLM running on custom built GPU and the fastest interface in the world.
Go to siteimport { axios } from "@pipedream/platform"
export default defineComponent({
props: {
groqcloud: {
type: "app",
app: "groqcloud",
}
},
async run({steps, $}) {
const data = {"messages": [{"role": "user", "content": "What is Pipedream?"}], "model": "llama3-8b-8192"}
return await axios($, {
method: "post",
url: `https://api.groq.com/openai/v1/chat/completions`,
headers: {
Authorization: `Bearer ${this.groqcloud.$auth.api_key}`,
},
data,
})
},
})
Creates a model response for the given chat conversation. See the documentation
Groq Cloud uses API keys for authentication. When you connect your Groq Cloud account, Pipedream securely stores the keys so you can easily authenticate to Groq Cloud APIs in both code and no-code steps.