From 6c3f68f29cdd5c1d720237b3e121bf6c0617b566 Mon Sep 17 00:00:00 2001 From: Marcos Date: Wed, 12 Jul 2023 08:54:22 -0600 Subject: [PATCH] fix: update variable name in from_response example (#59) --- docs/index.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/index.md b/docs/index.md index 4e84215..9031e17 100644 --- a/docs/index.md +++ b/docs/index.md @@ -125,7 +125,7 @@ Note that we have omitted the additional parameters that can be included in the To deserialize the response from the `ChatCompletion` API back into an instance of the `UserDetails` class, we can use the `from_response` method. ```python hl_lines="1" -user = UserDetails.from_response(response) +user = UserDetails.from_response(completion) print(user.name) # Output: John Doe print(user.age) # Output: 30 ``` @@ -138,4 +138,4 @@ This quick start guide provided you with a basic understanding of how to use Ope If you have any questions, feel free to leave an issue or reach out to the library's author on [Twitter](https://twitter.com/jxnlco). For a more comprehensive solution with additional features, consider checking out [MarvinAI](https://www.askmarvin.ai/). -To see more examples of how we can create interesting models check out some [examples.](examples/index.md) \ No newline at end of file +To see more examples of how we can create interesting models check out some [examples.](examples/index.md)