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

148 - Add `run` method to PromptLayer class for executing prompts #149

Closed abubakarsohail closed 3 months ago

abubakarsohail commented 4 months ago

This pull request adds a new run method to the PromptLayer class. The run method allows for executing prompts with various parameters such as prompt name, version, label, input variables, tags, metadata, and group ID. It utilizes the existing templates and track modules to retrieve the prompt template and track the request. This new method enhances the functionality of the PromptLayer class and provides a convenient way to execute prompts.