with AI/ML API and Rise?
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
ai_ml_api: {
type: "app",
app: "ai_ml_api",
}
},
async run({steps, $}) {
const data = {
"model": "mistralai/Mistral-7B-v0.1",
"messages": [
{
"role": "system",
"content": "You are an AI assistant who knows everything.",
},
{
"role": "user",
"content": "Tell me, why is the sky blue?"
},
]
}
return await axios($, {
method: "POST",
url: `https://api.aimlapi.com/chat/completions`,
headers: {
Authorization: `Bearer ${this.ai_ml_api.$auth.api_key}`,
},
data,
})
},
})
The Rise API empowers users to automate and integrate their learning management system workflows with ease. With this API, you can manipulate course data, track user progress, and manage enrollments without manual intervention. Imagine the possibilities when you connect Rise to your HR system, Customer Support platform, or Content Management System. Streamline onboarding, keep tabs on employee training, and ensure compliance requirements are met seamlessly.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
rise: {
type: "app",
app: "rise",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.rise.com/users`,
headers: {
Authorization: `Bearer ${this.rise.$auth.api_key}`,
},
})
},
})