Repository navigation
feat(design): support OPENAI_BASE_URL for API calls - #932
jackjin1997 wants to merge 1 commit into
Conversation
97a9cfc to
c8a9668
Compare
|
@jackjin1997 Rewrite this to support OPENAI_BASE_URL across every current design API call site, not only the paths covered by the existing helper. |
c8a9668 to
0a55a44
Compare
|
Reworked this on top of current All current design OpenAI call sites now use the shared Fresh local verification: 67 relevant tests passed, all nine changed API-call entry points bundled successfully, and |
|
Landed in v1.91.66.0 (#3087): OPENAI_BASE_URL for the design binary, rewritten on current main with credit to you (Co-authored-by). Thank you @jackjin1997! |
Summary
openaiUrl()resolver that honorsOPENAI_BASE_URL, trims whitespace/trailing slashes, and defaults tohttps://api.openai.com/v1design/prototype.tsWhy
Some environments route OpenAI requests through an internal or compatible API gateway. The design tools previously hardcoded the public OpenAI endpoint at each call site.
Validation
bun test design/test/auth.test.ts design/test/daemon.test.ts design/test/gallery.test.ts design/test/serve.test.ts— 67 passed, 0 failedbun buildfor all nine changed API-call entry points — succeededgit diff --check— cleanThe broader local design suite also contains environment-dependent tests: Playwright Chromium is not installed, daemon-discovery assumes a parent/child PID shape that differs under the local Bun runtime, and one existing HTTP-date retry assertion is timing-sensitive. None of those paths are changed here.