fix: 未序列化的function_call属性

This commit is contained in:
RockChinQ
2023-08-04 19:08:48 +08:00
parent dd75f98d85
commit 054d0839ac
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -112,6 +112,7 @@ def count_completion_tokens(messages: list, model: str) -> int:
def count_tokens(messages: list, model: str):
if model in CHAT_COMPLETION_MODELS:
return count_chat_completion_tokens(messages, model)
elif model in COMPLETION_MODELS: