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
477 stars 42 forks source link

Langchain import #92

Closed BedirT closed 4 months ago

BedirT commented 7 months ago

Hey,

I think the library is requiring long-chain imports currently, but it is not stated as a requirement. We are not making use of any langchain properties but even though after promptlayer installation, we need a separate langchain installation.

PS: I get the error on prompts/prompts.py

BedirT commented 7 months ago

Which is weird cuz i see that langchain is listed in the toml file here.

Jped commented 7 months ago

Hey @BedirT it is required for some formatting when you do promptlayer.prompts.get we are working on a refactor to get rid of that dependancy. It should be out soon.

cc @abubakarsohail

Jped commented 4 months ago

This is no longer a requirement when using the updated promptlayer.templates.get method