Replies: 3 comments 1 reply
|
developer role 在仅支持 system 的 OpenAI 兼容端点上失败——经典网关方言问题,我们 FAQ 记录过同族(#280/#614):配 https://github.com/Electricitysheep/dsh-handbook/blob/main/docs/faq.md |
1 reply
|
同意——supportsDeveloperRole 这类兼容开关应该在 dsh 本体开放,而不是靠第三方插件绕。第三方网关是刚需场景(不是小众),官方把它做成配置项是成本最低的正解。我们 FAQ 里也标了"等官方开放":https://github.com/Electricitysheep/dsh-handbook/blob/main/docs/faq.md |
0 replies
|
这个 400 可以用一条不修改 Harness 源码的 provider 路线绕开。手写 dsh plugin --profile web add pi2dsh
dsh plugin --profile web add <对应网关的 Pi provider 包>pi2dsh 把自带 transport 的 Pi provider 注册为 DSH 原生 LLM adapter。透传录制验证过:provider 声明 会话、重试、日志和子代理仍然是 DSH;只替换模型 route 的请求 adapter。复现探针在 |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
使用 OpenAI Chat Completions 兼容接口时,为自定义模型开启 reasoning effort 后,DSH 会把 system prompt 以
developerrole 发送。仅支持system、assistant、user和tool的供应商因此返回 400。English summary: When reasoning is enabled for a custom OpenAI-compatible model, DSH sends the system prompt with the
developerrole. Providers that do not support this role reject the request. Reasoning effort and the system/developer role selection should be independently configurable.复现、实际结果、预期结果与建议验收条件
复现
openai-completions(Chat Completions API)的自定义 OpenAI 兼容供应商。reasoningEfforts。本次实测供应商为火山引擎 Ark。实际错误如下,请求 ID 已脱敏:
实际结果
启用 reasoning effort 后,原本的 system prompt 被序列化为
developerrole。供应商不支持该角色,请求在模型推理前直接失败。预期结果
reasoning effort 与 system/developer role 的选择应能独立配置。对于不支持
developerrole 的 OpenAI 兼容供应商,应能继续发送systemrole,同时保留reasoning_effort。期望可以配置:
上游
@earendil-works/pi-ai已定义supportsDeveloperRole?: boolean,但 DSH 当前的PiAiCompatProfile和配置 schema 只暴露thinkingFormat与supportsReasoningEffort,因此无法从 DSH 配置传入该字段。可能的影响范围
openai-completions:已通过火山引擎 Ark 实际复现。openai-responses:尚未实际复现,但代码路径也会在model.reasoning为真且supportsDeveloperRole未设为false时选择developerrole,可能存在相同兼容性问题。相关 DSH 代码:
packages/llm/llm-pi-ai/src/catalog.ts:PiAiCompatProfile、模型 reasoning 配置和 compat 转换。packages/llm/llm-pi-ai/src/config.ts:compat 配置 schema。环境
@deepseek-ai/dsh-llm-pi-ai:0.1.0-rc.547f943859bv22.16.0openai-completions/ Chat Completions建议验收条件
compat.supportsDeveloperRole: false。openai-completions设置该选项后仍发送systemrole,并继续发送所选reasoning_effort。openai-responses的同一选项;保留reasoning.effort,同时发送systemrole。All reactions