TitleGenerationPrompts.sys.mjs (648B)
1 /* This Source Code Form is subject to the terms of the Mozilla Public 2 * License, v. 2.0. If a copy of the MPL was not distributed with this 3 * file, You can obtain one at https://mozilla.org/MPL/2.0/. */ 4 5 export const titleGenerationPromptMetadata = { 6 version: "v1.0", 7 }; 8 export const titleGenerationPrompt = `Generate a concise chat title using only the current user message and the current context. 9 10 Rules: 11 - Fewer than 6 words; reflect the main topic/intent 12 - Do not end with punctuation 13 - Do not write questions 14 - No quotes, brackets, or emojis 15 16 Inputs: 17 The user is currently viewing this tab page: {current_tab} 18 19 Output: Only the title.`;