From 661d1bff8b4e2ea8c78ee0d146feb4f8871c7a97 Mon Sep 17 00:00:00 2001 From: ishaan-jaff Date: Tue, 22 Aug 2023 15:32:56 -0700 Subject: [PATCH] update docs --- docs/my-website/docs/tutorials/fallbacks.md | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/docs/my-website/docs/tutorials/fallbacks.md b/docs/my-website/docs/tutorials/fallbacks.md index d89e235b1..33903c6b7 100644 --- a/docs/my-website/docs/tutorials/fallbacks.md +++ b/docs/my-website/docs/tutorials/fallbacks.md @@ -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'