instructor
instructor copied to clipboard
structured outputs for llms
This PR fixes two issues with the current implementation: - In `ANTHROPIC_TOOLS` mode when Claude didn't provide a tool invocation, an index error occurs - `utils.update_total_usage` only works with OpenAI's...
**Is your feature request related to a problem? Please describe.** [Pyright](https://github.com/microsoft/pyright) is effectively the default type-checker for Python in VSCode, through Pylance. It's likely many Instructor users have Pylance/Pyright enabled...
https://github.com/jxnl/instructor/issues/619 ---- | :rocket: This description was created by [Ellipsis](https://www.ellipsis.dev) for commit 52131d0f3628e6050c93c9ca749f783dcf344177 | |--------| ### Summary: This PR adds support for IBM Watson AI in the instructor library, including...
**Is your feature request related to a problem? Please describe.** I'm currently working on a project using Gemini, and if this library supported Gemini that would've been great. Will likely...
addresses #612 ---- | :rocket: This description was created by [Ellipsis](https://www.ellipsis.dev) for commit 291e3e59f937417d5dae99b3786850a40d091e41 | |--------| ### Summary: The pull request introduces a new `strict` parameter, defaulting to `True`, to...
**Describe the solution you'd like** I would like to see IBM watsonx API support. **Describe alternatives you've considered** From initial research, it does not look like there is any tools...
**Is your feature request related to a problem? Please describe.** Anthropic's models regularly have control characters in their strings, producing invalid JSON that causes validation to fail. **Describe the solution...
- [x] This is actually a bug report. - [ ] I am not getting good LLM Results - [ ] I have tried asking for help in the community...
- [X] This is actually a bug report. - [ ] I am not getting good LLM Results - [ ] I have tried asking for help in the community...
| | :rocket: This PR description was created by [Ellipsis](https://www.ellipsis.dev) for commit 20bb86d4f6b606689bf0d9ec3802f3e2b66fba5b. | |--------|--------| ### Summary: This PR introduces middleware to the Instructor library, updates the `instructor` package, provides...