From 6df07da25e5425e0c4268556e634a4cdc72f4229 Mon Sep 17 00:00:00 2001 From: Asaf Gardin Date: Wed, 20 Dec 2023 14:50:56 +0200 Subject: [PATCH] docs: client instance explanation --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index ac535d65..cd5f74ad 100644 --- a/README.md +++ b/README.md @@ -52,6 +52,8 @@ import ai21 + response = client.completion(model="j2-light", prompt=prompt, max_tokens=2) ``` +This applies to all resources. You would now need to create a client instance and use it to call the resource method. + ### Tokenization and Token counting before/after ```diff