Cline the independent VS Code / JetBrains coding agent — not affiliated with this post has a first-party “OpenAI” provider and a separate OpenAI Compatible provider. For a custom gateway you want the second one.
1. Smoke-test outside the IDE
export...
I run the same code against several OpenAI-compatible endpoints: hosted ones, a gateway, and a local server. Three SDK defaults caused most of my production issues.
1. The default read timeout is 10 minutes. openai.DEFAULTTIMEOUT is Timeoutconnect=5...