Skip to content

Commit 063278e

Browse files
xcpkyDouweM
andauthored
Fix types to let OpenRouterProvider be created with only http_client (#3308)
Co-authored-by: Douwe Maan <[email protected]>
1 parent c1d49d4 commit 063278e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pydantic_ai_slim/pydantic_ai/providers/openrouter.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,9 @@ def __init__(self, *, api_key: str) -> None: ...
8181
@overload
8282
def __init__(self, *, api_key: str, http_client: httpx.AsyncClient) -> None: ...
8383

84+
@overload
85+
def __init__(self, *, http_client: httpx.AsyncClient) -> None: ...
86+
8487
@overload
8588
def __init__(self, *, openai_client: AsyncOpenAI | None = None) -> None: ...
8689

0 commit comments

Comments
 (0)