mirror of
				https://github.com/open-webui/mcpo
				synced 2025-06-26 18:26:58 +00:00 
			
		
		
		
	fix: drop none arguments
This commit is contained in:
		
							parent
							
								
									219e8d6b9f
								
							
						
					
					
						commit
						1ceaa30a0a
					
				| @ -70,7 +70,7 @@ async def create_dynamic_endpoints(app: FastAPI): | ||||
| 
 | ||||
|         def make_endpoint_func(endpoint_name: str, FormModel, session: ClientSession): | ||||
|             async def tool_endpoint(form_data: FormModel): | ||||
|                 args = form_data.model_dump() | ||||
|                 args = form_data.model_dump(exclude_none=True) | ||||
|                 print(f"Calling {endpoint_name} with arguments:", args) | ||||
|                 result = await session.call_tool(endpoint_name, arguments=args) | ||||
|                 response = [] | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user