mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-07 02:59:05 +00:00
docs(json): make it clearer how to get Pydantic model output (#17671)
This commit is contained in:
parent
7c2e2111c0
commit
e0a8f7435d
1 changed files with 2 additions and 0 deletions
|
|
@ -126,6 +126,8 @@ resp = completion(
|
|||
)
|
||||
|
||||
print("Received={}".format(resp))
|
||||
|
||||
events_list = EventsList.model_validate_json(resp.choices[0].message.content)
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="proxy" label="PROXY">
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue