portkey-ai
Version:
Node client library for the Portkey API
14 lines • 429 B
JavaScript
;
// 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