From 64cfcb6c0f0a7c531df998408b9329df5c914bb6 Mon Sep 17 00:00:00 2001 From: lebaudantoine Date: Tue, 17 Dec 2024 11:04:35 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=A9(summary)=20fix=20temporarily=20the?= =?UTF-8?q?=20summary=20microservice?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The new endpoint requires title and content, breaking the original implementation. This hotfix ensures staging works immediately while I plan an LLM-based solution for title generation. --- src/summary/summary/core/celery_worker.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/summary/summary/core/celery_worker.py b/src/summary/summary/core/celery_worker.py index 3fcda952..9ff55578 100644 --- a/src/summary/summary/core/celery_worker.py +++ b/src/summary/summary/core/celery_worker.py @@ -125,8 +125,10 @@ def process_audio_transcribe_summarize(filename: str, email: str, sub: str): summary = summary_response.choices[0].message.content logger.debug("Summary: \n %s", summary) + # fixme - generate a title using LLM data = { - "summary": summary, + "title": "Votre résumé", + "content": summary, "email": email, "sub": sub, }