diff --git a/apps/ai-game-creator-shell/src-tauri/src/ui_editor/commands/separation/model/note.rs b/apps/ai-game-creator-shell/src-tauri/src/ui_editor/commands/separation/model/note.rs index cb1df4fd7..1c3065627 100644 --- a/apps/ai-game-creator-shell/src-tauri/src/ui_editor/commands/separation/model/note.rs +++ b/apps/ai-game-creator-shell/src-tauri/src/ui_editor/commands/separation/model/note.rs @@ -1,9 +1,7 @@ use serde::{Deserialize, Serialize}; use ts_rs::TS; -const MAX_PROMPT_NOTE_CHARS: usize = 512; - -fn sanitize_prompt_text(value: &str) -> String { +pub(crate) fn sanitize_prompt_text(value: &str) -> String { value .chars() .filter_map(|character| { @@ -15,7 +13,7 @@ fn sanitize_prompt_text(value: &str) -> String { Some(character) } }) - .take(MAX_PROMPT_NOTE_CHARS) + .take(super::MAX_REWORK_NOTE_CHARS) .collect() }