chat: add a one-line trace log for model resolution
There is a deployment in the field where the route-level resolveAllowedModel demonstrably substitutes 'gemini-3-flash-preview' -> 'local/qwen3-next:80b' when invoked from a test harness against the same policy, yet the same request flow still throws "External AI providers are disabled (model='gemini-3-flash-preview')" at runtime with no [chat/stream] substituting warning in the log. Add a single console.log that prints the body model, parsed model, resolved model, and the two key policy booleans on every chat stream. One log line per request, so the disconnect surfaces unambiguously the next time it bites. Remove the log once the cause is identified.
| Repository | cpatpa/PIP |
|---|---|
| Author | Claude <noreply@anthropic.com> |
| Authored | |
| Parents | dc31b293 |
| Stats | 1 file changed , +3 |
| Part of | LLM dispatch - stale model id resolution and external-disabled fallbacks |
Capture this commit into my fork
Download a Markdown prompt that tells Claude how to port this
exact commit into your working tree. Run it via
claude -p < capture-commit-4a5fa1f0.md
from inside the repo you want the change in.