with WOXO and Kindo?
Creates a model response for the given chat conversation using Kindo's API. See the documentation for more information.
The WOXO API enables automation of social media content creation and management, transforming spreadsheets into social media posts, widgets, and more. With this API, you can dynamically generate marketing content, schedule posts, and update widgets in real-time, all based on data you control in a spreadsheet. This marries data-driven decision-making with social media management, offering a highly efficient way to engage with your audience.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
woxo: {
type: "app",
app: "woxo",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.woxo.tech/video/project/{your_project_id}`,
headers: {
"accept": `application/json`,
"team": `${this.woxo.$auth.team}`,
"token": `${this.woxo.$auth.api_key}`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
kindo: {
type: "app",
app: "kindo",
}
},
async run({steps, $}) {
const data = {
"model": "claude-3-sonnet-20240229",
"messages": [{"role": "user", "content": "Hello, world!"}]
}
return await axios($, {
method: "post",
url: `https://llm.kindo.ai/v1/chat/completions`,
headers: {
"content-type": `application/json`,
"api-key": `${this.kindo.$auth.api_key}`,
},
data,
})
},
})