instructor: Instructor's `response_model` doesn't typecheck
Describe the bug
Instructor’s patch of openai’s completions.create doesn’t typecheck when used with response_model.
To Reproduce Use the sample code from the README and open a project in VSCode with pylance installed.
Expected behavior The code type-checks.
Screenshots
About this issue
- Original URL
- State: open
- Created 7 months ago
- Comments: 19 (11 by maintainers)
i don’t hate it.
@savarin happy to take contribs into
typesFor the sync client, I have written a simple wrapper class around the patched client that allows the rest of my code to avoid type issues.