• Joined on 2026-07-08
iomgaa opened issue iomgaa/PolyGateway#4 2026-07-31 16:24:17 +08:00
chat() 无法传递采样参数:temperature / seed / max_tokens 都够不着,下游无法固定解码
iomgaa closed pull request iomgaa/PolyGateway#1 2026-07-31 16:12:04 +08:00
fix(config): 装配守卫挪进 __post_init__,任何构造路径都生效
iomgaa commented on pull request iomgaa/PolyGateway#1 2026-07-31 16:11:53 +08:00
fix(config): 装配守卫挪进 __post_init__,任何构造路径都生效

不合并本 PR,但问题全部采纳,已在 v1.0.1 与 v1.0.2 修完

诊断是准确的:GatewaySettings 的 docstring 声称"构造经 from_env 聚合并通过全部守卫",而守卫只挂在 from_env 上,from_settings() 与直接构…

iomgaa closed issue iomgaa/PolyGateway#2 2026-07-31 16:10:11 +08:00
est_tokens 应由库按实测自估,而不是让调用方填一个没有正确取值的常量
iomgaa opened issue iomgaa/PolyGateway#3 2026-07-31 16:07:30 +08:00
LLMResponse 缺两个可观测字段:供应商 prompt cache 命中 token 数、API 实际返回的模型版本串
iomgaa commented on issue iomgaa/PolyGateway#2 2026-07-31 00:44:13 +08:00
est_tokens 应由库按实测自估,而不是让调用方填一个没有正确取值的常量

v1.0.3 已发布

已合并到 main(tag v1.0.3)并发到实验室私有源。合并结果上复验 make ci:605 passed,覆盖率 92%。

pip install --extra-index-url https://gitea.iomgaa.online/api/packages/i…
iomgaa pushed tag v1.0.3 to iomgaa/PolyGateway 2026-07-31 00:42:55 +08:00
iomgaa pushed to main at iomgaa/PolyGateway 2026-07-31 00:42:52 +08:00
8495cea5dc docs: close out the plan with the external deliverables done
abca723d3d chore: release 1.0.3 with the est_tokens decoupling
63b85508c7 docs: tick off the plan items that are actually done
4e06d5e801 docs: widen the GovDoc usage_source note to three states
4e5a91d802 docs: log the est_tokens decoupling behavior changes
Compare 20 commits »
iomgaa commented on issue iomgaa/PolyGateway#2 2026-07-31 00:16:51 +08:00
est_tokens 应由库按实测自估,而不是让调用方填一个没有正确取值的常量

已实现,方案与前一条回复一致

实现完成在分支 feature/est-tokens-decoupling,版本号定为 1.0.3(patch:字段与环境键都没删没改名、端口签名未动、API 严格向后兼容,变的是遥测的数据口径)。**尚未合并…

iomgaa commented on issue iomgaa/PolyGateway#2 2026-07-30 15:47:50 +08:00
est_tokens 应由库按实测自估,而不是让调用方填一个没有正确取值的常量

感谢这份 issue,论证比一般的功能请求扎实得多,尤其是把「下游正在被卡住」的具体形态写清楚了。我们核对了库内代码,核心诉求接受,但有两条理由我们认为归因偏了,建议的解法也不打算照做。逐条回应。

##…

iomgaa pushed to fix/settings-invariants-round-2 at iomgaa/PolyGateway 2026-07-30 14:32:52 +08:00
iomgaa created branch fix/settings-invariants-round-2 in iomgaa/PolyGateway 2026-07-30 14:32:52 +08:00
iomgaa pushed to main at iomgaa/PolyGateway 2026-07-30 14:32:49 +08:00
afd6101c08 test: cover the env-key messages left unguarded by mutation testing
726f26d8bd fix: normalise scope and blank strings on the construction path too
c9fdff9d55 fix: keep credentials out of the DSN rewrite warning
a65b504a3d fix: consolidate remaining assembly validation into GatewaySettings
8c9e1179bc docs: design second round of settings validation consolidation
Compare 5 commits »
iomgaa opened issue iomgaa/PolyGateway#2 2026-07-30 14:13:18 +08:00
est_tokens 应由库按实测自估,而不是让调用方填一个没有正确取值的常量
iomgaa pushed to fix/settings-invariant-guards at iomgaa/PolyGateway 2026-07-30 12:37:59 +08:00
iomgaa created branch fix/settings-invariant-guards in iomgaa/PolyGateway 2026-07-30 12:37:59 +08:00
iomgaa pushed to main at iomgaa/PolyGateway 2026-07-30 12:37:56 +08:00
b693d442f5 docs: record approval, verification evidence and a follow-up gap
64d0fac879 docs: clarify where the invalid-settings exception is raised
8b8f396486 chore: bump version to 1.0.1 with changelog
b8f738f8cb fix: enforce cross-field settings invariants on every construction path
91671a77df test: pin OCR live tests to trust_env=false
Compare 6 commits »
iomgaa created pull request iomgaa/PolyGateway#1 2026-07-30 11:26:42 +08:00
fix(config): 装配守卫挪进 __post_init__,任何构造路径都生效
iomgaa created branch fix/guards-on-every-settings-construction in iomgaa/PolyGateway 2026-07-29 23:32:13 +08:00
iomgaa pushed to fix/guards-on-every-settings-construction at iomgaa/PolyGateway 2026-07-29 23:32:13 +08:00
f76a89b1a1 fix(config): 装配守卫挪进 __post_init__,任何构造路径都生效