Reasoning effort is not portable across models: avoiding compatibility 400s at a gateway
GPT models do not accept the same reasoning settings. A gateway needs model-level capability data, deterministic request normalization, and error isolation that separates one model's bad parameter from a channel outage.
Streaming through a gateway: three SSE dialects and the one boundary you cannot retry
Streaming fixes perceived latency, but after the first token a retry means double billing. Here are the three upstream event formats, what a gateway must translate, and how to resume a broken stream.
Hooking Claude into a gateway: two paths and three traps
Claude's native protocol differs from OpenAI's, but a gateway gives you two doors — the native messages endpoint or the OpenAI-compatible chat/completions. Here is the setup for each, plus the three places people break.
WorkBuddy behind a gateway: four fields and the errors they cause
WorkBuddy supports custom models. Four fields — base URL, API key, model ID, protocol — connect Claude and GPT through your gateway. Here is what each field wants and how the resulting errors read.