diff --git a/api/core/plugin/entities/plugin_daemon.py b/api/core/plugin/entities/plugin_daemon.py index a3ab65c8f9..3b83121357 100644 --- a/api/core/plugin/entities/plugin_daemon.py +++ b/api/core/plugin/entities/plugin_daemon.py @@ -253,6 +253,7 @@ class CredentialType(enum.StrEnum): else: raise ValueError(f"Invalid credential type: {credential_type}") + class PluginReadmeResponse(BaseModel): content: str = Field(description="The readme of the plugin.") language: str = Field(description="The language of the readme.") diff --git a/api/core/plugin/impl/plugin.py b/api/core/plugin/impl/plugin.py index 6124b0dd8d..036d056fd9 100644 --- a/api/core/plugin/impl/plugin.py +++ b/api/core/plugin/impl/plugin.py @@ -32,7 +32,7 @@ class PluginInstaller(BasePluginClient): f"plugin/{tenant_id}/management/fetch/readme", PluginReadmeResponse, params={ - "tenant_id":tenant_id, + "tenant_id": tenant_id, "plugin_unique_identifier": plugin_unique_identifier, "language": language }