Skip to content

Commit c7d8d70

Browse files
author
zhaobin
committed
fix: fix openrouter provider's missing overload
http_client can be provided without api_key because api_key can be read from envrionment
1 parent 9c31521 commit c7d8d70

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)