(1.0) fix: invalid default model provider (#13572)

This commit is contained in:
Yeuoly
2025-02-12 14:21:58 +08:00
committed by GitHub
parent 2ea3b64a45
commit 7c1d842cfe
2 changed files with 12 additions and 1 deletions

View File

@ -169,6 +169,13 @@ class GenericProviderID:
return f"{self.organization}/{self.plugin_name}"
class ModelProviderID(GenericProviderID):
def __init__(self, value: str, is_hardcoded: bool = False) -> None:
super().__init__(value, is_hardcoded)
if self.organization == "langgenius" and self.provider_name == "google":
self.provider_name = "gemini"
class PluginDependency(BaseModel):
class Type(enum.StrEnum):
Github = PluginInstallationSource.Github.value