Hyperfast LLM running on custom built GPU and the fastest interface in the world.
Emit new event when a new event is created in Welcome. See the documentation
Creates a model response for the given chat conversation. See the documentation
import { 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,
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
welcome: {
type: "app",
app: "welcome",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://app.experiencewelcome.com/api/v1/events`,
headers: {
Authorization: `Bearer ${this.welcome.$auth.oauth_access_token}`,
"Accept": `application/json`,
},
})
},
})