MagnivOrg / prompt-layer-library

🍰 PromptLayer - Maintain a log of your prompts and OpenAI API requests. Track, debug, and replay old completions.
https://www.promptlayer.com
Apache License 2.0
479 stars 42 forks source link

how can I get a list of templates in the prompt registry? #28

Closed kj-hong-ascentko closed 11 months ago

kj-hong-ascentko commented 1 year ago

It would be nice to have an API to query or retrieve information from the prompt registry😀

Jped commented 1 year ago

Hey @kj-hong-ascentko , just so I understand correctly you want an API endpoint that will give you all the prompts in the registry or just a single one? We already have the /rest/get-prompt-template that given a prompt template name and version will return the prompt for you.

kj-hong-ascentko commented 1 year ago

@Jped I want to return all the prompt names stored in the prompt registry or those that meet the specified conditions. ex) prompts whose prompt names begin with a specific word

Jped commented 1 year ago

Got it @kj-hong-ascentko This is a good request, would you be able to add it here

kj-hong-ascentko commented 1 year ago

@Jped Okay, I'll open an issue there as well.

Jped commented 11 months ago

http://docs.promptlayer.com/features/prompt-registry#getting-all-prompts