ambiguous-pointer commented on PR #1585:
URL: https://github.com/apache/dubbo-admin/pull/1585#issuecomment-6877767639

   针对 11-07 那轮评审的意见,这一版已经全部处理,另外补了两笔。
   
   一个背景:11-07 那轮评审之后,PR 在 11-08 又 force-push 过一次,所以那三条对话描述的是 `ff5f346` 的代码。当前 
head 是 `83eec1b` = `033012e` + `fix(ai): share the effort-level vocabulary and 
gofmt the compat layer`。
   
   你列的 approve 条件:
   
   1. **不生效的字段标清楚** —— `Compat` 现在分成 Applied 与 Reserved 两组。Reserved 
的那些(`send_back_thinking`、`thinking_field`、`thinking_tags`、`ignore_leading_whitespace`、`supports_*`、`requires_*`、`backfill_thinking_field`)在
 `Validate` 里直接拒绝启动,错误信息带原因和文档指针;`models.schema.json` 每个键都标了 "Reserved: ... 
Configuring it is rejected at startup";`models.yaml` 不再带任何 reserved 
键;`docs/ai-provider-compat.md` 逐个列了 reserved 的原因、以及将来会应用在哪
   2. **budget 断言校验值** —— 断言 `body["thinking_budget"] == 1024`,三种拼法各一条
   
   其余三条也一并做了:`chat_template_key` 可配、`reasoning_effort` 的注释不再承诺做不到的事、ADR 里的结论落到了 
`docs/ai-provider-compat.md`。
   
   这一版另外补了两笔,都是评审意见之外的东西:
   
   - `models.reasoningEffortValues` 之前是死变量 —— 没有任何地方读它,而它的注释写着 "ApplyRequest 
maps from this set onto whatever the endpoint actually accepts",实际上 `openai` / 
`openrouter` 是原样透传的。现在导出为 `ReasoningEffortLevels`、注释改成与实现一致,`agent/react` 
也改用它,不再留第二份同样的列表
   - `compat.go` / `compat_test.go` 之前不是 gofmt 干净的。提一句背景:`ci.yml` 的格式门禁跑的是 
`make fmt`(`go fmt ./...`),只覆盖根 module,而 `ai/` 是嵌套的独立 module、根命令进不去 —— 所以 CI 
抓不到它,但 `gofmt -l` 在 module 内会把它标出来
   
   验证:`go build ./...`、`go vet ./...`、`go test ./...`(22 个包)全绿。
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to