llamaIndex - ✅(Solved) Fix [Feature Request]: gpt-5-chat model is missing [1 pull requests, 2 comments, 1 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#20761Fetched 2026-04-08 00:31:07
View on GitHub
Comments
2
Participants
1
Timeline
4
Reactions
0
Author
Participants
Timeline (top)
labeled ×2closed ×1cross-referenced ×1

Fix Action

Fixed

PR fix notes

PR #20774: feat: gpt-5-chat support

Description (problem / solution / changelog)

Description

Added support for gpt-5-chat.

Fixes #20761

New Package?

Did I fill in the tool.llamahub section in the pyproject.toml and provide a detailed README.md for my new integration or package?

  • Yes
  • No

Version Bump?

Did I bump the version in the pyproject.toml file of the package I am updating? (Except for the llama-index-core package)

  • Yes
  • No

Type of Change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How Has This Been Tested?

Your pull-request will likely not be merged unless it is covered by some form of impactful unit testing.

  • I added new unit tests to cover this change
  • I believe this change is already covered by existing unit tests

Suggested Checklist:

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have added Google Colab support for the newly added notebooks.
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • I ran uv run make format; uv run make lint to appease the lint gods

Changed files

  • llama-index-integrations/llms/llama-index-llms-openai/llama_index/llms/openai/utils.py (modified, +1/-0)
  • llama-index-integrations/llms/llama-index-llms-openai/pyproject.toml (modified, +1/-1)
  • llama-index-integrations/llms/llama-index-llms-openai/tests/test_openai_utils.py (modified, +24/-0)
  • llama-index-integrations/llms/llama-index-llms-openai/uv.lock (modified, +1/-1)
RAW_BUFFERClick to expand / collapse

Feature Description

In #19663 the support for model "gpt-5-chat-latest" was added. But "gpt-5-chat" is still missing. Azure OpenAI only provides "gpt-5-chat", not "gpt-5-chat-latest". Please also add "gpt-5-chat" to the supported models.

Reason

We want to use "gpt-5-chat" provided by Azure OpenAI.

Value of Feature

Wider model support.

extent analysis

Fix: Add Support for "gpt-5-chat" Model

Step-by-Step Solution Plan

  1. Update Model Configuration
    • Open the configuration file (e.g., models.json) and add the new model:

{ "models": [ // existing models... { "name": "gpt-5-chat", "description": "GPT-5 Chat model provided by Azure OpenAI" } ] }

2. **Update Model Mapping**
   - In the code, update the model mapping to include the new model:
     ```python
# models.py
MODEL_MAPPING = {
    // existing models...
    "gpt-5-chat": "gpt-5-chat",
    "gpt-5-chat-latest": "gpt-5-chat-latest"  # keep this for backwards compatibility
}
  1. Verify Model Support
    • Run a test to ensure the new model is supported and can be used correctly.

Verification

  • Run a test that uses the new model and verify that it works as expected.
  • Check the logs to ensure that the model is being loaded and used correctly.

Extra Tips

  • Make sure to update the documentation to reflect the new model support.
  • Consider adding a deprecation notice for the "gpt-5-chat-latest" model to encourage users to switch to the new "gpt-5-chat" model.

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 - ✅(Solved) Fix [Feature Request]: gpt-5-chat model is missing [1 pull requests, 2 comments, 1 participants]