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
502 stars 46 forks source link

Feature request: Programatically be able to assign labels #130

Closed jalkestrup closed 5 months ago

jalkestrup commented 6 months ago

Hi!

I am lacking the feature to assign labels when programmatically pushing prompt templates. I would imagine simply adding a parameter called label, passed along when doing the Post request.

When fetching prompt templates I can retrieve a template based on labels, but I am looking for the option to also set them when pushing an updated template back.

Kind regards, Jesper

Jped commented 5 months ago

This has been added to the rest API, coming soon as arguments for the python and javascript sdk

Read docs here