Initial commit
This commit is contained in:
commit
57fc3525eb
7311 files changed
+1291398
No files matched your search
@@ -0,0 +1,72 @@
|
||||
"""
|
||||
app/models - 数据模型
|
||||
|
||||
职责:
|
||||
- API 数据模型
|
||||
- 配置数据模型
|
||||
- 类型定义
|
||||
"""
|
||||
|
||||
from .schemas import (
|
||||
# 工作流相关
|
||||
ActionType,
|
||||
WorkflowStep,
|
||||
SiteConfig,
|
||||
StreamConfig,
|
||||
|
||||
# 选择器相关
|
||||
SelectorDefinition,
|
||||
GlobalConfig,
|
||||
DEFAULT_SELECTOR_DEFINITIONS,
|
||||
get_default_selector_definitions,
|
||||
|
||||
# API 相关
|
||||
ChatMessage,
|
||||
ChatCompletionRequest,
|
||||
|
||||
# SSE 响应
|
||||
StreamResponse,
|
||||
NonStreamResponse,
|
||||
ErrorResponse,
|
||||
|
||||
# 验证
|
||||
validate_workflow_step,
|
||||
validate_site_config,
|
||||
|
||||
# 常量
|
||||
REQUIRED_SELECTOR_KEYS,
|
||||
OPTIONAL_SELECTOR_KEYS,
|
||||
ALL_SELECTOR_KEYS,
|
||||
)
|
||||
|
||||
__all__ = [
|
||||
# 工作流
|
||||
'ActionType',
|
||||
'WorkflowStep',
|
||||
'SiteConfig',
|
||||
'StreamConfig',
|
||||
|
||||
# 选择器
|
||||
'SelectorDefinition',
|
||||
'GlobalConfig',
|
||||
'DEFAULT_SELECTOR_DEFINITIONS',
|
||||
'get_default_selector_definitions',
|
||||
|
||||
# API
|
||||
'ChatMessage',
|
||||
'ChatCompletionRequest',
|
||||
|
||||
# 响应
|
||||
'StreamResponse',
|
||||
'NonStreamResponse',
|
||||
'ErrorResponse',
|
||||
|
||||
# 验证
|
||||
'validate_workflow_step',
|
||||
'validate_site_config',
|
||||
|
||||
# 常量
|
||||
'REQUIRED_SELECTOR_KEYS',
|
||||
'OPTIONAL_SELECTOR_KEYS',
|
||||
'ALL_SELECTOR_KEYS',
|
||||
]
|
||||
Binary file not shown.
Binary file not shown.
File diff suppressed because it is too large.
Load diff
Reference in new issue
Block a user