Count the number of tokens in a text.
(text: str)
| 51 | result = len(files) > 1 |
| 52 | |
| 53 | return result |
| 54 | |
| 55 | |
| 56 | # ------------------------------------------------------------ |
| 57 | # ---------------------- Token Counting --------------------- |
| 58 | # ------------------------------------------------------------ |
| 59 | |
| 60 | enc = tiktoken.encoding_for_model("gpt-4") |
| 61 | |
| 62 |
no outgoing calls
no test coverage detected