GatewayModelClient 参数快照漏记源级推理档位 #7
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
问题
PolyGateway 1.3.3 给
SourceConfig增加了reasoning_effort与effort_fallback。这两个字段会改变实际请求或不支持档位时的处置,但 PolyLoop 1.0.3 的GatewayModelClient.parameters()生成源描述时只记录:nameprovidermodelextra_bodyenable_thinking因此只修改源级
reasoning_effort或effort_fallback时,PolyLoop 的参数快照保持不变,resume()无法发现模型配置已经漂移。相关位置:
src/polyloop/adapters/__init__.py::_describe_sources()。可复现场景
reasoning_effort=low, effort_fallback=error构造一份GatewaySettings,读取GatewayModelClient.parameters()。reasoning_effort改为high,或只把effort_fallback改为nearest。请求级
gateway.reasoning_effort不受这个问题影响:它位于ModelCall.binding,本来就会进入运行快照。缺口只在源级配置。影响
参数快照承诺的是“恢复时模型配置没有变化”。这两个字段漏记后,一条运行可能在配置变化后继续恢复,轨迹却仍声称参数一致。GovDoc-SaaS 首版可以通过不使用这两个源级字段暂时规避,但这不应成为长期前提。
期望
reasoning_effort或effort_fallback的有效值变化时,GatewayModelClient.parameters()必须变化;Effort使用规范化后的稳定字符串;resume(),不要无意让全部旧快照漂移。LLMResponse.applied_effort是否进入 PolyLoop 轨迹是另一件事,不在本 issue 范围内。