mirror of
https://github.com/langgenius/dify.git
synced 2026-01-14 06:07:33 +08:00
Some checks are pending
Build and Push API & Web / build (api, DIFY_API_IMAGE_NAME, linux/amd64, build-api-amd64) (push) Waiting to run
Build and Push API & Web / build (api, DIFY_API_IMAGE_NAME, linux/arm64, build-api-arm64) (push) Waiting to run
Build and Push API & Web / build (web, DIFY_WEB_IMAGE_NAME, linux/amd64, build-web-amd64) (push) Waiting to run
Build and Push API & Web / build (web, DIFY_WEB_IMAGE_NAME, linux/arm64, build-web-arm64) (push) Waiting to run
Build and Push API & Web / create-manifest (api, DIFY_API_IMAGE_NAME, merge-api-images) (push) Blocked by required conditions
Build and Push API & Web / create-manifest (web, DIFY_WEB_IMAGE_NAME, merge-web-images) (push) Blocked by required conditions
48 lines
1.1 KiB
Python
48 lines
1.1 KiB
Python
from enum import StrEnum
|
|
|
|
|
|
class CommonParameterType(StrEnum):
|
|
SECRET_INPUT = "secret-input"
|
|
TEXT_INPUT = "text-input"
|
|
SELECT = "select"
|
|
STRING = "string"
|
|
NUMBER = "number"
|
|
FILE = "file"
|
|
FILES = "files"
|
|
SYSTEM_FILES = "system-files"
|
|
BOOLEAN = "boolean"
|
|
APP_SELECTOR = "app-selector"
|
|
MODEL_SELECTOR = "model-selector"
|
|
TOOLS_SELECTOR = "array[tools]"
|
|
|
|
# Dynamic select parameter
|
|
# Once you are not sure about the available options until authorization is done
|
|
# eg: Select a Slack channel from a Slack workspace
|
|
DYNAMIC_SELECT = "dynamic-select"
|
|
|
|
# TOOL_SELECTOR = "tool-selector"
|
|
|
|
|
|
class AppSelectorScope(StrEnum):
|
|
ALL = "all"
|
|
CHAT = "chat"
|
|
WORKFLOW = "workflow"
|
|
COMPLETION = "completion"
|
|
|
|
|
|
class ModelSelectorScope(StrEnum):
|
|
LLM = "llm"
|
|
TEXT_EMBEDDING = "text-embedding"
|
|
RERANK = "rerank"
|
|
TTS = "tts"
|
|
SPEECH2TEXT = "speech2text"
|
|
MODERATION = "moderation"
|
|
VISION = "vision"
|
|
|
|
|
|
class ToolSelectorScope(StrEnum):
|
|
ALL = "all"
|
|
CUSTOM = "custom"
|
|
BUILTIN = "builtin"
|
|
WORKFLOW = "workflow"
|