docs: add fallback setup for virtual key with Loom video

docs: add fallback setup for virtual key with Loom video
This commit is contained in:
mubashir1osmani 2026-03-02 16:04:27 -05:00 • committed by GitHub
commit ea8d22753d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2,6 +2,10 @@
This tutorial demonstrates how to employ the `completion()` function with model fallbacks to ensure reliability. LLM APIs can be unstable, completion() with fallbacks ensures you'll always get a response from your calls
## Set Up Fallbacks for a Virtual Key
<iframe width="840" height="500" src="https://www.loom.com/embed/35539129dd104313aff40eb1cd255778" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>
## Usage
To use fallback models with `completion()`, specify a list of models in the `fallbacks` parameter.