llamaIndex - 💡(How to fix) Fix [Feature Request]: Add support for GPT-5.4 and GPT-5.4-pro in OpenAIpackage [7 comments, 4 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
run-llama/llama_index#20946Fetched 2026-04-08 00:30:06
View on GitHub
Comments
7
Participants
4
Timeline
17
Reactions
0
Timeline (top)
commented ×7subscribed ×4mentioned ×3labeled ×2
RAW_BUFFERClick to expand / collapse

Feature Description

From Azure Foundry, we can deploy gpt-5.4 and gpt-5.4-pro and consume them like the previous models. Since Azure OpenAI package subclasses OpenAI, so far, I don't see the support for the new models in OpenAI llms package in utils.py and neither any opened PR for this

Reason

No response

Value of Feature

New powerful LLMs will operate better and provide better responses

extent analysis

Fix: Update OpenAI LLMS Package to Support New Models

Step-by-Step Solution Plan

  1. Update OpenAI LLMS Package: Clone the OpenAI LLMS package repository from GitHub.
  2. Add Support for New Models: In the utils.py file, update the MODEL_VERSIONS dictionary to include the new model versions (gpt-5.4 and gpt-5.4-pro).
  3. Update Model Loading Logic: Modify the load_model function to handle the new model versions.

Example Code:

# utils.py (updated)
MODEL_VERSIONS = {
    'gpt-3.5-turbo': 'text-davinci-003',
    'gpt-4': 'text-davinci-002',
    'gpt-5.4': 'text-davinci-004',  # New model version
    'gpt-5.4-pro': 'text-davinci-005',  # New model version
}

def load_model(model_name):
    if model_name in MODEL_VERSIONS:
        model_version = MODEL_VERSIONS[model_name]
        # Load the model using the Azure OpenAI package
        model = AzureOpenAI.load_model(model_version)
        return model
    else:
        raise ValueError(f"Unsupported model version: {model_name}")
  1. Test the Updated Package: Run tests to ensure the updated package supports the new model versions.

Verification

  • Test the load_model function with the new model versions (gpt-5.4 and gpt-5.4-pro).
  • Verify that the model is loaded correctly and responds as expected.

Extra Tips

  • Make sure to update the AzureOpenAI package to the latest version to ensure compatibility with the new model versions.
  • Consider submitting a pull request to the OpenAI LLMS package repository to

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

llamaIndex - 💡(How to fix) Fix [Feature Request]: Add support for GPT-5.4 and GPT-5.4-pro in OpenAIpackage [7 comments, 4 participants]