Skip to content

Commit

Permalink
docs: client instance explanation
Browse files Browse the repository at this point in the history
  • Loading branch information
asafgardin committed Dec 20, 2023
1 parent 2f84090 commit 6df07da
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6df07da

Please sign in to comment.