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,
})
},
})
Creates a model response for the given chat conversation using Kindo's API. See the documentation for more information.
Kindo uses API keys for authentication. When you connect your Kindo account, Pipedream securely stores the keys so you can easily authenticate to Kindo APIs in both code and no-code steps.