fix: rewrite title generator to only use user messages; bump background model to qwen2.5:3b

This commit is contained in:
2026-04-07 12:53:33 -04:00
parent b3cf42863a
commit 39e554d938
3 changed files with 31 additions and 20 deletions
+1 -1
View File
@@ -124,7 +124,7 @@ async def generate_project_summary(user_id: int, project_id: int) -> None:
from fabledassistant.services.settings import get_setting
messages = [{"role": "user", "content": prompt}]
bg_model = await get_setting(user_id, "background_model", Config.OLLAMA_BACKGROUND_MODEL)
summary = await generate_completion(messages, model=bg_model, max_tokens=400)
summary = await generate_completion(messages, model=bg_model, max_tokens=400, num_ctx=2048)
if not summary:
return