ZcChat icon indicating copy to clipboard operation
ZcChat copied to clipboard

老大,使用openai通用接口出bug了

Open lvye2011 opened this issue 9 months ago • 3 comments

确认在反馈bug前尝试过以下办法(在[]内输入x确认)

  • [x] 尝试过最新测试版的ZcChat,依然有这个问题
  • [x] 我已经认真阅读过README和WIKI,以及issue里没有重复问题
  • [x] 我认为ZcChat的问题,而不是Letta或者是Vits的

bug描述 在完成步骤3后,输入“你好”等任意词语,无法出现对话,而是报错 “2025-04-12 23:02:15 [Error] 发生错误: [json.exception.type_error.302] type must be string, but is null” 此时语音合成和语音输入功能均未打开,立绘也已改为初始

复现方式 重现bug的步骤:

  1. 打开 对话框
  2. 点击 回车
  3. 看到error/闪退

预期行为 出现基本对话

Image

屏幕截图以及报错内容 如果适用,请添加屏幕截图和报错内容以帮助解释您的问题。

使用版本

  • ZcChat版本

附加信息 在此处添加有关该问题的任何其他上下文。 请添加ZcChat根目录下的log.txt文件。

lvye2011 avatar Apr 12 '25 15:04 lvye2011

提供一下完整日志,openai的api接口应该是https://api.openai.com/v1/chat/completions​

Zao-chen avatar Apr 12 '25 15:04 Zao-chen

提供一下完整日志,openai的api接口应该是 https://api.openai.com/v1/chat/completions

我用的deepseek,之前letta可以用v3,后来我看能通用了我就直接把放上去url和key放zc上面了,之后就一直报错

