feat: experimental mcp support
This commit is contained in:
1 parent
aeb5288a3c
commit
777e81f7a8
10 files changed
+417
-105
No files matched your search
@@ -1531,6 +1531,14 @@ async def chat_completion(
|
||||
|
||||
except:
|
||||
pass
|
||||
finally:
|
||||
try:
|
||||
if mcp_clients := metadata.get("mcp_clients"):
|
||||
for client in mcp_clients:
|
||||
await client.disconnect()
|
||||
except Exception as e:
|
||||
log.debug(f"Error cleaning up: {e}")
|
||||
pass
|
||||
|
||||
if (
|
||||
metadata.get("session_id")
|
||||
|
||||
Reference in new issue
Block a user