Skip to content

feat(design): support OPENAI_BASE_URL for API calls#932

Open
jackjin1997 wants to merge 1 commit intogarrytan:mainfrom
jackjin1997:feat/design-openai-base-url
Open

feat(design): support OPENAI_BASE_URL for API calls#932
jackjin1997 wants to merge 1 commit intogarrytan:mainfrom
jackjin1997:feat/design-openai-base-url

Conversation

@jackjin1997
Copy link
Copy Markdown

Summary

  • add openaiUrl() helper in design/src/auth.ts that resolves OPENAI_BASE_URL with a safe default (https://api.openai.com/v1)
  • route all design OpenAI requests through the helper instead of hardcoded endpoints
  • keep existing behavior unchanged when OPENAI_BASE_URL is not set

Why

Some environments use internal API gateway mapping and need the design CLI to honor OPENAI_BASE_URL.

Notes

  • no key values or private endpoint values are included in this change
  • only endpoint resolution behavior is updated

@jackjin1997 jackjin1997 force-pushed the feat/design-openai-base-url branch from 97a9cfc to c8a9668 Compare April 9, 2026 05:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant