@@ -956,7 +956,7 @@ def feishu_oauth_register(oauth: OAuth):
956956ENABLE_OLLAMA_API = PersistentConfig (
957957 "ENABLE_OLLAMA_API" ,
958958 "ollama.enable" ,
959- os .environ .get ("ENABLE_OLLAMA_API" , "True " ).lower () == "true" ,
959+ os .environ .get ("ENABLE_OLLAMA_API" , "False " ).lower () == "true" ,
960960)
961961
962962OLLAMA_API_BASE_URL = os .environ .get (
@@ -1114,14 +1114,14 @@ def feishu_oauth_register(oauth: OAuth):
11141114 (
11151115 False
11161116 if not WEBUI_AUTH
1117- else os .environ .get ("ENABLE_SIGNUP" , "True " ).lower () == "true"
1117+ else os .environ .get ("ENABLE_SIGNUP" , "False " ).lower () == "true"
11181118 ),
11191119)
11201120
11211121ENABLE_LOGIN_FORM = PersistentConfig (
11221122 "ENABLE_LOGIN_FORM" ,
11231123 "ui.ENABLE_LOGIN_FORM" ,
1124- os .environ .get ("ENABLE_LOGIN_FORM" , "True " ).lower () == "true" ,
1124+ os .environ .get ("ENABLE_LOGIN_FORM" , "False " ).lower () == "true" ,
11251125)
11261126
11271127
@@ -1322,11 +1322,11 @@ def feishu_oauth_register(oauth: OAuth):
13221322)
13231323
13241324USER_PERMISSIONS_CHAT_TTS = (
1325- os .environ .get ("USER_PERMISSIONS_CHAT_TTS" , "True " ).lower () == "true"
1325+ os .environ .get ("USER_PERMISSIONS_CHAT_TTS" , "False " ).lower () == "true"
13261326)
13271327
13281328USER_PERMISSIONS_CHAT_CALL = (
1329- os .environ .get ("USER_PERMISSIONS_CHAT_CALL" , "True " ).lower () == "true"
1329+ os .environ .get ("USER_PERMISSIONS_CHAT_CALL" , "False " ).lower () == "true"
13301330)
13311331
13321332USER_PERMISSIONS_CHAT_MULTIPLE_MODELS = (
@@ -1426,13 +1426,13 @@ def feishu_oauth_register(oauth: OAuth):
14261426ENABLE_NOTES = PersistentConfig (
14271427 "ENABLE_NOTES" ,
14281428 "notes.enable" ,
1429- os .environ .get ("ENABLE_NOTES" , "True " ).lower () == "true" ,
1429+ os .environ .get ("ENABLE_NOTES" , "False " ).lower () == "true" ,
14301430)
14311431
14321432ENABLE_EVALUATION_ARENA_MODELS = PersistentConfig (
14331433 "ENABLE_EVALUATION_ARENA_MODELS" ,
14341434 "evaluation.arena.enable" ,
1435- os .environ .get ("ENABLE_EVALUATION_ARENA_MODELS" , "True " ).lower () == "true" ,
1435+ os .environ .get ("ENABLE_EVALUATION_ARENA_MODELS" , "False " ).lower () == "true" ,
14361436)
14371437EVALUATION_ARENA_MODELS = PersistentConfig (
14381438 "EVALUATION_ARENA_MODELS" ,
@@ -1475,7 +1475,7 @@ def feishu_oauth_register(oauth: OAuth):
14751475ENABLE_COMMUNITY_SHARING = PersistentConfig (
14761476 "ENABLE_COMMUNITY_SHARING" ,
14771477 "ui.enable_community_sharing" ,
1478- os .environ .get ("ENABLE_COMMUNITY_SHARING" , "True " ).lower () == "true" ,
1478+ os .environ .get ("ENABLE_COMMUNITY_SHARING" , "False " ).lower () == "true" ,
14791479)
14801480
14811481ENABLE_MESSAGE_RATING = PersistentConfig (
@@ -1595,26 +1595,49 @@ class BannerModel(BaseModel):
15951595 "task.title.prompt_template" ,
15961596 os .environ .get ("TITLE_GENERATION_PROMPT_TEMPLATE" , "" ),
15971597)
1598+ # TODO: re-enable examples after testing
1599+ # DEFAULT_TITLE_GENERATION_PROMPT_TEMPLATE = """### Task:
1600+ # Generate a concise, 3-5 word title with an emoji summarizing the chat history.
1601+ # ### Guidelines:
1602+ # - The title should clearly represent the main theme or subject of the conversation.
1603+ # - Use emojis that enhance understanding of the topic, but avoid quotation marks or special formatting.
1604+ # - Write the title in the chat's primary language; default to English if multilingual.
1605+ # - Prioritize accuracy over excessive creativity; keep it clear and simple.
1606+ # - Your entire response must consist solely of the JSON object, without any introductory or concluding text.
1607+ # - The output must be a single, raw JSON object, without any markdown code fences or other encapsulating text.
1608+ # - Ensure no conversational text, affirmations, or explanations precede or follow the raw JSON output, as this will cause direct parsing failure.
1609+ # ### Output:
1610+ # JSON format: { "title": "your concise title here" }
1611+ # ### Examples:
1612+ # - { "title": "📉 Stock Market Trends" },
1613+ # - { "title": "🍪 Perfect Chocolate Chip Recipe" },
1614+ # - { "title": "Evolution of Music Streaming" },
1615+ # - { "title": "Remote Work Productivity Tips" },
1616+ # - { "title": "Artificial Intelligence in Healthcare" },
1617+ # - { "title": "🎮 Video Game Development Insights" }
1618+ # ### Chat History:
1619+ # <chat_history>
1620+ # {{MESSAGES:END:2}}
1621+ # </chat_history>"""
15981622
15991623DEFAULT_TITLE_GENERATION_PROMPT_TEMPLATE = """### Task:
1600- Generate a concise, 3-5 word title with an emoji summarizing the chat history .
1624+ Generate a concise, 3-5 word title.
16011625### Guidelines:
16021626- The title should clearly represent the main theme or subject of the conversation.
1603- - Use emojis that enhance understanding of the topic, but avoid quotation marks or special formatting.
1604- - Write the title in the chat's primary language; default to English if multilingual.
1627+ - Use the primary language of the chat to write the title; if the chat contains multiple languages, generate the title in the primary language used.
16051628- Prioritize accuracy over excessive creativity; keep it clear and simple.
16061629- Your entire response must consist solely of the JSON object, without any introductory or concluding text.
16071630- The output must be a single, raw JSON object, without any markdown code fences or other encapsulating text.
16081631- Ensure no conversational text, affirmations, or explanations precede or follow the raw JSON output, as this will cause direct parsing failure.
16091632### Output:
16101633JSON format: { "title": "your concise title here" }
16111634### Examples:
1612- - { "title": "📉 Stock Market Trends" },
1613- - { "title": "🍪 Perfect Chocolate Chip Recipe" },
1635+ - { "title": "Stock Market Trends" },
1636+ - { "title": "Perfect Chocolate Chip Recipe" },
16141637- { "title": "Evolution of Music Streaming" },
16151638- { "title": "Remote Work Productivity Tips" },
16161639- { "title": "Artificial Intelligence in Healthcare" },
1617- - { "title": "🎮 Video Game Development Insights" }
1640+ - { "title": "Video Game Development Insights" }
16181641### Chat History:
16191642<chat_history>
16201643{{MESSAGES:END:2}}
0 commit comments