fix(agent-runner): prepare local runner functional tests

This commit is contained in:
huanghuoguoguo
2026-07-15 08:11:52 +08:00
parent 32216a82f5
commit d871baab68
3 changed files with 246 additions and 0 deletions
@@ -518,6 +518,10 @@ class LiteLLMRequester(requester.ProviderAPIRequester):
if tools:
args['tools'] = tools
args.setdefault('tool_choice', 'auto')
# LangBot owns tool discovery and execution. LiteLLM 1.92+
# otherwise probes its optional MCP gateway for every tool call
# and imports proxy-only dependencies such as FastAPI.
args['_skip_mcp_handler'] = True
return args