Skip to content

log: name upstream error class and skipped fallback tiers - #48

Merged
jasonxu114514 merged 1 commit into
jasonxu114514:mainfrom
SK-DEV-AI:pr/upstream-error-logs
Oct 7, 2026
Merged

jasonxu114514 merged 1 commit into
jasonxu114514:mainfrom
SK-DEV-AI:pr/upstream-error-logs

Conversation

@SK-DEV-AI

Copy link
Copy Markdown
Contributor

Two small observability additions, no behavior change. (1) Log a 240-char snippet of non-2xx upstream bodies as upstream_error_body so the 400 class is visible without dumping full payloads; bodies stay out of attempt records and the hub redactor scrubs configured secrets. (2) Log skipped fallback tiers as fallback_tier_skipped at debug when a non-preferred tier request shape fails to prepare, instead of silently dropping the tier.

Log a 240-char snippet of non-2xx upstream bodies (upstream_error_body)
so the 400 class is visible without dumping full payloads; the hub
redactor scrubs configured secrets. Also log skipped fallback tiers
(fallback_tier_skipped) at debug when a non-preferred tier's request
shape fails to prepare, instead of silently dropping the tier.
jasonxu114514 added a commit that referenced this pull request Oct 7, 2026
保留 reasoning 配置,新增免费模型可用性探测 / 手动恢复、首 SSE 事件超时,元数据改用官方地址。按维护者要求,最终文件树排除测试文件。

验证:本地 Go 回归、go vet / build、Prettier、JS / shell 语法及独立实例管理端验收通过。
@jasonxu114514
jasonxu114514 merged commit baa9a61 into jasonxu114514:main Oct 7, 2026
5 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