Skip to content

Commit

Permalink
global import
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelcolvin committed Nov 24, 2024
1 parent ae4fc37 commit 2b228d7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pydantic_ai/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@

import httpx

from ..exceptions import UserError
from ..messages import Message, ModelAnyResponse, ModelStructuredResponse

if TYPE_CHECKING:
Expand Down Expand Up @@ -234,8 +235,6 @@ def infer_model(model: Model | KnownModelName) -> Model:

return VertexAIModel(model[9:]) # pyright: ignore[reportArgumentType]
else:
from ..exceptions import UserError

raise UserError(f'Unknown model: {model}')


Expand Down

0 comments on commit 2b228d7

Please sign in to comment.