Fix: only retrieval plugin-compatible providers when provider_name starts with langgenius (#15133)
This commit is contained in:
parent
b7583e95a5
commit
65da9425df
2 changed files with 26 additions and 11 deletions
|
|
@ -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}"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue