Skip to content

chore(examples): bump module_client.py to gpt-5.6 - #3211

Open
lucky-verma wants to merge 1 commit into
openai:nextfrom
lucky-verma:chore/module-client-model-bump
Open

chore(examples): bump module_client.py to gpt-5.6#3211
lucky-verma wants to merge 1 commit into
openai:nextfrom
lucky-verma:chore/module-client-model-bump

Conversation

@lucky-verma

@lucky-verma lucky-verma commented May 8, 2026

Copy link
Copy Markdown

updated to gpt-5.6 per your review.

correcting my original note: i said stainless hadn't synced gpt-5.5 into ChatModel — it had. it is accurate for gpt-5.6 though, only the -sol/-terra/-luna snapshots are in the literal. still type-checks since model: is Union[str, ChatModel].

one flag: README.md uses gpt-5.5 throughout, so this leaves the example a step ahead of the readme. happy to bump those here or separately.

only the model string changes. ruff check + format clean.

@lucky-verma
lucky-verma requested a review from a team as a code owner May 8, 2026 09:20
@lucky-verma
lucky-verma force-pushed the chore/module-client-model-bump branch from b1a7dd9 to f819b49 Compare May 8, 2026 09:23
@lucky-verma lucky-verma changed the title chore(examples): bump module_client.py to gpt-4o-2024-08-06 chore(examples): bump module_client.py to gpt-5.2 May 8, 2026
@lucky-verma
lucky-verma force-pushed the chore/module-client-model-bump branch from f819b49 to e58f9ae Compare May 8, 2026 09:25
@lucky-verma lucky-verma changed the title chore(examples): bump module_client.py to gpt-5.2 chore(examples): bump module_client.py to gpt-5.5 May 8, 2026
@DTiming24

Copy link
Copy Markdown

Makes sense to keep the module-client example on the current default model. If this is intended as a broadly reusable sample, it may be worth adding a tiny note that users should swap in their own model tier when they need different latency/cost tradeoffs.

@stainless-app
stainless-app Bot force-pushed the next branch 2 times, most recently from 317260c to e67afa8 Compare July 22, 2026 17:46

@jbeckwith-oai jbeckwith-oai left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This update is already stale relative to its stated goal of moving the example to the current default model. The current official Models guide recommends the gpt-5.6 alias (routing to GPT-5.6 Sol), which supports Chat Completions and streaming: https://developers.openai.com/api/docs/models. Please update examples/module_client.py to model="gpt-5.6" instead of landing the previous-generation gpt-5.5 in a current-model refresh. The one-line change otherwise passes Ruff, formatting, compile, and diff checks.

The module-level client example still pinned bare gpt-4. gpt-5.6 is the
current recommended alias per the Models guide and supports Chat Completions
and streaming, which is what this example uses.

model: is typed Union[str, ChatModel], so the bare alias type-checks even
though only the gpt-5.6-sol/-terra/-luna snapshots are in the literal today.

Only the model string changes.
@lucky-verma
lucky-verma force-pushed the chore/module-client-model-bump branch from e58f9ae to 787b457 Compare August 4, 2026 06:14
@lucky-verma lucky-verma changed the title chore(examples): bump module_client.py to gpt-5.5 chore(examples): bump module_client.py to gpt-5.6 Aug 4, 2026
@lucky-verma

Copy link
Copy Markdown
Author

bumped to gpt-5.6. PTAL

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 787b457685

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread examples/module_client.py
# all API calls work in the exact same fashion as well
stream = openai.chat.completions.create(
model="gpt-4",
model="gpt-5.6",

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Use the intended gpt-5.5 model

If users copy or run this module-level Chat Completions example, it now sends the bare model id gpt-5.6; however the generated ChatModel literals in this tree include gpt-5.5 and the gpt-5.6-sol/-terra/-luna variants, but not bare gpt-5.6, while the commit message says the example should be bumped to gpt-5.5. Because model also accepts plain str, type checking will not catch this typo before the API rejects or misroutes the example request.

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants