with xAI and goQR.me?
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: {
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: {
goqr_me: {
type: "app",
app: "goqr_me",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.qrserver.com/v1/create-qr-code/`,
params: {
data: `${this.goqr_me.$auth.data}`,
size: `100x100`,
},
})
},
})