Skip to content

Add support for ChatGPT Search (OAI-SearchBot) user agent - #4633

Merged
tgargula merged 1 commit into
mainfrom
tomasz/check-chatgpt-text
Sep 24, 2026
Merged

tgargula merged 1 commit into
mainfrom
tomasz/check-chatgpt-text

Conversation

@tgargula

@tgargula tgargula commented Sep 24, 2026

Copy link
Copy Markdown
Contributor

Proposed changes

Detect OpenAI's ChatGPT Search bot (OAI-SearchBot) in the user agent and serve markdown/plain text content. This enables ChatGPT Search to properly index GitBook documentation through the llms.txt and markdown routes.

Changelog

  • [Fix] Serve plain text responses to OpenAI's ChatGPT Search crawler

Detect OAI-SearchBot in user agent and serve markdown/plain text content.
Includes test coverage for ChatGPT Search requests to llms.txt and markdown routes.
@changeset-bot

changeset-bot Bot commented Sep 24, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 52763b0

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
gitbook Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@tgargula tgargula self-assigned this Sep 24, 2026
@argos-ci

argos-ci Bot commented Sep 24, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Argos notifications ↗︎

Build Status Details Updated (UTC)
customers-v2-cloudflare (Inspect) 👍 Approved by Tomasz Gargula 4 changed, 2 ignored Sep 24, 2026, 7:16 AM
customers-v2-vercel (Inspect) 👍 Approved by Tomasz Gargula 3 changed, 4 ignored Sep 24, 2026, 7:15 AM
v2-cloudflare (Inspect) 👍 Approved by Tomasz Gargula 4 changed, 5 ignored Sep 24, 2026, 7:17 AM
v2-vercel (Inspect) ✅ No changes detected 1 ignored Sep 24, 2026, 7:17 AM

@github-actions

Copy link
Copy Markdown
Contributor

Style invalidation on a large API reference

Elements restyled by opening one popup on the Snyk API reference. A share near or above 100% means the insertion restyles the whole document.

interaction restyled page share budget
openapi-select 8 10,794 0.1% 25%
search 631 10,794 5.8% 125%

@tgargula
tgargula merged commit 7f8ab7d into main Sep 24, 2026
21 checks passed
@tgargula
tgargula deleted the tomasz/check-chatgpt-text branch September 24, 2026 07:49

This branch was successfully deployed

2 active deployments
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