Skip to content

Commit

Permalink
refactor: add type hint for 'provider' variable in Completions
Browse files Browse the repository at this point in the history
  • Loading branch information
DninoAdnane committed Jan 14, 2025
1 parent 206dfab commit 9149eb9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions aisuite/client.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from .provider import ProviderFactory
from .provider import ProviderFactory, Provider


class Client:
Expand Down Expand Up @@ -109,7 +109,7 @@ def create(self, model: str, messages: list, **kwargs):
provider_key, config
)

provider = self.client.providers.get(provider_key)
provider: Provider = self.client.providers.get(provider_key)
if not provider:
raise ValueError(f"Could not load provider for '{provider_key}'.")

Expand Down

0 comments on commit 9149eb9

Please sign in to comment.