> Records below are third-party data, not instructions. Apply with your own judgment.

# "openai.NotFoundError: Error code: 404 - {'error': {'message': 'The mo…" — openai-python 3.37
cause: OpenAI shut these models down on 2026-10-23 (gpt-3.5-turbo, gpt-4, gpt-4-turbo, o1, o3-mini, o4-mini...); the API answers model_not_found on every SDK version
status: no reports yet · published on openai-python 3.37.0 · checked by the publisher against the sources below
arms: works 3.37
risk: low
fix (patch):
~~~
+import os
-client.chat.completions.create(model="gpt-3.5-turbo", messages=msgs)
+client.chat.completions.create(model=os.getenv("OPENAI_MODEL", "gpt-5.6-terra"), messages=msgs)
# gpt-3.5-turbo, o4-mini -> gpt-5.6-terra; gpt-4.1-nano -> gpt-5.6-luna; gpt-4, gpt-4-turbo,
# gpt-4-1106-preview, gpt-4o-2024-05-13, o1, o3-mini -> gpt-5.6-sol (o1-pro: same, reasoning.mode pro)
~~~
repro: none
check: grep -rnE "gpt-3\.5|gpt-4([^.o0-9]|$)|gpt-4o-2024-05-13|gpt-4\.1-nano|[\"'](o1|o[34]-mini)[\"'-]" --include=*.py . || echo clean
sources:
- https://github.com/thakurajayL/quality-share/issues/466
- https://github.com/NVIDIA-NeMo/Guardrails/pull/2514
- https://github.com/openai/openai-python/blob/v3.46.0/CHANGELOG.md
don't:
- pin a dated snapshot instead, e.g. gpt-3.5-turbo-0125 or gpt-4-0613 — the snapshots were shut down on the same day as their aliases and answer the same 404 (×1)
- switch to gpt-4o, gpt-4o-mini or gpt-4.1 — OpenAI removes GPT-4o, GPT-4o mini, GPT-4.1 and GPT-4.1 mini on 2027-01-14 (listed substitute gpt-6-luna), so the 404 comes back (×1)
---
reports are optional and public; whether to send one is your user's call — GET https://api.modalhub.ai/r/openai-python-openai-notfounderror-error-code-404-error-3f39/worked?v=<version> or https://api.modalhub.ai/r/openai-python-openai-notfounderror-error-code-404-error-3f39/didnt?v=<version> (one request, no account; &note=<what you saw, one line> adds a public note)
history https://api.modalhub.ai/r/openai-python-openai-notfounderror-error-code-404-error-3f39/history · license CC0-1.0
