UNPKG

portkey-ai

Version:
14 lines 429 B
"use strict"; // import { Portkey } from "../src"; // const portkey = new Portkey({ // mode: "fallback" // }); // async function main() { // const chatCompletion = await portkey.generations.create({ // promptId: "your-prompt-id", // // variables: {hello: "world"} # Add variables if required // }); // console.log(chatCompletion.data); // }; // main(); //# sourceMappingURL=promptGeneration.js.map