将场景 Prompt 迁入现役 prompt 模块

场景 Prompt 常量与 builder 移入 prompt::editor_scene
经 api-server::prompt 模块出口统一组织
更新消费方与技术方案文档位置
This commit is contained in:
2026-08-05 15:38:55 +08:00
parent 089e0fc7b4
commit b54991db3c
5 changed files with 3 additions and 3 deletions
@@ -91,7 +91,7 @@ canvasCompletion?
## 5. Prompt
场景 Prompt 在 `api-server` Rust 代码中维护,沿用现有后端 Prompt 常量和 builder 模式,不拆分为运行时文本模板文件,不调用 LLM 润色、扩写或改写
场景 Prompt 在 `server-rs/crates/api-server/src/prompt/editor_scene.rs` 中维护,经 `api-server::prompt` 现役模块出口编译,沿用现有后端 Prompt 常量和 builder 模式,不拆分为运行时文本模板文件,不调用 LLM 润色、扩写或改写。旧 `prompt/scene_background.rs` 属于已退役的自定义世界 / RPG 场景链路,不作为本功能复用入口
提示词来源为产品提供的 `scene_prompt.md`
@@ -70,7 +70,6 @@ use crate::{
editor_green_screen_character_prompt_clause, editor_ui_design_asset_extraction_prompt,
remove_editor_generated_green_screen_background,
},
editor_scene_prompt::build_editor_scene_prompt,
editor_screen_background_decision::{
EditorScreenBackgroundDecision, EditorScreenBackgroundDecisionInput,
EditorScreenBackgroundDecisionKind, resolve_editor_screen_background_color,
@@ -88,6 +87,7 @@ use crate::{
require_openai_image_settings,
},
platform_errors::map_oss_error,
prompt::editor_scene::build_editor_scene_prompt,
request_context::RequestContext,
state::AppState,
work_author::{ORPHAN_WORK_AUTHOR_PUBLIC_USER_CODE, ORPHAN_WORK_OWNER_USER_ID},
-1
View File
@@ -26,7 +26,6 @@ mod editor_generation_config;
mod editor_generation_queue;
mod editor_green_screen;
mod editor_project;
mod editor_scene_prompt;
mod editor_screen_background_decision;
mod editor_screen_background_filter;
mod error_middleware;
@@ -1,2 +1,3 @@
pub(crate) mod character_animation;
pub(crate) mod character_visual;
pub(crate) mod editor_scene;