From 4c554b14729f4e2ec22eae601a2bfce6a606637a Mon Sep 17 00:00:00 2001 From: ThomasTaroni Date: Sat, 21 Jun 2025 21:57:17 +0200 Subject: [PATCH] Fix incorrect API key header in summarization function The "Bearer" prefix was mistakenly included in the API key header. This change removes it to align with the expected format required by the external service. --- 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 6cbb8a6..d86704e 100644 --- a/src/phoenix_technologies/smd/server.py +++ b/src/phoenix_technologies/smd/server.py @@ -29,7 +29,7 @@ mcp = FastMCP("SMD Researcher", host="0.0.0.0", port=8000, timeout_keep_alive=72 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" headers = { - "x-litellm-api-key": f"Bearer {os.getenv('SWISSDOX_SUMMARIZING_MODEL_APIKEY', '')}", + "x-litellm-api-key": f"{os.getenv('SWISSDOX_SUMMARIZING_MODEL_APIKEY', '')}", "Content-type": "application/json", } payload = {