2025-04-13 00:20:28 [Info] [UnknownWindow] MainWindow初始化…… 2025-04-13 00:20:29 [Warning] [UnknownWindow] QLayout: Attempting to add QLayout "" to MainWindow "ElaWindow", which already has a layout 2025-04-13 00:20:29 [Info] [UnknownWindow] 当前运行版本: "v4.7.3" 2025-04-13 00:20:29 [Info] [UnknownWindow] 初始化窗口…… 2025-04-13 00:20:29 [Info] [UnknownWindow] 初始化galgamedialog…… 2025-04-13 00:20:29 [Info] [UnknownWindow] history 窗口创建... 2025-04-13 00:20:29 [Info] [UnknownWindow] 使用的音频输入设备: "麦克风阵列 (Realtek(R) Audio)" 2025-04-13 00:20:29 [Info] [UnknownWindow] 不使用语音输入 2025-04-13 00:20:29 [Info] [UnknownWindow] 不使用 VAD 2025-04-13 00:20:29 [Warning] [UnknownWindow] QObject::disconnect: Unexpected nullptr parameter 2025-04-13 00:20:29 [Info] [UnknownWindow] galgamedialog加载完成! 2025-04-13 00:20:29 [Info] [UnknownWindow] 置顶状态 true 2025-04-13 00:20:29 [Info] [UnknownWindow] 立绘缩放为: 1 2025-04-13 00:20:29 [Info] [UnknownWindow] 切换语言到 "zh_CN" 2025-04-13 00:20:29 [Info] [UnknownWindow] 切换成功 "zh_CN" 2025-04-13 00:20:29 [Info] [UnknownWindow] 读取配置…… 2025-04-13 00:20:29 [Info] [UnknownWindow] 读取到角色列表: QList("test") 2025-04-13 00:20:29 [Info] [UnknownWindow] 当前角色: "test" 2025-04-13 00:20:29 [Info] [UnknownWindow] 开机自启: false 2025-04-13 00:20:29 [Info] [UnknownWindow] 自启动脚本: false 2025-04-13 00:20:29 [Info] [UnknownWindow] 使用语言: "zh_CN" 2025-04-13 00:20:29 [Info] [UnknownWindow] 逐字显示时间: 40 2025-04-13 00:20:29 [Info] [UnknownWindow] 对话框缩放: 100 2025-04-13 00:20:29 [Info] [UnknownWindow] LLM URL: "http://localhost:8283" 2025-04-13 00:20:29 [Info] [UnknownWindow] openai URL: "https://api.deepseek.com" 2025-04-13 00:20:29 [Info] [UnknownWindow] openai model: "" 2025-04-13 00:20:29 [Info] [UnknownWindow] 启用反馈: true 2025-04-13 00:20:29 [Info] [UnknownWindow] 语音识别 API: 1 2025-04-13 00:20:29 [Info] [UnknownWindow] 语音识别 URL: "http://localhost:9000" 2025-04-13 00:20:29 [Info] [UnknownWindow] 启用语音输入: false 2025-04-13 00:20:29 [Info] [UnknownWindow] 启用唤醒: false 2025-04-13 00:20:29 [Info] [UnknownWindow] 启用打断: false 2025-04-13 00:20:29 [Info] [UnknownWindow] 语音输入能量阈值: 20000 2025-04-13 00:20:29 [Info] [UnknownWindow] 语音输入尺寸阈值: 4000 2025-04-13 00:20:29 [Info] [UnknownWindow] 启用 VITS: false 2025-04-13 00:20:29 [Info] [UnknownWindow] VITS URL: "http://localhost:23456" 2025-04-13 00:20:29 [Info] [UnknownWindow] 初始化托盘…… 2025-04-13 00:20:29 [Info] [UnknownWindow] 获取新版本消息…… 2025-04-13 00:20:30 [Info] [tachie] "当前为最新版本v4.7.3" 2025-04-13 00:20:30 [Info] [tachie] 重载角色配置…… 2025-04-13 00:20:30 [Info] [tachie] 设置角色! "test" 2025-04-13 00:20:30 [Info] [tachie] 置顶状态 true 2025-04-13 00:20:30 [Info] [UnknownWindow] 立绘缩放为: 1 2025-04-13 00:20:31 [Info] [UnknownWindow] MainWindow加载完成! 2025-04-13 00:20:37 [Info] [tachie] 显示对话框…… 2025-04-13 00:20:37 [Info] [tachie] 【发送】立绘 --- 打开对话框 ---> 主窗口 2025-04-13 00:20:38 [Info] [galgamedialog] 子窗口创建: "你好\n" 2025-04-13 00:20:38 [Info] [galgamedialog] 添加日志: "你好\n" 2025-04-13 00:20:38 [Info] [galgamedialog] 发送 API openai 请求…… 2025-04-13 00:20:38 [Info] [galgamedialog] 发送 post 请求: "{"messages":[{"content":"","role":"system"},{"content":"你好","role":"user"}],"model":""}" 2025-04-13 00:20:39 [Info] [galgamedialog] 获取到 API 响应: "{\n "event_id": "30-inst-228-20250413002036-7191da28",\n "error_msg": "Not Found. Please check the configuration."\n}\n\n" 2025-04-13 00:20:39 [Info] [galgamedialog] 解析后的 JSON: "{"error_msg":"Not Found. Please check the configuration.","event_id":"30-inst-228-20250413002036-7191da28"}" 2025-04-13 00:20:39 [Critical] [galgamedialog] 发生错误: [json.exception.type_error.302] type must be string, but is null 2025-04-13 00:20:43 [Info] [galgamedialog] 读取到message "正常|[error] opeanai请求错误 |错误error" 2025-04-13 00:20:43 [Info] [galgamedialog] "切换立绘:正常" 2025-04-13 00:20:43 [Info] [galgamedialog] 子窗口创建: "正常|[error] opeanai请求错误 |错误error" 2025-04-13 00:20:43 [Info] [galgamedialog] 添加日志: "正常|[error] opeanai请求错误 |错误error" 2025-04-13 00:20:43 [Info] [galgamedialog] "【接收】对话框 --- 修改立绘正常 ---> 立绘" 2025-04-13 00:20:43 [Info] [galgamedialog] 立绘缩放为: 1 2025-04-13 00:20:43 [Info] [galgamedialog] 播放动画 0 2025-04-13 00:21:53 [Info] [galgamedialog] 子窗口创建: "nh\n" 2025-04-13 00:21:53 [Info] [galgamedialog] 添加日志: "nh\n" 2025-04-13 00:21:53 [Info] [galgamedialog] 发送 API openai 请求…… 2025-04-13 00:21:53 [Info] [galgamedialog] 发送 post 请求: "{"messages":[{"content":"","role":"system"},{"content":"你好","role":"user"},{"content":"nh","role":"user"}],"model":""}" 2025-04-13 00:21:54 [Info] [galgamedialog] 获取到 API 响应: "{\n "event_id": "30-inst-228-20250413002151-46258e5f",\n "error_msg": "Not Found. Please check the configuration."\n}\n\n" 2025-04-13 00:21:54 [Info] [galgamedialog] 解析后的 JSON: "{"error_msg":"Not Found. Please check the configuration.","event_id":"30-inst-228-20250413002151-46258e5f"}" 2025-04-13 00:21:54 [Critical] [galgamedialog] 发生错误: [json.exception.type_error.302] type must be string, but is null 2025-04-13 00:21:57 [Info] [galgamedialog] 读取到message "正常|[error] opeanai请求错误 |错误error" 2025-04-13 00:21:57 [Info] [galgamedialog] "切换立绘:正常" 2025-04-13 00:21:57 [Info] [galgamedialog] 子窗口创建: "正常|[error] opeanai请求错误 |错误error" 2025-04-13 00:21:57 [Info] [galgamedialog] 添加日志: "正常|[error] opeanai请求错误 |错误error" 2025-04-13 00:21:57 [Info] [galgamedialog] "【接收】对话框 --- 修改立绘正常 ---> 立绘" 2025-04-13 00:21:57 [Info] [galgamedialog] 立绘缩放为: 1 2025-04-13 00:21:57 [Info] [galgamedialog] 播放动画 0 2025-04-13 00:24:08 [Info] [tachie] 隐藏对话框…… 2025-04-13 00:24:08 [Info] [tachie] 【发送】立绘 --- 打开对话框 ---> 主窗口 2025-04-13 00:24:08 [Info] [tachie] 【发送】立绘 --- 保存位置 ---> 主窗口 1133 273 2025-04-13 00:24:21 [Info] [tachie] 【发送】立绘 --- 保存位置 ---> 主窗口 1321 47 2025-04-13 00:27:40 [Info] [tachie] 【发送】立绘 --- 保存位置 ---> 主窗口 675 246 2025-04-13 00:27:40 [Info] [tachie] 【发送】立绘 --- 保存位置 ---> 主窗口 677 245 2025-04-13 00:27:40 [Info] [tachie] 显示对话框…… 2025-04-13 00:27:40 [Info] [tachie] 【发送】立绘 --- 打开对话框 ---> 主窗口 2025-04-13 00:27:42 [Warning] [galgamedialog] QTextCursor::setPosition: Position '1' out of range 2025-04-13 00:27:43 [Info] [galgamedialog] 子窗口创建: "nh\n" 2025-04-13 00:27:43 [Info] [galgamedialog] 添加日志: "nh\n" 2025-04-13 00:27:43 [Info] [galgamedialog] 发送 API openai 请求…… 2025-04-13 00:27:43 [Info] [galgamedialog] 发送 post 请求: "{"messages":[{"content":"","role":"system"},{"content":"你好","role":"user"},{"content":"nh","role":"user"},{"content":"nh","role":"user"}],"model":""}" 2025-04-13 00:27:44 [Info] [galgamedialog] 获取到 API 响应: "{\n "event_id": "30-inst-228-20250413002741-bfe7de1b",\n "error_msg": "Not Found. Please check the configuration."\n}\n\n" 2025-04-13 00:27:44 [Info] [galgamedialog] 解析后的 JSON: "{"error_msg":"Not Found. Please check the configuration.","event_id":"30-inst-228-20250413002741-bfe7de1b"}" 2025-04-13 00:27:44 [Critical] [galgamedialog] 发生错误: [json.exception.type_error.302] type must be string, but is null 2025-04-13 00:27:57 [Info] [UnknownWindow] 读取到message "正常|[error] opeanai请求错误 |错误error" 2025-04-13 00:27:57 [Info] [UnknownWindow] "切换立绘:正常" 2025-04-13 00:27:57 [Info] [UnknownWindow] 子窗口创建: "正常|[error] opeanai请求错误 |错误error" 2025-04-13 00:27:57 [Info] [UnknownWindow] 添加日志: "正常|[error] opeanai请求错误 |错误error" 2025-04-13 00:27:57 [Info] [UnknownWindow] "【接收】对话框 --- 修改立绘正常 ---> 立绘" 2025-04-13 00:27:57 [Info] [UnknownWindow] 立绘缩放为: 1 2025-04-13 00:27:57 [Info] [UnknownWindow] 播放动画 0 2025-04-13 00:27:57 [Info] [UnknownWindow] MainWindow关闭……

lvye2011 avatar Apr 12 '25 16:04 lvye2011

ds的url应该是https://api.deepseek.com/chat/completions

Zao-chen avatar Apr 13 '25 00:04 Zao-chen

此问题已过时,因为它已打开30天,没有任何活动。如该问题仍未解决,请提供更多信息。

github-actions[bot] avatar May 31 '25 02:05 github-actions[bot]

此问题已关闭,因为自标记为过时以来,它已处于非活动状态14天。

github-actions[bot] avatar Jun 14 '25 02:06 github-actions[bot]