fix(tests): also add api_key where missing (AIAgent needs BOTH for direct path)

My last fix added base_url but not api_key. AIAgent.__init__ takes the
direct-construction path only when BOTH are set — with only base_url
it still calls resolve_provider_client and fails in hermetic CI.

Same 31 call sites, now with both kwargs.
This commit is contained in:
Teknium 2026-04-17 07:41:49 -07:00
parent 5d179b9777
commit 6c56d60d82
No known key found for this signature in database
6 changed files with 32 additions and 0 deletions

View file

@ -23,6 +23,7 @@ from run_agent import AIAgent
def _make_agent():
return AIAgent(
api_key="test-key",
base_url="https://openrouter.ai/api/v1",
model="test/model",
quiet_mode=True,