Skip to content

Commit 0362761

Browse files
committed
adding timeout to cast method too
1 parent 3af9806 commit 0362761

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/webson/_webson.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,7 @@ async def cast_async[T: msgspec.Struct](
222222
f"<page>\n\n{page_md}\n\n</page>",
223223
system_prompt=SYSTEM_PROMPT,
224224
response_model=to,
225+
timeout=self.timeout
225226
)
226227
return completion.parsed
227228

0 commit comments

Comments
 (0)