From ad2e1c194567b17dd8ee9eb8c66c230740faeac2 Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Tue, 5 Aug 2025 22:33:35 +0000 Subject: [PATCH 1/3] Add .github/renovate.json5 --- .github/renovate.json5 | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 .github/renovate.json5 diff --git a/.github/renovate.json5 b/.github/renovate.json5 new file mode 100644 index 0000000..7190a60 --- /dev/null +++ b/.github/renovate.json5 @@ -0,0 +1,3 @@ +{ + "$schema": "https://docs.renovatebot.com/renovate-schema.json" +} From 5ba682c6f96df59c522bac032480494f22439bfc Mon Sep 17 00:00:00 2001 From: ThomasTaroni Date: Mon, 11 Aug 2025 13:21:27 +0200 Subject: [PATCH 2/3] Fix response keys in server API handlers Corrected the response to include 'article_url' and fixed a typo in 'related_organizations' mapping. These updates ensure accurate and complete API responses. --- src/phoenix_technologies/smd/server.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/phoenix_technologies/smd/server.py b/src/phoenix_technologies/smd/server.py index b42881c..9af07ae 100644 --- a/src/phoenix_technologies/smd/server.py +++ b/src/phoenix_technologies/smd/server.py @@ -75,7 +75,8 @@ async def smd_detail_article(article_id): logger.info(f"smd_article_summarization {summarized_content}") return { "message": summarized_content, - "article_id": article_id + "article_id": article_id, + "article_url": data.get("online"), } else: return { @@ -152,7 +153,7 @@ async def smd_research(search_query: str = "Bundesrat", date_from: str = "2024-0 logger.info(f"detailed_articles {detailed_articles}") return { "related_persons": facets.get("persons", []), - "related_organizations": facets.get("persons", []), + "related_organizations": facets.get("organization", []), "detailed_articles": detailed_articles } else: From 5d7bfa383b935fc92cbab43f346a2ce7dc673638 Mon Sep 17 00:00:00 2001 From: ThomasTaroni Date: Mon, 11 Aug 2025 13:27:37 +0200 Subject: [PATCH 3/3] Remove unused timeout_keep_alive parameter from FastMCP init The `timeout_keep_alive` parameter was removed to align with updated requirements or defaults of the FastMCP initialization. This change simplifies the configuration while maintaining functionality. --- src/phoenix_technologies/smd/server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/phoenix_technologies/smd/server.py b/src/phoenix_technologies/smd/server.py index 9af07ae..342c17c 100644 --- a/src/phoenix_technologies/smd/server.py +++ b/src/phoenix_technologies/smd/server.py @@ -25,7 +25,7 @@ logging.basicConfig( logger = logging.getLogger(__name__) # Initialize FastMCP server -mcp = FastMCP("SMD Researcher", host="0.0.0.0", port=8000, timeout_keep_alive=720) +mcp = FastMCP("SMD Researcher", host="0.0.0.0", port=8000) async def summarize_to_words(text: str, title: str, target_word_count: int = 1000) -> str: url = f"https://maas.ai-2.kvant.cloud/engines/{os.getenv('SWISSDOX_SUMMARIZING_MODEL', '')}/chat/completions"