MaxKB icon indicating copy to clipboard operation
MaxKB copied to clipboard

[BUG]没有为cl100k base实现get_num_tokens_from_messages这个方法

Open kd-taiziye opened this issue 1 year ago • 1 comments

联系方式

No response

MaxKB 版本

v1.5.0 (build at 2024-08-28T17:41, commit: 07555ec2)

问题描述

知识库高级编排调试提问回答。get_num_tokens_from_messages() is not presently implemented for model cl100k_base. See https://platform.openai.com/docs/guides/text-generation/managing-tokens for information on how messages are converted to tokens.

重现步骤

知识库高级编排调试提问回答。get_num_tokens_from_messages() is not presently implemented for model cl100k_base. See https://platform.openai.com/docs/guides/text-generation/managing-tokens for information on how messages are converted to tokens.

期待的正确结果

No response

相关日志输出

No response

附加信息

No response

kd-taiziye avatar Sep 30 '24 03:09 kd-taiziye

升级到最新版本试试

shaohuzhang1 avatar Sep 30 '24 03:09 shaohuzhang1