diff --git a/.memory/worklog.json b/.memory/worklog.json index cbeaa76..f3126f5 100644 --- a/.memory/worklog.json +++ b/.memory/worklog.json @@ -1,18 +1,5 @@ { "entries": [ - { - "files_changed": 1, - "message": "Codex 会话活跃 · 最近命令:codex · 分支 main · 1 项未提交变更 · 最近提交:auto-save 2026-05-17 19:48 (~4)", - "ts": "2026-05-17T11:48:28Z", - "type": "session-heartbeat" - }, - { - "files_changed": 3, - "hash": "fc48499", - "message": "feat: standardize product asset inputs", - "ts": "2026-05-17T19:53:03+08:00", - "type": "commit" - }, { "files_changed": 3, "message": "Codex 会话活跃 · 最近命令:codex · 分支 main · 3 项未提交变更 · 最近提交:feat: standardize product asset inputs", @@ -3252,6 +3239,19 @@ "type": "session-heartbeat", "message": "Codex 会话活跃 · 最近命令:codex · 分支 main · 1 项未提交变更 · 最近提交:chore: update worklog", "files_changed": 1 + }, + { + "ts": "2026-05-20T13:03:41+08:00", + "type": "commit", + "message": "docs: record subject agent direction", + "hash": "83b151d", + "files_changed": 2 + }, + { + "ts": "2026-05-20T05:03:57Z", + "type": "session-heartbeat", + "message": "Codex 会话活跃 · 最近命令:codex · 分支 main · 1 项未提交变更 · 最近提交:docs: record subject agent direction", + "files_changed": 1 } ] } diff --git a/api/main.py b/api/main.py index 854ebe7..74e7c00 100644 --- a/api/main.py +++ b/api/main.py @@ -23,7 +23,7 @@ from dotenv import load_dotenv from fastapi import BackgroundTasks, FastAPI, File, Form, HTTPException, Request, Response, UploadFile from fastapi.middleware.cors import CORSMiddleware from fastapi.responses import FileResponse -from pydantic import BaseModel, Field +from pydantic import BaseModel, ConfigDict, Field load_dotenv() @@ -738,6 +738,8 @@ class AudioScript(BaseModel): class SubjectAgentAnalysis(BaseModel): + model_config = ConfigDict(protected_namespaces=()) + model_bundle: SubjectModelBundle = "gpt" model: str = "" source_frame_indices: list[int] = Field(default_factory=list) @@ -758,6 +760,8 @@ class SubjectAgentMessage(BaseModel): class SubjectAgentState(BaseModel): + model_config = ConfigDict(protected_namespaces=()) + model_bundle: SubjectModelBundle = "gpt" source_frame_indices: list[int] = Field(default_factory=list) analysis: SubjectAgentAnalysis | None = None @@ -4164,11 +4168,15 @@ class CreateJobReq(BaseModel): class SubjectAgentAnalyzeReq(BaseModel): + model_config = ConfigDict(protected_namespaces=()) + model_bundle: SubjectModelBundle = "gpt" source_frame_indices: list[int] = Field(default_factory=list) class SubjectAgentMessageReq(BaseModel): + model_config = ConfigDict(protected_namespaces=()) + model_bundle: SubjectModelBundle = "gpt" source_frame_indices: list[int] = Field(default_factory=list) selected_mode: Literal["realistic", "cartoon", "elements", "custom"] = "custom"