refactor: better /context-generate with frontend support

Signed-off-by: Stream <Stream_2@qq.com>
This commit is contained in:
Stream
2026-01-23 01:02:12 +08:00
parent 71f811930f
commit a409e3d32e
5 changed files with 191 additions and 308 deletions

View File

@ -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():