with Formatting and Kindo?
Creates a model response for the given chat conversation using Kindo's API. See the documentation for more information.
Get the duration between two dates in days, hours, minutes, and seconds along with checking if they are the same.
export default defineComponent({
async run({ steps, $ }) {
const text = ' Hello world! ';
return text.trim()
},
})
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,
})
},
})