mirror of
https://github.com/langgenius/dify.git
synced 2026-04-24 12:55:49 +08:00
refactor: better /context-generate with frontend support
Signed-off-by: Stream <Stream_2@qq.com>
This commit is contained in:
@ -493,8 +493,8 @@ def test_structured_output_with_pydantic_model():
|
||||
stream=False,
|
||||
)
|
||||
|
||||
assert isinstance(result, LLMResultWithStructuredOutput)
|
||||
assert result.structured_output == {"name": "test"}
|
||||
assert isinstance(result, ExampleOutput)
|
||||
assert result.name == "test"
|
||||
|
||||
|
||||
def test_structured_output_with_pydantic_model_streaming_rejected():
|
||||
|
||||
Reference in New Issue
Block a user