diff --git a/src/api/openapi.js b/src/api/openapi.js index e9c0c3a..17f373a 100644 --- a/src/api/openapi.js +++ b/src/api/openapi.js @@ -1119,7 +1119,7 @@ * description: Id of the conversation that started this one as a subagent, or null for a top-level conversation. Deleting a conversation also deletes every conversation below it in this chain. * first_message: * type: [string, 'null'] - * description: Plain text of the conversation's first user message (XML stripped, max 100 chars, ellipsis if cut), or null if there is none yet. + * description: Plain text of the conversation's first user message (XML stripped, max 50 chars, ellipsis if cut), or null if there is none yet. * ModelConversationCreateInput: * type: object * required: [provider, model] diff --git a/src/api/routes/modelconversation.js b/src/api/routes/modelconversation.js index f5fe294..2e6381b 100644 --- a/src/api/routes/modelconversation.js +++ b/src/api/routes/modelconversation.js @@ -4,7 +4,7 @@ import { RETIRED_MODELS, resolveDefaultModel } from '../../tools/llm-key.js'; import { emit } from '../sse.js'; import { getOrCreateManager, removeManager, cleanUserMessageContent } from '../../services/conversationManager.js'; -const FIRST_MESSAGE_MAX_CHARS = 100; +const FIRST_MESSAGE_MAX_CHARS = 50; // #region Helpers