We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8c1ba91 commit a0323f7Copy full SHA for a0323f7
src/services/api/providerConfig.ts
@@ -375,10 +375,13 @@ export function resolveProviderRequest(options?: {
375
const envBaseUrlRaw =
376
asEnvUrl(process.env.OPENAI_BASE_URL) ??
377
asEnvUrl(process.env.OPENAI_API_BASE)
378
+
379
+ const isCodexModelForGithub = isGithubMode && isCodexAlias(requestedModel)
380
const envBaseUrl =
- isGithubMode && envBaseUrlRaw && getGithubEndpointType(envBaseUrlRaw) === 'custom'
381
+ isCodexModelForGithub && envBaseUrlRaw && getGithubEndpointType(envBaseUrlRaw) === 'custom'
382
? undefined
383
: envBaseUrlRaw
384
385
const rawBaseUrl = explicitBaseUrl ?? envBaseUrl
386
387
const shellModel = process.env.OPENAI_MODEL?.trim() ?? ''
0 commit comments