Hey @W ï l l ¥ - Sorry for the delay in replying. This seems to be happening because of confusion.
When you save a prompt after making changes, it creates a new version of that prompt. But until you
Publish
the prompt, it will not reflect in the prompt completions API by default. Publish action is only allowed for owners and admin of an organisation and it can be done from the prompts screen itself.
In case you want to use the latest version of a prompt which is not yet published, you can add
@latest
in the prompt id while making completions call. For example:
https://api.portkey.ai/v1/prompts/my-prompt-id@latest/completionsYou can use the same convention in case you want to call any specific version of a prompt. For example:
https://api.portkey.ai/v1/prompts/my-prompt-id@3/completionsVersion numbers of a prompt are visible in left pane of the prompts screen.