Skip to content

docs(openai): generate mintlify docs for openai - #601

Closed
yuvanvk wants to merge 5 commits into
corsairdev:mainfrom
yuvanvk:docs/541-openai
Closed

docs(openai): generate mintlify docs for openai#601
yuvanvk wants to merge 5 commits into
corsairdev:mainfrom
yuvanvk:docs/541-openai

Conversation

@yuvanvk

@yuvanvk yuvanvk commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

Description

Adds the missing OpenAI plugin documentation. packages/openai has been on main for a while, but docs/plugins/openai never existed and the plugin wasn't listed in the Mintlify nav — so anyone browsing the docs had no way to find it.

This PR runs the standard doc generator against the openai plugin and commits the output, rather than hand-writing a one-off page.

Fixes #541

Changes

  • Ran pnpm generate:docs -- --plugin=openai to generate the plugin docs
  • Added generated MDX under docs/plugins/openai/
  • Updated docs/docs.json to add the openai nav entry under Plugins via script
  • Updated docs/docs.json to add the /plugins/openai/get-credentials

Tests

Ran the verification steps from the issue:

  • docs/plugins/openai/ exists with the usual pages
  • openai shows up under Plugins in docs/docs.json
  • No hand-written one-off layout that ignores the generator

Screenshots / Demo

Screenshot 2026-08-04 at 9 03 32 PM

Summary by CodeRabbit

  • Documentation
    • Added setup instructions for obtaining and storing OpenAI API credentials.
    • Included Corsair CLI guidance, required credential details, and a link to general authentication documentation.
    • Added the new OpenAI credentials page to the plugin documentation navigation.

@vercel

vercel Bot commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

@yuvanvk is attempting to deploy a commit to the corsair Team on Vercel.

A member of the Team first needs to authorize it.

@github-actions github-actions Bot added the docs Docs / Mintlify / markdown changes label Aug 4, 2026
@coderabbitai

coderabbitai Bot commented Aug 4, 2026

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 5500703f-a7b2-45fc-8d27-0452e6d39c55

📥 Commits

Reviewing files that changed from the base of the PR and between f84e2f6 and 53ac171.

📒 Files selected for processing (1)
  • docs/docs.json
🚧 Files skipped from review as they are similar to previous changes (1)
  • docs/docs.json

📝 Walkthrough

Walkthrough

Changes

OpenAI Credential Documentation

Layer / File(s) Summary
Credential documentation and navigation
docs/plugins/openai/get-credentials.mdx, docs/docs.json
Adds OpenAI API key setup instructions, Corsair CLI storage guidance, a credential summary, authentication references, and the page navigation entry.

Estimated code review effort: 1 (Trivial) | ~2 minutes

Possibly related PRs

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Linked Issues check ⚠️ Warning The PR adds the OpenAI navigation entry and credentials page, but the summary does not show the usual generated pages required by issue #541. Add all standard generated pages under docs/plugins/openai and verify that the generator produced the complete OpenAI documentation set.
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly identifies the OpenAI documentation generation change.
Out of Scope Changes check ✅ Passed The documented changes are limited to generated OpenAI documentation and its navigation entry, which match issue #541.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
✨ Finishing Touches 💡 1
🛠️ Fix failing CI checks 💡
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Comment @coderabbitai help to get the list of available commands.

@greptile-apps

greptile-apps Bot commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

Greptile Summary

Adds generated Mintlify documentation for the OpenAI plugin and makes it discoverable in the documentation navigation.

  • Adds overview, credential setup, API reference, and database reference pages.
  • Registers all four OpenAI pages under Plugins in docs/docs.json.

Confidence Score: 5/5

The PR appears safe to merge.

No blocking failure remains.

Important Files Changed

Filename Overview
docs/docs.json Adds a complete OpenAI navigation group referencing the four newly generated pages.
docs/plugins/openai/api.mdx Adds the generated reference for 129 typed OpenAI API operations.
docs/plugins/openai/database.mdx Documents searchable fields and operators for the three synchronized OpenAI entities.
docs/plugins/openai/get-credentials.mdx Documents API-key acquisition and Corsair credential setup.
docs/plugins/openai/overview.mdx Adds plugin installation, registration, authentication, database, and API usage guidance.

Reviews (2): Last reviewed commit: "chore: CI-rerun" | Re-trigger Greptile

Comment thread docs/plugins/openai/api.mdx

