Skip to content

issues 8 - #267

Merged
luk384090-cloud merged 3 commits into
mainfrom
dev/issues-8
Sep 11, 2026
Merged

luk384090-cloud merged 3 commits into
mainfrom
dev/issues-8

Conversation

@lzsweb

@lzsweb lzsweb commented Sep 3, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • 补齐 x-dashscope-sdk-client 的 module 段遗漏:AsrPhraseFinetuneOption.getModule() 返回 "audio";OSSUtils 改走 9 参 buildHttpHeaders 传入 "utils",两者现在发出完整的 client/version/module 格式。
  • 新增针对 sdk-client 头契约的测试:单测 TestDashScopeHeaders(14 个)+ MockWebServer 线级测试 TestSdkClientTrackingHeader(4 个),锁定 client/version[/module] 合并格式、仅发 sdk-client + session-id 两个头(sdk-version/sdk-module 不存在)、自定义头覆盖、DASHSCOPE_DISABLE_SDK_HEADERS 关闭开关、各 ServiceOption 的 module 映射。

Test plan

  • mvn test -Dtest=TestDashScopeHeaders,TestSdkClientTrackingHeader — 18/18 通过
  • 全量回归:233 个测试,0 失败,2 个既有跳过
  • lint.sh clean
  • 变异验证:重新加入 sdk-version / 破坏 module 段会导致 7 个测试失败

zhansheng.lzs and others added 3 commits September 3, 2026 15:28
AsrPhraseFinetuneOption and OSSUtils requests sent
x-dashscope-sdk-client without the module segment; they now report
"audio" and "utils" respectively. Add unit and wire-level tests locking
the client/version[/module] + session-id header contract.
The contract is exactly x-dashscope-sdk-client (client/version[/module])
plus x-dashscope-sdk-session-id. Drop references to the retired
x-dashscope-sdk-version/x-dashscope-sdk-module names; absence of any
other x-dashscope-sdk-* header is now guarded by prefix scanning, both
at the builder level and on the wire.
@luk384090-cloud
luk384090-cloud merged commit fe9313e into main Sep 11, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants