Commit f147b406 authored by 何家明's avatar 何家明

优化mcp问答功能

parent fb689e36
......@@ -86,9 +86,9 @@ class McpClient:
logger.info("End to initialize stdio client session...")
self.session = session
await self.read_mcp()
logger.info("Loop to keep session alive...")
try:
while True:
logger.info("Loop to keep session alive...")
await asyncio.sleep(10)
await session.send_ping()
except Exception as e:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment