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

add a check to raise an error if user is trying to use a library without installing it #32

Closed Jped closed 1 year ago

Jped commented 1 year ago

Currently, it is a bit confusing if someone uses our library and imports openAI or Anthropic without having the library installed, we just set the values as none.

Lets set something up so that it will raise an error if they try to import it w/o it being installed.

Maybe something like openai = get_openai() so that it will only raise an error when they are calling openai