refactor: make comment more understandable
This commit is contained in:
parent
8265ec0334
commit
6f8f9bf7de
1 changed files with 1 additions and 1 deletions
|
|
@ -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())
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue