This commit is contained in:
Timothy Jaeryang Baek
2025-04-05 04:12:57 -06:00
parent 0c0505e1cd
commit ee44383c83
2 changed files with 19 additions and 3 deletions

View File

@@ -100,7 +100,9 @@ async def set_tool_servers_config(
form_data: ToolServersConfigForm,
user=Depends(get_admin_user),
):
request.app.state.config.TOOL_SERVER_CONNECTIONS = form_data.TOOL_SERVER_CONNECTIONS
request.app.state.config.TOOL_SERVER_CONNECTIONS = [
connection.model_dump() for connection in form_data.TOOL_SERVER_CONNECTIONS
]
request.app.state.TOOL_SERVERS = await get_tool_servers_data(
request.app.state.config.TOOL_SERVER_CONNECTIONS