mirror of
https://github.com/khoaliber/khoj.git
synced 2026-03-02 21:19:12 +00:00
Restrict generated chat title to 200 chars limit allowed for chat slug
This commit is contained in:
@@ -562,8 +562,7 @@ async def generate_chat_title(
|
||||
raise HTTPException(status_code=404, detail="Conversation not found")
|
||||
|
||||
new_title = await acreate_title_from_history(request.user.object, conversation=conversation)
|
||||
|
||||
conversation.slug = new_title
|
||||
conversation.slug = new_title[:200]
|
||||
|
||||
await conversation.asave()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user