instructor icon indicating copy to clipboard operation
instructor copied to clipboard

`DeprecationWarning` raised on `import instructor` vs. use of `Mode.FUNCTIONS`

Open boydgreenfield opened this issue 9 months ago • 0 comments

  • [X] This is actually a bug report.
  • ~I am not getting good LLM Results
  • ~I have tried asking for help in the community on discord or discussions and have not received a response.~
  • ~I have tried searching the documentation and have not found an answer.~

What Model are you using? N/A

Describe the bug Instructor is raising a DeprecationWarning on import vs. access of the Mode.FUNCTIONS mode.

To Reproduce

import warnings
warnings.simplefilter("default")
import instructor

Expected behavior A DeprecationWarning is only raised on access to Mode.FUNCTIONS

Screenshots N/A

boydgreenfield avatar May 17 '24 20:05 boydgreenfield