- 新增 executor/history.py:HistoryManager(内存 deque + JSONL 持久化) - generate 完成后自动记录历史(参数、seed、尺寸等) - 新增 MCP 工具 list_anima_history 和 reroll_anima_image - generate 和 reroll 均支持 repeat(多次 queue)和 batch_size - HTTP server 新增 /history 和 /reroll 端点
22 lines
546 B
Python
22 lines
546 B
Python
from .anima_executor import AnimaExecutor, build_anima_positive_text, estimate_size_from_ratio, align_dimension
|
|
from .config import (
|
|
AnimaToolConfig,
|
|
DEFAULT_UNET_NAME,
|
|
DEFAULT_CLIP_NAME,
|
|
DEFAULT_VAE_NAME,
|
|
)
|
|
from .history import HistoryManager, GenerationRecord
|
|
|
|
__all__ = [
|
|
"AnimaExecutor",
|
|
"AnimaToolConfig",
|
|
"HistoryManager",
|
|
"GenerationRecord",
|
|
"build_anima_positive_text",
|
|
"estimate_size_from_ratio",
|
|
"align_dimension",
|
|
"DEFAULT_UNET_NAME",
|
|
"DEFAULT_CLIP_NAME",
|
|
"DEFAULT_VAE_NAME",
|
|
]
|