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.
This commit is contained in:
ThomasTaroni 2025-08-11 13:27:37 +02:00
parent 5ba682c6f9
commit 5d7bfa383b

View file

@ -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"