@coderabbitai coderabbitai 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.

Actionable comments posted: 8

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@docs/plugins/openai/api.mdx`:
- Around line 22-24: Update the standard documentation generator that produces
the assistants.create example and other operation snippets so each emitted call
satisfies its documented required inputs, including model fields, IDs, files,
and request bodies; otherwise mark the block as non-runnable pseudocode.
Regenerate the page from the generator and avoid maintaining a hand-written
layout.
- Around line 4067-4099: Update the standard type-summary generator to preserve
scalar branches in union types, then regenerate all affected documentation. In
docs/plugins/openai/api.mdx lines 4067-4099, render messages.create content as
string | object[]; in lines 4619-4629, include moderation input’s string and
string-array branches; in lines 4977-4999 and 6683-6695, include each Responses
API input’s string branch.
- Around line 43-66: Update the generator that emits TypeScript discriminator
examples so all listed string values are quoted, then regenerate
docs/plugins/openai/api.mdx: lines 43-66 must quote code_interpreter,
file_search, and function; lines 985-1024 must quote the role and content type
values; lines 4077-4098 must quote text, image_file, and image_url; and lines
7497-7516 must quote auto and static.

In `@docs/plugins/openai/get-credentials.mdx`:
- Around line 20-24: The documentation example shows passing credentials as
command-line arguments to the `pnpm corsair setup --plugin=openai` command,
which is a security vulnerability. Replace the insecure process.argv
credential-reading approach in the setup command with a secure input flow using
prompts or stdin to request credentials interactively from the user. Update the
bash example in this documentation to reflect the new secure prompt-based flow,
and apply the same secure pattern to other plugin guides that may have similar
credential-passing examples. Verify the documentation generator reflects this
secure input approach for all plugin setup examples.

In `@docs/plugins/openai/overview.mdx`:
- Around line 117-121: Update the assistants.create example to include the
required model field, using the smallest valid payload and a suitable model
value instead of passing an empty object.
- Around line 128-130: Update the Hooks section to document only the supported
hooks API: keep the `hooks` guidance, remove `webhookHooks`, incoming-events
wording, and the `/concepts/webhooks` link, while preserving the
`/concepts/hooks` reference.
- Line 69: Update the credential instructions in the OpenAI plugin documentation
to reference only the supported api_key authentication field. Remove bot_token
and OAuth client-field references from the credential examples at both affected
locations, while preserving the link to Get Credentials.
- Around line 62-69: The documentation in the Store credentials section
references the Get Credentials page but does not specify a secure input method
for credentials. Update the documentation to explicitly instruct users to
provide credentials through an interactive prompt or stdin input rather than as
command-line arguments (such as `api_key=`). Ensure the pnpm corsair setup
command example and any referenced examples in the Get Credentials documentation
clearly show interactive or stdin-based credential entry to prevent exposure of
API keys in shell history and process inspection.
🪄 Autofix

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: be27945b-6080-4256-9b36-6d8ca2aaae70

📥 Commits

Reviewing files that changed from the base of the PR and between 839b807 and f84e2f6.

📒 Files selected for processing (5)
  • docs/docs.json
  • docs/plugins/openai/api.mdx
  • docs/plugins/openai/database.mdx
  • docs/plugins/openai/get-credentials.mdx
  • docs/plugins/openai/overview.mdx

Comment thread docs/plugins/openai/api.mdx
Comment thread docs/plugins/openai/api.mdx
Comment thread docs/plugins/openai/api.mdx
Comment thread docs/plugins/openai/get-credentials.mdx
Comment thread docs/plugins/openai/overview.mdx
Comment thread docs/plugins/openai/overview.mdx
Comment thread docs/plugins/openai/overview.mdx
Comment thread docs/plugins/openai/overview.mdx
@yuvanvk

yuvanvk commented Aug 4, 2026

Copy link
Copy Markdown
Contributor Author

@ambikeesshh addressed all the Greptile issues and opened a new PR as the previous one got closed by mistake.

@yuvanvk

yuvanvk commented Aug 5, 2026

Copy link
Copy Markdown
Contributor Author

@greptile-apps re-run yourself with conclusions we made

@Dhirenderchoudhary

Copy link
Copy Markdown
Collaborator

Closing as Docs are in production by this commit 3f64aff

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

Labels

docs Docs / Mintlify / markdown changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

generate Mintlify docs for openai

3 participants