[Bug] deepseek模型配置opencode go测试模型能否通讯报错400,astrbot版本v4.28.0
问题描述
Error code: 400 - {'type': 'error', 'error': {'type': 'MissingSessionID', 'message': 'Error from provider (Console Go): Request is missing x-opencode-session and cannot be routed efficiently. Please see https://opencode.ai/docs/go/#where-can-i-use-it'}}
如何复现?
AstrBot 版本
v4.28.0
操作系统
Linux
部署方式
docker
使用的消息平台适配器
onebot11
错误日志
重启后暂无日志,仅loading弹窗显示错误日志
辅助信息
No response
检查清单
opencode go 接下来需要携带 x-opencode-session 请求头
自定义请求头添加x-opencode-session
自定义请求头 x-opencode-session astrbot
I will take this issue. Please assign it to me.
The error message indicates a missing x-opencode-session header. I will first check the code where requests to the provider are made, likely in the communication module. The fix may involve ensuring this header is included in all requests. I will verify the solution by testing the communication with the provider after adding the header.
本 issue 的根因是缺少 x-opencode-session 请求头,已由 #10054 统一追踪并有人认领修复。关闭本 issue 以避免重复。
The root cause is the missing x-opencode-session request header, which is already tracked and being worked on in #10054. Closing as a duplicate.