fix: explain codex oauth gpt-5.4 limits
This commit is contained in:
parent
57e98fe6c9
commit
529729831c
6 changed files with 57 additions and 5 deletions
|
|
@ -13,7 +13,6 @@ logger = logging.getLogger(__name__)
|
|||
|
||||
DEFAULT_CODEX_MODELS: List[str] = [
|
||||
"gpt-5.3-codex",
|
||||
"gpt-5.4",
|
||||
"gpt-5.2-codex",
|
||||
"gpt-5.1-codex-max",
|
||||
"gpt-5.1-codex-mini",
|
||||
|
|
|
|||
|
|
@ -1057,7 +1057,12 @@ def _model_flow_openai_codex(config, current_model=""):
|
|||
_codex_token = _codex_creds.get("api_key")
|
||||
except Exception:
|
||||
pass
|
||||
|
||||
codex_models = get_codex_model_ids(access_token=_codex_token)
|
||||
if "gpt-5.4" not in codex_models:
|
||||
print("Note: `gpt-5.4` is not currently supported for ChatGPT/Codex OAuth accounts.")
|
||||
print("Use OpenRouter if you need GPT-5.4 specifically.")
|
||||
print()
|
||||
|
||||
selected = _prompt_model_selection(codex_models, current_model=current_model)
|
||||
if selected:
|
||||
|
|
@ -1072,6 +1077,7 @@ def _model_flow_openai_codex(config, current_model=""):
|
|||
print("No change.")
|
||||
|
||||
|
||||
|
||||
def _model_flow_custom(config):
|
||||
"""Custom endpoint: collect URL, API key, and model name.
|
||||
|
||||
|
|
|
|||
|
|
@ -41,7 +41,6 @@ _PROVIDER_MODELS: dict[str, list[str]] = {
|
|||
],
|
||||
"openai-codex": [
|
||||
"gpt-5.3-codex",
|
||||
"gpt-5.4",
|
||||
"gpt-5.2-codex",
|
||||
"gpt-5.1-codex-mini",
|
||||
"gpt-5.1-codex-max",
|
||||
|
|
|
|||
|
|
@ -1275,6 +1275,11 @@ def setup_model_provider(config: dict):
|
|||
logger.debug("Could not resolve Codex runtime credentials for model list: %s", exc)
|
||||
|
||||
codex_models = get_codex_model_ids(access_token=codex_token)
|
||||
if "gpt-5.4" not in codex_models:
|
||||
print_warning("`gpt-5.4` is not currently supported for ChatGPT/Codex OAuth accounts.")
|
||||
print_info("Use OpenRouter if you need GPT-5.4 specifically.")
|
||||
print()
|
||||
|
||||
model_choices = codex_models + [f"Keep current ({current_model})"]
|
||||
default_codex = 0
|
||||
if current_model in codex_models:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue