Chat2DB Bug: Token limit exceeded, 16k model should be used

2ic8powd  于 2个月前  发布在  其他
关注(0)|答案(1)|浏览(40)

Chat2DB版本

Linux-v3.0.14

描述bug

  • 操作系统:Kubuntu 22.04
  • 软件版本:3.0.14
  • AI类型:Open AI

-Agent: API2D
数据库中有多个表。在使用对话生成SQL时,超过了token限制。返回的错误日志如下:

出现异常,请在帮助中查看详细日志:{"object":"error","message":"流式输出失败 {\"error\":{\"message\":\"This model's maximum context length is 4097 tokens. However, you requested 4146 tokens (2098 in the messages, 2048 in the completion). Please reduce the length of the messages or completion.\",\"type\":\"invalid_request_error\",\"param\":\"messages\",\"code\":\"context_length_exceeded\"}}","code":50099}

xzlaal3s

xzlaal3s1#

帮助中的日志功能也无法使用。点击该按钮会导致x11桌面冻结。

相关问题