1Panel-dev / MaxKB

🚀 基于大语言模型和 RAG 的知识库问答系统。开箱即用、模型中立、灵活编排,支持快速嵌入到第三方业务系统。
https://maxkb.cn/
GNU General Public License v3.0
10.47k stars 1.38k forks source link

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

Open kd-taiziye opened 2 hours ago

kd-taiziye commented 2 hours ago

联系方式

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

shaohuzhang1 commented 2 hours ago

升级到最新版本试试