From 1361d09025ee05fef1ffb5ed3186981d99eb4624 Mon Sep 17 00:00:00 2001 From: henceiusegentoo Date: Tue, 15 Aug 2023 14:00:35 +0200 Subject: [PATCH] Fixed the readme --- README.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 4ca6077..e182bff 100644 --- a/README.md +++ b/README.md @@ -36,7 +36,7 @@ Now, to make a request, use the `make_request` function. For example: from nova_python import Endpoints, Models, NovaClient client = NovaClient("YOUR_API_KEY") -reponse = client.make_request( +response = client.make_request( endpoint=Endpoints.CHAT_COMPLETION, model=Models.GPT3, data=[ @@ -54,7 +54,7 @@ or from nova_python import Endpoints, Models, NovaClient client = NovaClient("YOUR_API_KEY") -reponse = client.make_request( +response = client.make_request( endpoint=Endpoints.MODERATION, model=Models.MODERATION_STABLE, data=[{"input": "I'm going to kill them."}] @@ -65,20 +65,20 @@ reponse = client.make_request( If everything goes to plan, you'll receive a string containing JSON-Data, which you can then use in your project. Note, that when using chat completion, as special ChatResponse-Instance get's returned. -You can access the reponse's json.data, by casting it to a string using the `str` method, like this: +You can access the response's json.data, by casting it to a string using the `str` method, like this: ```python ... -str(reponse) +str(response) ... ``` -but more importantly, you can use it's `get_message_content` function, to directly get access to the chat reponse. Used like this: +but more importantly, you can use it's `get_message_content` function, to directly get access to the chat response. Used like this: ``` ... -content = reponse.get_message_content() +content = response.get_message_content() ... ```