From 0d532d147b6abe5f5f51e16254a23a2711447123 Mon Sep 17 00:00:00 2001 From: ThomasTaroni Date: Sat, 21 Jun 2025 21:43:51 +0200 Subject: [PATCH] Simplify server response handling by returning raw data. Replaced the summarized content processing with direct data return. This improves efficiency by skipping the summarization step and ensures the full response data is available to the caller for further use. --- src/phoenix_technologies/smd/server.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/phoenix_technologies/smd/server.py b/src/phoenix_technologies/smd/server.py index b35ddfb..5c5ca8a 100644 --- a/src/phoenix_technologies/smd/server.py +++ b/src/phoenix_technologies/smd/server.py @@ -65,8 +65,8 @@ async def smd_detail_article(article_id): async with session.post(url, headers=headers, json=payload) as response: if response.status == 200: data = await response.json() - summarized_content = await summarize_to_words(title=data.get("title"), text=data.get("text"), target_word_count=10000) - return summarized_content +# summarized_content = await summarize_to_words(title=data.get("title"), text=data.get("text"), target_word_count=10000) + return data else: return { "message": await response.text(),