openai / openai/openai-python

GPT 5.1 Mini wrongly listed in model list

Open
#2,785 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

api bug
Dominant language
Python
Stars
31.6k
Forks
5.7k
Avg merge
1d 6h
Merged PRs (30d)
96

Description

Confirm this is an issue with the Python library and not an underlying OpenAI API
  • This is an issue with the Python library
Describe the bug

A model string - gpt-5.1-mini - is listed in the python sdk chat model list. It shouldn't be there as there is no model named gpt-5.1-mini. Instead it should be gpt 5.1 codex mini, I presume.

To Reproduce

See https://github.com/openai/openai-python/blob/main/src/openai/types/shared/chat_model.py Line number 16, it should not be there. Instead the 5.1 codex mini model should be there.

Code snippets

OS

Windows

Python version

v3.10.19

Library version

v2.11.0

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at src/openai/types/shared/chat_model.py around line 16, where the chat model list is defined. Compare the listed gpt-5.1-mini entry with the reported gpt 5.1 codex mini name. Done means the incorrect model is removed and the intended model is represented accurately in the Python SDK's chat model list.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
api
Issue type
Bug
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.