Skip to content

Fix docs formatting for docs.github.com publishing (model name, lists, table cell)#1800

Open
sunbrye wants to merge 2 commits into
mainfrom
sunbrye/change-model-to-auto
Open

Fix docs formatting for docs.github.com publishing (model name, lists, table cell)#1800
sunbrye wants to merge 2 commits into
mainfrom
sunbrye/change-model-to-auto

Conversation

@sunbrye

@sunbrye sunbrye commented Jun 25, 2026

Copy link
Copy Markdown
Collaborator

Why

The docs/ content is synced to docs.github.com (via github/docs-internal), where it must meet that platform's style rules. A few issues were breaking the docs workflow and/or being fixed by hand on every sync. This PR fixes them at the source.

What

  1. Model name — Changed gpt-4.1auto in getting-started.md examples. The docs workflow fails since GPT-4.1 is no longer supported; auto is future-proof. (Original reason for this PR.)

  2. Unordered lists — Converted prose bullets from hyphens (-) to asterisks (*) in features/fleet-mode.md, features/hooks.md, and hooks/post-tool-use.md. docs.github.com requires asterisks for unordered lists; code blocks and frontmatter were left untouched.

  3. Empty table cell — Filled the empty AZURE_TOKEN_CREDENTIALS Example cell in setup/azure-managed-identity.md with ManagedIdentityCredential (matches the row's description and this page's Azure scenario). docs.github.com requires every table cell to have a value.

Intentionally left as-is

Blank cells that represent table structure were not changed, to avoid altering meaning: the optional Required columns in the custom-agents.md / streaming-events.md property tables (blank = optional, paired with ✅ = required), the section-grouping rows in troubleshooting/compatibility.md, and the corner cell of the setup/scaling.md comparison matrix.

Related: https://github.com/github/docs-internal/pull/61807, https://github.com/github/docs-internal/pull/62025, github/docs-team#7023

gpt-4.1 is deprecated. Update all code examples to use 'auto'
for automatic model selection.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings June 25, 2026 18:41
@sunbrye sunbrye requested a review from a team as a code owner June 25, 2026 18:41

Copilot AI 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.

Pull request overview

Updates the getting-started documentation examples to avoid referencing the now-unsupported gpt-4.1 model by switching to model: "auto" / Model = "auto" across language snippets.

Changes:

  • Replaced gpt-4.1 with auto in session creation examples (Node.js/TypeScript, Python, Go, .NET, Java) in docs/getting-started.md.
Show a summary per file
File Description
docs/getting-started.md Updates “getting started” code samples to use model="auto" instead of gpt-4.1 to avoid relying on a deprecated model ID.

Copilot's findings

  • Files reviewed: 1/1 changed files
  • Comments generated: 1

Comment thread docs/getting-started.md

const client = new CopilotClient();
const session = await client.createSession({ model: "gpt-4.1" });
const session = await client.createSession({ model: "auto" });
The docs/ content is synced to docs.github.com (via github/docs-internal),
where it must meet that platform's style rules. Two recurring issues were
being reintroduced and fixed by hand on every sync:

* Unordered lists must use asterisks (*) not hyphens (-) on docs.github.com.
  Converted prose bullets in features/fleet-mode.md, features/hooks.md, and
  hooks/post-tool-use.md (code blocks and frontmatter left untouched).
* Every table cell must have a value. Filled the empty AZURE_TOKEN_CREDENTIALS
  Example cell in setup/azure-managed-identity.md with ManagedIdentityCredential
  (matches the row's description and this page's Azure scenario).

Note: intentionally-blank cells that represent structure (optional 'Required'
columns in property tables, section-grouping rows in troubleshooting/
compatibility.md, and the corner cell of the setup/scaling.md comparison
matrix) were left as-is.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@sunbrye sunbrye changed the title Change model from gpt-4.1 to auto in getting-started examples Fix docs formatting for docs.github.com publishing (model name, lists, table cell) Jul 2, 2026
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.

2 participants