Log in
Log into community
Welcome to Portkey Forum
New post
View all posts
Related posts
Was this helpful?
😞
😐
😃
Powered by
Hall
Active
Updated 5 days ago
0
Follow
Prompt labels and the prompt render api
Prompt labels and the prompt render api
Active
0
Follow
b
bhuvansingla
5 days ago
·
I noticed prompts can have labels (
production
,
staging
etc). How do I use it over the prompt render api?
v
1 comment
Share
Open in Discord
v
visarg
edited 5 days ago
Hey! You can send the prompt slug along with label in the render API like this:
/prompts/{{prompt_slug}}@{{prompt_label}}/render
Here is a documentation which shows the usage for /completions API. But the same format can be used for render as well. We will update it in docs.
https://portkey.ai/docs/product/prompt-library/prompt-templates#prompt-labels
Add a reply
Sign up and join the conversation on Discord
Join on Discord