feat(phase2): OpenAI-compatible provider client (P5.1)

This commit is contained in:
2026-09-25 22:22:03 +02:00
parent 790df17623
commit 42802f7bf5
4 changed files with 597 additions and 2 deletions
+6
View File
@@ -58,6 +58,12 @@ allowed-confusables = ["σ"]
"src/pf1e_simulator/runner.py" = ["PLR0913"]
# client.py: LLMClient/FakeLLMClient need the full safeguard knobs (cache, budget, pricing, retry, breaker)
"src/pf1e_simulator/client.py" = ["PLR0913"]
# provider.py: OpenAILLMClient.__init__ needs the full knob set (model, key,
# base url, timeout, transport, schema, cache, budget, pricing, retry, breaker)
# and the chat-completions URL is built from an env-gated base URL defaulting
# to HTTPS (section 15), so the S310 audit and the 14-param constructor are
# deliberate
"src/pf1e_simulator/provider.py" = ["PLR0913", "S310"]
# robustness.py: the cartography API takes the full knob set (scenario, specs,
# side, runs, seed, fractions, target, precision, budget) as keyword parameters
"src/pf1e_simulator/robustness.py" = ["PLR0913"]