with Zylvie and OpenRouter?
Emit new event when a visitor signs up to be an affiliate or when they accept an invitation to be an affiliate. See the documentation
Emit new event when a user submits their name and email to receive a free product/lead magnet. See the documentation
Emit new event when a user subscribes to a subscription product, whether free trial or otherwise. See the documentation
Returns a list of models available through the API. See the documentation
Send a chat completion request to a selected model. See the documentation
Send a completion request to a selected model (text-only format) See the documentation
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
zylvie: {
type: "app",
app: "zylvie",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.zylvie.com/me`,
headers: {
Authorization: `Bearer ${this.zylvie.$auth.api_key}`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
openrouter: {
type: "app",
app: "openrouter",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://openrouter.ai/api/v1/parameters/openai/o1`,
headers: {
Authorization: `Bearer ${this.openrouter.$auth.api_key}`,
},
params: {
provider: `OpenAI`,
},
})
},
})