refactor: make comment more understandable

This commit is contained in:
Igor Ilic 2025-09-25 13:58:52 +02:00
parent 8265ec0334
commit 6f8f9bf7de

View file

@ -53,7 +53,7 @@ async def acreate_structured_output(
# Transform BAML response to proper pydantic reponse model
if response_model is str:
# Note: when a response model is set to string in python result is stored in text property in the BAML response model
# Note: when a response model is set to string in python, result is stored in text property in the BAML response model
return str(result.text)
return response_model.model_validate(result.dict())