fix: Initialize environment variables for the active non-OpenAI provider #1012
+54
−18
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes #975
This PR addresses issue #975 by correcting an initialization problem for non-OpenAI providers. It also adds a new option to the initial setup prompt to guide users who wish to configure alternative providers (e.g., Azure) via the
~/.codex/config.json
file, aiming to make this process more straightforward for newcomers.For instance, when I first tried to use Azure, I followed the README using the
--provider
option, but was still prompted for OpenAI login, which was a bit confusing. This new prompt option is intended to prevent such initial hurdles.Similar improvements may have been addressed in PR #990. If that PR sufficiently covers the necessary changes, please feel free to close this one.