harden OpenAI-compatible adapter for production
Validate OPENAI_BASE_URL (https, no embedded credentials), add request timeouts, truncate upstream error bodies, flush trailing SSE frames, release stream readers, sanitize model ids, and fix the frontend model picker accept logic. Public /config/models only exposes host + mode.
| Repository | mrdulasolutions/mike |
|---|---|
| Author | MRDula <mac@MRDulas-MacBook-Pro.local> |
| Authored | |
| Parents | 9f370da0 |
| Stats | 7 files changed , +287 , -111 |
| Part of | Configurable OpenAI-compatible LLM endpoint |
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-93ad5a68.md
from inside the repo you want the change in.