with Sifter and xAI?
Create an embedding vector representation corresponding to the input text. See the documentation
Create a language model response for a chat conversation. See the documentation
Create a language model response for a given prompt. See the documentation
The Sifter API enables developers to craft workflows for tracking and managing customer interactions and support inquiries efficiently. By leveraging the Sifter API on Pipedream, users can automate issue tracking, streamline customer communication, and ensure quick resolution of support tickets. With Pipedream's ability to connect to hundreds of apps, you can create multi-step workflows that trigger actions in other tools, leading to increased productivity and a better support experience.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
sifter: {
type: "app",
app: "sifter",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://pdapikey.sifterapp.com/api/projects`,
headers: {
"Accept": `application/json`,
"X-Sifter-Token": `${this.sifter.$auth.access_key}`,
},
})
},
})
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}`,
}
})
},
})