Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DeprecationWarning raised on import instructor vs. use of Mode.FUNCTIONS #679

Open
1 task done
boydgreenfield opened this issue May 17, 2024 · 1 comment
Open
1 task done
Labels
good first issue Good for newcomers help wanted Extra attention is needed

Comments

@boydgreenfield
Copy link
Contributor

  • 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

@jxnl jxnl added help wanted Extra attention is needed good first issue Good for newcomers labels Jun 16, 2024
@avyfain
Copy link
Contributor

avyfain commented Jun 17, 2024

@boydgreenfield what version was this on? Can't reproduce on Python 3.12.1 with instructor 1.3.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants