feat: 当上游 API 返回内容长度为 0 时,将其认定为失败并触发负载均衡重试 - #208
Open
adamhj wants to merge 1 commit into
Open
Conversation
chenjingxiong
added a commit
to chenjingxiong/octopus
that referenced
this pull request
Jun 21, 2026
…truirui#208 已内置) 合入的 PR: - bestruirui#262 添加活动热力图自定义日期范围选择功能 (cherry-pick) - bestruirui#271 修复日志无法滚动问题 (手动适配:VirtualizedGrid reachEnd 重置 + 日志分页偏移) - bestruirui#287 加入 rerank 转发路由 + 重复资源检测 (手动适配) - bestruirui#208 空响应检测触发负载均衡重试 → 已被 axonhub/llm 内置 WithEmptyResponseDetection() 覆盖,无需手动移植 跳过的 PR: - bestruirui#282 TOTP + JSON 替换 (+1425/-115,改动过大) - bestruirui#270 key 选择模式 (改了已删除的 images.go,需大量适配) - bestruirui#199 熔断器开关 (改了已删除的 transformer,冲突复杂) - bestruirui#198 渠道标签系统 (13 文件,改动偏大) - bestruirui#194 日志筛选增强 (8 文件 +512/-86,改动偏大) - bestruirui#190 统计清除 (合并提交多,冲突复杂) - bestruirui#184 渠道排序 (排序已内置上游,复制功能非核心) 版本升级至 v0.9.28-2 Co-Authored-By: Claude <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
我遇到某些上游中转,会出现回包不为空(http 200,有json包体),但是没有实际内容(assistant消息/工具调用)的情况,所以有了这个PR
例如这样的:
由于流式没办法在转发流量之前判断,所以这个只能覆盖非流式响应