mirror of
https://github.com/langgenius/dify.git
synced 2026-04-29 04:26:30 +08:00
feat(provider): add multiple option support in ProviderConfig
- Introduced a new field `multiple` in the `ProviderConfig` class to allow for multiple selections, enhancing the configuration capabilities for providers. - This addition improves flexibility in provider settings and aligns with the evolving requirements for provider configurations.
This commit is contained in:
parent
a567facf2b
commit
a173dc5c9d
@ -194,6 +194,7 @@ class ProviderConfig(BasicProviderConfig):
|
|||||||
required: bool = False
|
required: bool = False
|
||||||
default: Optional[Union[int, str, float, bool, list]] = None
|
default: Optional[Union[int, str, float, bool, list]] = None
|
||||||
options: Optional[list[Option]] = None
|
options: Optional[list[Option]] = None
|
||||||
|
multiple: bool | None = False
|
||||||
label: Optional[I18nObject] = None
|
label: Optional[I18nObject] = None
|
||||||
help: Optional[I18nObject] = None
|
help: Optional[I18nObject] = None
|
||||||
url: Optional[str] = None
|
url: Optional[str] = None
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user