mirror of
https://github.com/kennethreitz/instructor.git
synced 2026-06-05 22:50:18 +00:00
documentation
This commit is contained in:
+5
-3
@@ -2,9 +2,11 @@
|
||||
|
||||
_Structured extraction in Python, powered by OpenAI's function calling api, designed for simplicity, transparency, and control._
|
||||
|
||||
Built to interact solely with openai's function calling api from python. It's designed to be intuitive, easy to use, and provide great visibility into your prompts.
|
||||
|
||||
---
|
||||
|
||||
[Star us on Github!](https://jxnl.github.io/instructor).
|
||||
[Star us on Github!](https://jxnl.github.io/instructor)
|
||||
|
||||
[](https://www.buymeacoffee.com/jxnlco)
|
||||
[](https://pypi.python.org/pypi/instructor)
|
||||
@@ -17,7 +19,7 @@ _Structured extraction in Python, powered by OpenAI's function calling api, desi
|
||||
[](https://pypi.python.org/pypi/instructor)
|
||||
[](https://pypi.python.org/pypi/instructor)
|
||||
|
||||
Built to interact solely with openai's function calling api from python. It's designed to be intuitive, easy to use, and provide great visibility into your prompts.
|
||||
---
|
||||
|
||||
## Usage
|
||||
|
||||
@@ -159,7 +161,7 @@ answer
|
||||
Assertion failed, The statement is objectionable. (type=assertion_error)
|
||||
```
|
||||
|
||||
## Reask on validation error
|
||||
## Advanced: Reask on validation error
|
||||
|
||||
Here, the `UserDetails` model is passed as the `response_model`, and `max_retries` is set to 2.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user