We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4cb1a86 commit 7aee96eCopy full SHA for 7aee96e
pydantic_ai_slim/pydantic_ai/models/__init__.py
@@ -679,7 +679,7 @@ def override_allow_model_requests(allow_model_requests: bool) -> Iterator[None]:
679
680
def infer_model(
681
model: Model | KnownModelName | str, provider_generator: Callable[[str], Provider[Any]] | None = None
682
-) -> Model: # noqa: C901
+) -> Model:
683
"""Infer the model from the name. May optionally pass a callable that setup a custom provider for the model."""
684
if isinstance(model, Model):
685
return model
0 commit comments