From 03627616bb72fdcec6d57bfb6f28c0556bb70c17 Mon Sep 17 00:00:00 2001 From: Arthur Brenno <64020210+arthurbrenno@users.noreply.github.com> Date: Sat, 1 Feb 2025 18:55:20 -0300 Subject: [PATCH] adding timeout to cast method too --- src/webson/_webson.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/webson/_webson.py b/src/webson/_webson.py index 7c96204..e249c82 100644 --- a/src/webson/_webson.py +++ b/src/webson/_webson.py @@ -222,6 +222,7 @@ async def cast_async[T: msgspec.Struct]( f"\n\n{page_md}\n\n", system_prompt=SYSTEM_PROMPT, response_model=to, + timeout=self.timeout ) return completion.parsed