-
Notifications
You must be signed in to change notification settings - Fork 259
Open
Labels
Description
Describe the Bug
Attribute `__iter__` has incompatible types: `Generator[LLMResultChunkWithStructuredOutput, None, None] | LLMResultWithStructuredOutput.__iter__` has type `BoundMethod[LLMResultWithStructuredOutput, (self: LLMResultWithStructuredOutput) -> Generator[tuple[str, Any], None, None]]`, which is not assignable to `BoundMethod[Generator[LLMResultChunkWithStructuredOutput, None, None] | LLMResultWithStructuredOutput, (self: Generator[LLMResultChunkWithStructuredOutput, None, None] | LLMResultWithStructuredOutput) -> Generator[@_, @_, @_]]`, the type of `Generator.__iter__`
it comes from
--> core/plugin/backwards_invocation/model.py:124:33
|
124 | if isinstance(response, Generator):
| ^^^^^^^^^
|
in https://github.com/langgenius/dify, in case someone needed.
Sandbox Link
No response
(Only applicable for extension issues) IDE Information
No response