Skip to content

fix(zhipu): mark truncated responses - #3883

Open
Shizoqua wants to merge 1 commit into
HKUDS:mainfrom
Shizoqua:fix/zhipu-truncation-cache
Open

fix(zhipu): mark truncated responses#3883
Shizoqua wants to merge 1 commit into
HKUDS:mainfrom
Shizoqua:fix/zhipu-truncation-cache

Conversation

@Shizoqua

@Shizoqua Shizoqua commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

Summary

Mark Zhipu responses ending with finish_reason="length" as truncated.

Problem

Token-limited responses could be cached as complete.

Changes

Wrap truncated Zhipu output in TruncatedResponse.

Testing

  • Zhipu tests: 15 passed

  • Pre-commit: passed

  • git diff --check: passed

Compatibility and Risk

Low risk. Response text remains unchanged.

Related Issue

No related issue.

Signed-off-by: Lanre Shittu <136805224+Shizoqua@users.noreply.github.com>
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.

1 participant