with Kommo 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
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
kommo: {
type: "app",
app: "kommo",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://${this.kommo.$auth.subdomain}.kommo.com/api/v4/account`,
headers: {
Authorization: `Bearer ${this.kommo.$auth.oauth_access_token}`,
},
})
},
})
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}`,
}
})
},
})