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:
parent
5ba682c6f9
commit
5d7bfa383b
1 changed files with 1 additions and 1 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue