Skip to content

Commit

Permalink
fix: fix yaml settings not loaded
Browse files Browse the repository at this point in the history
closes #6 and #5
  • Loading branch information
AlmogBaku committed May 22, 2024
1 parent 3689900 commit 4bdeeb9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openai_streaming/struct/handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ async def _handle_parsed(self, part) -> Optional[Union[TModel, Terminate]]:
"""
try:
typ = get_args(type(self.handler).__orig_bases__[0])[0]
parsed = typ(**part)
parsed = typ.model_construct(**part)
except (TypeError, ValueError):
return

Expand Down

0 comments on commit 4bdeeb9

Please sign in to comment.