Fix: only retrieval plugin-compatible providers when provider_name starts with langgenius (#15133)

This commit is contained in:
Yeuoly
2025-03-07 00:41:56 +08:00
committed by GitHub
parent b7583e95a5
commit 65da9425df
2 changed files with 26 additions and 11 deletions

View File

@@ -164,6 +164,9 @@ class GenericProviderID:
self.organization, self.plugin_name, self.provider_name = value.split("/")
self.is_hardcoded = is_hardcoded
def is_langgenius(self) -> bool:
return self.organization == "langgenius"
@property
def plugin_id(self) -> str:
return f"{self.organization}/{self.plugin_name}"