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
commit 65da9425df
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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}"