feat: support define tags in tool yaml (#4763)
This commit is contained in:
parent
b189faca52
commit
74f38eacda
82 changed files with 187 additions and 255 deletions
|
|
@ -1,6 +1,5 @@
|
|||
from typing import Any
|
||||
|
||||
from core.tools.entities.values import ToolLabelEnum
|
||||
from core.tools.provider.builtin.stability.tools.base import BaseStabilityAuthorization
|
||||
from core.tools.provider.builtin_tool_provider import BuiltinToolProviderController
|
||||
|
||||
|
|
@ -14,8 +13,3 @@ class StabilityToolProvider(BuiltinToolProviderController, BaseStabilityAuthoriz
|
|||
This method is responsible for validating the credentials.
|
||||
"""
|
||||
self.sd_validate_credentials(credentials)
|
||||
|
||||
def _get_tool_labels(self) -> list[ToolLabelEnum]:
|
||||
return [
|
||||
ToolLabelEnum.IMAGE
|
||||
]
|
||||
|
|
@ -10,6 +10,8 @@ identity:
|
|||
zh_Hans: 通过生成式 AI 激活人类的潜力
|
||||
pt_BR: Activating humanity's potential through generative AI
|
||||
icon: icon.svg
|
||||
tags:
|
||||
- image
|
||||
credentials_for_provider:
|
||||
api_key:
|
||||
type: secret-input
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue