fix: 修复 SuperGrok 付费账号多Agent模型空响应问题#406
Open
Huan-zhaojun wants to merge 1 commit intochenyme:mainfrom
Open
Conversation
- 新增 modeId 映射替代旧的 modelName/modelMode 请求格式
(Grok API 要求付费账号多智能体管线使用 modeId 字段)
- 移除已废弃的 enable420 标志
- 修复 think_closed_once 门控导致多智能体思维链 token 被丢弃的问题
- 使用 messageStepId 将 Agent 思考聚合到单个 <think> 块
- 丢弃正文输出中途插入的孤儿思考 token(Grok 官网也隐藏这部分)
- CollectProcessor 添加 fallback token 收集兜底非流式模式
Author
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.
Summary
修复 SuperGrok 付费账号使用多Agent模型(grok-4.20-beta、grok-4.1-mini、grok-4.1-thinking)时返回空响应的问题。根因是 Grok API 已迁移到
modeId字段,付费账号的多Agent管线需要此字段才能正常初始化;同时think_closed_once门控在多 Agent场景下错误丢弃了思维链和正文内容。Changes
Related Issues
Verification
验证说明:
Breaking Changes
无