forked from phoenix/litellm-mirror
(docs) fix exception mapping
This commit is contained in:
parent
e4f1e2b138
commit
34886a99cc
1 changed files with 14 additions and 13 deletions
|
@ -44,6 +44,7 @@ except openai.APITimeoutError as e:
|
||||||
## Usage - Catching Streaming Exceptions
|
## Usage - Catching Streaming Exceptions
|
||||||
```python
|
```python
|
||||||
import litellm
|
import litellm
|
||||||
|
try:
|
||||||
response = litellm.completion(
|
response = litellm.completion(
|
||||||
model="gpt-3.5-turbo",
|
model="gpt-3.5-turbo",
|
||||||
messages=[
|
messages=[
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue