mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-01-27 04:36:12 +01:00
feat: Add Option to Disable Titling, Config Titling Model, and Title Prompt Improvements (#977)
* feat: add option to disable titling as well as decide what model to use for OpenAI titling refactor: truncate conversation text so it caps around 200 tokens for titling requests, optimize some of the title prompts * feat: disable bing titling with TITLE_CONVO as well
This commit is contained in:
parent
d13a7b1a74
commit
1d3e336e1c
8 changed files with 43 additions and 6 deletions
|
|
@ -16,7 +16,7 @@ const createTitlePrompt = ({ convo }) => {
|
|||
const titlePrompt = new ChatPromptTemplate({
|
||||
promptMessages: [
|
||||
SystemMessagePromptTemplate.fromTemplate(
|
||||
`Write a concise title for this conversation in the given language. Title in 5 Words or Less. No Punctuation or Quotation. All first letters of every word must be capitalized (resembling title-case), written in the given Language.
|
||||
`Write a concise title for this conversation in the given language. Title in 5 Words or Less. No Punctuation or Quotation. Must be in Title Case, written in the given Language.
|
||||
${convo}`,
|
||||
),
|
||||
HumanMessagePromptTemplate.fromTemplate('Language: {language}'),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue