Welcome to Portkey Forum

Updated 6 months ago

Difference in outputs and prompt template id

Possible to share the difference in outputs? That way we can judge if something went wrong in between. Also, if you can DM me your prompt template ID, that'll help as well
W
V
v
5 comments
Hi @Vrushank | Portkey or anyone pls update?
Hey @W ï l l ¥ sorry! Let me resolve it right away
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/completions

You 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/completions

Version numbers of a prompt are visible in left pane of the prompts screen.
In your case, when you are using portkey web, it picks up the latest saved version. But when you are using API, its picking up the published version as the default because no version tags are added while making call.

You can either publish the latest saved version. Or if you just want to test without publishing, you can add latest tag as mentioned above.
Add a reply
Sign up and join the conversation on Discord