Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

69 - Add run method to PromptLayer class for executing prompts #70

Conversation

abubakarsohail
Copy link
Collaborator

This pull request adds a new run function to the PromptLayer class in the promptlayer package. The run function allows users to execute prompts with specified parameters, such as the prompt name, template parameters, tags, metadata, and group ID. This function handles the logic for making requests to different providers (OpenAI and Anthropic) based on the prompt template type. It also includes tracking functionality to log the request and response data.

@abubakarsohail abubakarsohail changed the title 69 - Add run function to promptlayer 69 - Add run method to PromptLayer class for executing prompts Jun 3, 2024
@abubakarsohail abubakarsohail merged commit 4af4137 into master Jun 6, 2024
4 checks passed
@abubakarsohail abubakarsohail deleted the 69-add-promptlayer-run-that-allows-you-to-run-llm-requests-using-prompt-registry branch June 6, 2024 17:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

add promptlayer run that allows you to run LLM requests using prompt registry
2 participants