portkey-ai
Version:
Node client library for the Portkey API
16 lines (12 loc) • 374 B
text/typescript
// 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();