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

remove langchain and allow users to publish prompt templates of any shape #94

Closed abubakarsohail closed 8 months ago

abubakarsohail commented 10 months ago

Remove langchain references from the library and allow users to publish prompt templates of any shape.

Add a warning about the updated shape of prompt template for the users. Add a warning for prompts.get as well to let users know about the changes.

Consult with @Jped about adding a nice type on the library to guide users into using the new shape of prompt template object so that they are only sending a valid object which they can easily edit the on the dashboard as well.

Try to add some code snippets to showcase how to use the updated object in different workflows like

Again, make sure to test these changes properly.

Jped commented 10 months ago

@abubakarsohail is the adding of helper functions to prepare the template for the different model providers part of this issue or is there another one?

abubakarsohail commented 10 months ago

@abubakarsohail is the adding of helper functions to prepare the template for the different model providers part of this issue or is there another one?

@Jped Here are the missing details

We will also have two helper functions to support two new parameters namely

Jped commented 10 months ago

Amazing thanks.

Jped commented 8 months ago

@abubakarsohail this issue will be closed with the new prompt library, can you link that PR here?