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

export functions to get llm clients #35

Closed abubakarsohail closed 1 year ago

Jped commented 1 year ago

@abubakarsohail does this edit mean people will have to do from promptlayer import get_openai ?

abubakarsohail commented 1 year ago

@abubakarsohail does this edit mean people will have to do

from promptlayer import get_openai ?

Yes. And when the user calls this function, it will throw ModuleNotFoundError automatically.

Jped commented 1 year ago

@abubakarsohail that would be a breaking change in the library. I would rather to keep things consistent.