We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7be0776 commit bd84220Copy full SHA for bd84220
tokens.py
@@ -1,4 +1,5 @@
1
from utils import *
2
+#user-defined function to convert length of a code file into tokens
3
def tokencount(content):
4
encoding=tiktoken.get_encoding("cl100k_base")
5
token_num=len(encoding.encode(content))
0 commit comments