mirror of https://github.com/langgenius/dify.git
fix mypy
This commit is contained in:
parent
b3e5a4ecb7
commit
a83da3770f
|
|
@ -1272,7 +1272,7 @@ class ProviderConfiguration(BaseModel):
|
|||
# Get model instance of LLM
|
||||
return model_provider_factory.get_model_type_instance(provider=self.provider.provider, model_type=model_type)
|
||||
|
||||
def get_model_schema(self, model_type: ModelType, model: str, credentials: dict) -> AIModelEntity | None:
|
||||
def get_model_schema(self, model_type: ModelType, model: str, credentials: dict | None) -> AIModelEntity | None:
|
||||
"""
|
||||
Get model schema
|
||||
"""
|
||||
|
|
|
|||
|
|
@ -201,7 +201,7 @@ class ModelProviderFactory:
|
|||
return filtered_credentials
|
||||
|
||||
def get_model_schema(
|
||||
self, *, provider: str, model_type: ModelType, model: str, credentials: dict
|
||||
self, *, provider: str, model_type: ModelType, model: str, credentials: dict | None
|
||||
) -> AIModelEntity | None:
|
||||
"""
|
||||
Get model schema
|
||||
|
|
|
|||
Loading…
Reference in New Issue