Skip to content

Cannot import instructor.exceptions. ClientError,ConfigurationError,InstructorError,ModeError,ProviderError,ValidationError #1612

Open
@MonsignorEduardo

Description

@MonsignorEduardo
  • 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.

Describe the bug
The documentation is "overupdated" https://python.useinstructor.com/concepts/error_handling/?h=validationerror#exception-hierarchy while the latest released version 1.8.3 doesnt https://github.com/567-labs/instructor/blob/1.8.3/instructor/exceptions.py

from instructor.exceptions import (
    ValidationError, #"ValidationError" is unknown import symbolPylance
)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions