with xAI and Hullo?
Create an embedding vector representation corresponding to the input text. See the documentation
Adds a new member or updates an existing member's data in Hullo. See the documentation
Sends a personalized message to a Hullo member. See the documentation
Create a language model response for a chat conversation. See the documentation
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
x_ai: {
type: "app",
app: "x_ai",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.x.ai/v1/models`,
headers: {
Authorization: `Bearer ${this.x_ai.$auth.api_key}`,
}
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
hullo: {
type: "app",
app: "hullo",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://app.hullo.me/api/endpoints/account`,
headers: {
"X-API-KEY": `${this.hullo.$auth.api_key}`,
},
})
},
})