Skip to content

Commit 4bdeeb9

Browse files
committed
fix: fix yaml settings not loaded
closes #6 and #5
1 parent 3689900 commit 4bdeeb9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

openai_streaming/struct/handler.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ async def _handle_parsed(self, part) -> Optional[Union[TModel, Terminate]]:
9393
"""
9494
try:
9595
typ = get_args(type(self.handler).__orig_bases__[0])[0]
96-
parsed = typ(**part)
96+
parsed = typ.model_construct(**part)
9797
except (TypeError, ValueError):
9898
return
9999

0 commit comments

Comments
 (0)