with npm and 302.AI?
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
Enable your 302.AI model to invoke user-defined functions. Useful for conditional logic, workflow orchestration, and tool invocation within conversations. See documentation
Send a message to the 302.AI Chat API. Ideal for dynamic conversations, contextual assistance, and creative generation. See documentation
Classify input items into predefined categories using 302.AI models. Perfect for tagging, segmentation, and automated organization. See documentation
Generate vector embeddings from text using the 302.AI Embeddings API. Useful for semantic search, clustering, and vector store indexing. See documentation
Summarize long-form text into concise, readable output using the 302.AI Chat API. Great for reports, content digestion, and executive briefs. See documentation
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
_302_ai: {
type: "app",
app: "_302_ai",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.302.ai/v1/models`,
headers: {
Authorization: `Bearer ${this._302_ai.$auth.api_key}`,
},
})
},
})