Cannot access local variable 'delta_message' where it is not associated with a value #6710

Closed
opened 2026-02-16 18:05:01 -05:00 by yindo · 2 comments
Owner

Originally created by @ohmybro on GitHub (Jan 18, 2026).

Originally assigned to: @rekram1-node on GitHub.

Description

When I use the custom provider, this error occurred, but it works fine with this provider on other tools, such as cherry studio.

Plugins

no

OpenCode version

1.1.25

Steps to reproduce

No response

Screenshot and/or share link

Image

Operating System

macos 26.2

Terminal

built-in terminal

Originally created by @ohmybro on GitHub (Jan 18, 2026). Originally assigned to: @rekram1-node on GitHub. ### Description When I use the custom provider, this error occurred, but it works fine with this provider on other tools, such as cherry studio. ### Plugins no ### OpenCode version 1.1.25 ### Steps to reproduce _No response_ ### Screenshot and/or share link <img width="900" height="599" alt="Image" src="https://github.com/user-attachments/assets/bba00c64-55d8-4cb8-b385-1385a0c35178" /> ### Operating System macos 26.2 ### Terminal built-in terminal
yindo added the bug label 2026-02-16 18:05:01 -05:00
yindo closed this issue 2026-02-16 18:05:01 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Jan 18, 2026):

This issue might be a duplicate of existing issues. Please check:

  • #7692: [Bug] JSON Parse Error with Zhipu GLM-4.7: Stream chunks are concatenated incorrectly - Similar streaming/parsing error with custom OpenAI-compatible provider
  • #7439: AIHubMix provider: streaming completes output but errors near end with ZodError - Related streaming variable handling issue
  • #5210: Custom OpenAI-compatible provider returns no text content - Custom provider streaming/parsing issue with message content

Feel free to ignore if none of these address your specific case.

@github-actions[bot] commented on GitHub (Jan 18, 2026): This issue might be a duplicate of existing issues. Please check: - #7692: [Bug] JSON Parse Error with Zhipu GLM-4.7: Stream chunks are concatenated incorrectly - Similar streaming/parsing error with custom OpenAI-compatible provider - #7439: AIHubMix provider: streaming completes output but errors near end with ZodError - Related streaming variable handling issue - #5210: Custom OpenAI-compatible provider returns no text content - Custom provider streaming/parsing issue with message content Feel free to ignore if none of these address your specific case.
Author
Owner

@ohmybro commented on GitHub (Jan 24, 2026):

The error returned by the server has been confirmed, so this issue is being closed.

@ohmybro commented on GitHub (Jan 24, 2026): The error returned by the server has been confirmed, so this issue is being closed.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#6710