Spaces:
Runtime error
Runtime error
Update modules/model.py
Browse files- modules/model.py +1 -1
modules/model.py
CHANGED
|
@@ -18,7 +18,7 @@ class __DB:
|
|
| 18 |
DB: __DB = __DB()
|
| 19 |
|
| 20 |
tz: timezone = timezone(timedelta(hours=-4))
|
| 21 |
-
encoding = tiktoken.
|
| 22 |
|
| 23 |
def count_tokens_on_message(args: list) -> int:
|
| 24 |
token_count = 0
|
|
|
|
| 18 |
DB: __DB = __DB()
|
| 19 |
|
| 20 |
tz: timezone = timezone(timedelta(hours=-4))
|
| 21 |
+
encoding = tiktoken.get_encoding("o200k_base")
|
| 22 |
|
| 23 |
def count_tokens_on_message(args: list) -> int:
|
| 24 |
token_count = 0
|