GLM-5.3 Flash: Stream output mixed with random English fragments and shortened reasoning in Kelivo client

未关闭
#1,039 3 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
25/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
活跃

调研方向

The report identifies GLM-5.3 Flash through the CommandCode API gateway, used from Kelivo on iOS, with failures especially after web search in long role-play conversations. Start by tracing the API gateway’s streaming and non-streaming response paths and how web search results are passed to the model. Done means reproducing the mixed-language output and instruction-following failure, then identifying a fix that addresses both modes.

由索引模型根据 Issue 内容生成。

描述

Summary

When using GLM-5.3 Flash model via CommandCode API gateway on Kelivo client (version 1.3.1 / 80, iOS), the output randomly inserts unexpected fragments of English, Russian, Thai and other languages into Chinese text.
The issue is prominent in streaming mode, and can still happen occasionally after streaming is disabled. Disabling streaming also causes the model to fail to follow instructions and generate uncontrollable content.
I have tested temperature=1.0 and temperature=0.8 for comparison. The problem becomes much worse with web search enabled, mostly appearing in role-play long context conversations after search finishes.

Expected Behavior

The model should output clean Chinese text without unexpected mixed foreign language fragments. The model should faithfully follow user instructions regardless of streaming mode and temperature settings.

Actual Behavior

In streaming mode, GLM-5.3 Flash randomly inserts fragments of English, Russian, Thai and other foreign languages into Chinese sentences. This phenomenon is very obvious when stream is enabled.
Even if streaming is disabled, this bug still occurs occasionally. Moreover, when streaming is turned off, the model cannot fully follow user instructions and produces uncontrollable content.
The problem is much worse when web search is enabled. It mainly happens during long text generation after web search completes in role-play conversations.
Tested temperature: 1.0 makes the bug more obvious; temperature=0.8 reduces the frequency but cannot eliminate it completely.

Steps to reproduce the issue
  1. Use Kelivo client v1.3.1 / 80 on iOS, set API endpoint to CommandCode, select GLM-5.3 Flash model and enable stream mode.

  2. Turn on the web search function in the prompt.

  3. The model completes web search and retrieves reference materials.

  4. After the search phase finishes, the model starts generating long text for role-play.

  5. Observe the streaming output: random fragments of English, Russian, Thai and other foreign languages are inserted inside Chinese sentences.

  6. Additional test: Disable streaming. The foreign fragment bug still occurs occasionally, and the model may not follow instructions properly, producing uncontrollable output.

  7. Compare test: temperature=1.0 makes the bug more obvious; temperature=0.8 reduces the frequency but cannot eliminate it completely.

  8. When web search is disabled, this bug appears far less often.

Command Code Version

API Gateway (web API, not local CLI)

Operating System

Other

Terminal/IDE

Kelivo Mobile Client

Shell

Not applicable

Session file (optional)

No response

Fix prompt (optional)

No response

Additional context

The issue started happening 2-3 days ago. Client: Kelivo version 1.3.1 / 80, iOS system. When web search function is enabled, the mixed-language problem becomes much worse. If web search is disabled, the bug occurs less frequently. I can provide screenshots of mixed-language output if needed. No API keys or account secrets included.

Note: The following content is for testing purposes only and does not represent any position. The user takes no responsibility for any output generated here. It is only used as a bug sample.

Sample broken output example:

Image Image Image
主要语言
没有语言数据
星标
4.2k
派生
377
平均合并
1 天 17 分钟
30 天内合并 PR
7

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

CommandCodeAI/command-code 的其他 Issue

查看 CommandCodeAI/command-code 的全部 Issue

相似的 Issue

更多 Backend & API Design Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。