with Albus and One AI?
Find clusters with a similar meaning of a given text. See the documentation
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
albus: {
type: "app",
app: "albus",
}
},
async run({steps, $}) {
const data = {
"prompt": `Once upon`,
}
return await axios($, {
method: "post",
url: `https://api-albus.springworks.in/chat/completions/custom`,
headers: {
"Authorization": `${this.albus.$auth.api_key}`,
},
data,
})
},
})
One AI API enables users to leverage advanced language AI to analyze and process text. On Pipedream, you can integrate One AI into serverless workflows to automate tasks like content summarization, emotion detection, or keyword extraction. By tapping into One AI's capabilities via Pipedream, you can enrich data, glean insights, and streamline content-centric operations with ease and efficiency.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
one_ai: {
type: "app",
app: "one_ai",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.oneai.com/api/v0/org/info`,
headers: {
"api-key": `${this.one_ai.$auth.api_key}`,
"Accept": `application/json`,
},
})
},
})