mirror of
https://github.com/langgenius/dify.git
synced 2026-05-03 17:08:03 +08:00
feat: optimize icon url
This commit is contained in:
@ -58,9 +58,9 @@ class PluginModelSchemaEntity(BaseModel):
|
||||
|
||||
|
||||
class PluginModelProviderEntity(BaseModel):
|
||||
id: str = Field(alias="ID", description="ID")
|
||||
created_at: datetime = Field(alias="CreatedAt", description="The created at time of the model provider.")
|
||||
updated_at: datetime = Field(alias="UpdatedAt", description="The updated at time of the model provider.")
|
||||
id: str = Field(description="ID")
|
||||
created_at: datetime = Field(description="The created at time of the model provider.")
|
||||
updated_at: datetime = Field(description="The updated at time of the model provider.")
|
||||
provider: str = Field(description="The provider of the model.")
|
||||
tenant_id: str = Field(description="The tenant ID.")
|
||||
plugin_unique_identifier: str = Field(description="The plugin unique identifier.")
|
||||
|
||||
@ -6,7 +6,7 @@ class PluginAssetManager(BasePluginManager):
|
||||
"""
|
||||
Fetch an asset by id.
|
||||
"""
|
||||
response = self._request(method="GET", path=f"plugin/{tenant_id}/assets/{id}")
|
||||
response = self._request(method="GET", path=f"plugin/{tenant_id}/asset/{id}")
|
||||
if response.status_code != 200:
|
||||
raise ValueError(f"can not found asset {id}")
|
||||
return response.content
|
||||
|
||||
Reference in New Issue
Block a user