forked from phoenix/litellm-mirror
update docs
This commit is contained in:
parent
0dbf58b8c3
commit
661d1bff8b
1 changed files with 2 additions and 8 deletions
|
@ -5,17 +5,11 @@ This tutorial demonstrates how to employ the `completion()` function with model
|
|||
## Usage
|
||||
To use fallback models with `completion()`, specify a list of models in the `fallbacks` parameter.
|
||||
|
||||
Example
|
||||
```python
|
||||
try:
|
||||
response = completion(
|
||||
model="bad-model",
|
||||
messages=messages,
|
||||
fallbacks=["gpt-3.5-turbo", "command-nightly"]
|
||||
)
|
||||
response = completion(model="bad-model", messages=messages, fallbacks=["gpt-3.5-turbo" "command-nightly"])
|
||||
```
|
||||
|
||||
Output
|
||||
### Output from calls
|
||||
```
|
||||
Completion with 'bad-model': got exception Unable to map your input to a model. Check your input - {'model': 'bad-model'
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue