Chat2DB icon indicating copy to clipboard operation
Chat2DB copied to clipboard

Bug: 自定义AI "error_msg": "Not Found. Please check the configuration."

Open Marsmaze opened this issue 10 months ago • 4 comments

Chat2DB Version

0.3.7

Describe the bug

Image 自定义AI点了apply以后,会在apihost的URL最后自动加上斜杠“/”导致返回"error_msg": "Not Found. Please check the configuration."

2025-03-13 10:54:33 ### SQL input: give me a hint 2025-03-13 10:54:33 2025-03-13 02:54:33.958 INFO 1 --- [io-10824-exec-6] a.c.s.w.a.c.a.r.c.RestAIStreamClient .171 : 943d0f0f4ef7409f835e4af90f85faac | finish invoking rest ai 2025-03-13 10:54:34 2025-03-13 02:54:34.080 ERROR 1 --- [eepseek.com/...] .s.w.a.c.a.r.l.RestAIEventSourceListener.110 : | REST AI sse body error:{ 2025-03-13 10:54:34 "error_msg": "Not Found. Please check the configuration." 2025-03-13 10:54:34 },exception:null

Image

在postman测试的截图 1、加"/"报错

Image

2、不加"/"正常

Image

Marsmaze avatar Mar 13 '25 03:03 Marsmaze

这个已经修复了,需要等下次发版。

tmlx1990 avatar Mar 13 '25 04:03 tmlx1990

#1665

tmlx1990 avatar Mar 15 '25 03:03 tmlx1990

@tmlx1990 能否先给个临时的解决方案,已经过去很久了还没发版。。。我想知道你们把配置存在哪里,直接去改一下配置里的值试试,但是没找打你们的配置在哪里,我把软件删除了重新安装我之前的配置都还在,说明你们配置应该是存在用户的某个目录下把

a471640241 avatar Mar 25 '25 17:03 a471640241

@tmlx1990 能否先给个临时的解决方案,已经过去很久了还没发版。。。我想知道你们把配置存在哪里,直接去改一下配置里的值试试,但是没找打你们的配置在哪里,我把软件删除了重新安装我之前的配置都还在,说明你们配置应该是存在用户的某个目录下把

您好,配置在本地的h2数据库中。在电脑的用户目录下,.chat2db/db/chat2db。数据在system_config表中。code为rest开头的为自定义的配置。

tmlx1990 avatar Mar 26 '25 12:03 tmlx1990