完成世界书、骰子、apiconfig页面处理

This commit is contained in:
2026-04-30 01:35:10 +08:00
parent a3e3711b2b
commit ba9b925c32
4602 changed files with 785225 additions and 23 deletions

View File

@@ -0,0 +1,61 @@
"""
数据模型包
导出项目内部真正使用的数据结构 (Internal Models)。
SillyTavern 兼容模型将在需要导入/导出时单独引用。
"""
# 内部业务模型 (项目核心使用)
from .internal import (
# 世界书
ActivationType,
LogicOperator,
LogicExpression,
RAGConfig,
WorldInfoEntry,
WorldInfo,
# 角色卡
OutputSchemaField,
CharacterCard,
# 聊天记录
ChatHeader,
ChatMessage,
ChatLog,
# 预设
GenerationPreset,
# 提示词预设
PromptRole,
PromptEntry,
PromptPresetView,
# RAG 配置
RAGSearchConfig,
CharacterRAGConfig,
ChatRAGConfig,
)
__all__ = [
# 内部模型
'ActivationType',
'LogicOperator',
'LogicExpression',
'RAGConfig',
'WorldInfoEntry',
'WorldInfo',
'OutputSchemaField',
'CharacterCard',
'ChatHeader',
'ChatMessage',
'ChatLog',
'GenerationPreset',
'PromptRole',
'PromptEntry',
'PromptPresetView',
'RAGSearchConfig',
'CharacterRAGConfig',
'ChatRAGConfig',
]