Node package manager
Emit new event with the latest count of downloads for an npm package. See the documentation.
Emit new event when a new version of an npm package is published. See the documentation
Creates a model response for the given chat conversation using Kindo's API. See the documentation for more information.
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,
})
},
})