8000 老大,使用openai通用接口出bug了 · Issue #67 · Zao-chen/ZcChat · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
3 tasks done
lvye2011 opened this issue Apr 12, 2025 · 3 comments
Open
3 tasks done

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

lvye2011 opened this issue Apr 12, 2025 · 3 comments
Labels
need help 需要一些使用上的帮助 question 请求提供更多信息,如果问题已解决请关闭Issue

Comments

@lvye2011
Copy link
lvye2011 commented Apr 12, 2025

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

  • 尝试过最新测试版的ZcChat,依然有这个问题
  • 我已经认真阅读过README和WIKI,以及issue里没有重复问题
  • 我认为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 lvye2011 added the bug 有些东西不工作 label Apr 12, 2025
@Zao-chen
Copy link
Owner

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

@lvye2011
Copy link
Author
lvye2011 commented Apr 12, 2025

提供一下完整日志,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关闭……

@Zao-chen
Copy link
Owner

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

@Zao-chen Zao-chen added need help 需要一些使用上的帮助 question 请求提供更多信息,如果问题已解决请关闭Issue and removed bug 有些东西不工作 labels May 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
need help 需要一些使用上的帮助 question 请求提供更多信息,如果问题已解决请关闭Issue
Projects
None yet
Development

No branches or pull requests

2 participants
0