Skip to content

Commit

Permalink
adding timeout to cast method too
Browse files Browse the repository at this point in the history
  • Loading branch information
arthurbrenno committed Feb 1, 2025
1 parent 3af9806 commit 0362761
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/webson/_webson.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,7 @@ async def cast_async[T: msgspec.Struct](
f"<page>\n\n{page_md}\n\n</page>",
system_prompt=SYSTEM_PROMPT,
response_model=to,
timeout=self.timeout
)
return completion.parsed

Expand Down

0 comments on commit 0362761

Please sign in to comment.