import { Portkey } from 'portkey-ai' const portkey = new Portkey({ apiKey: "", // defaults to process.env["PORTKEY_API_KEY"] }) // Make the prompt creation call with the variables const promptCompletion = portkey.prompts.completions.create({ promptID: "pp-id", variables: {"variable1":"","variable2":""} })
prompt_id
instead of having to manage the whole bulky prompt text in your code.