Skip to content

feat(openai): add OpenAI CLI tool synced with openapi/openai.json#21

Draft
Copilot wants to merge 3 commits intomainfrom
copilot/sync-openai-cli-tools
Draft

feat(openai): add OpenAI CLI tool synced with openapi/openai.json#21
Copilot wants to merge 3 commits intomainfrom
copilot/sync-openai-cli-tools

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 25, 2026

The Docs repo openapi/openai.json defines 5 endpoints for an openai service, but no corresponding openai/ CLI subdirectory existed in this monorepo.

New openai/ CLI package

Structure follows existing CLI conventions (serp, nanobanana, etc.):

  • commands/chat.pychat (single message) and complete (JSON messages array) → POST /openai/chat/completions
  • commands/embed.pyembedPOST /openai/embeddings
  • commands/image.pyimagine and edit-imagePOST /openai/images/generations / POST /openai/images/edits
  • commands/respond.pyrespondPOST /openai/responses
  • commands/info.pymodels, config
  • core/client, config, exceptions, output matching the standard pattern

Model coverage (from spec)

Group Models
Chat/Completions gpt-5.5, gpt-5.5-pro, gpt-5.4, gpt-5.4-pro, gpt-5.2, gpt-5.1*, gpt-5, gpt-5-mini, gpt-5-nano, gpt-4*, gpt-4o*, o1*, o3*, o4-mini*
Responses API Extended superset of chat models
Embeddings text-embedding-3-small, text-embedding-3-large, text-embedding-ada-002
Images dall-e-3, gpt-image-1, gpt-image-1.5, gpt-image-2, nano-banana*
openai chat "What is the capital of France?" -m gpt-4o-mini
openai embed "The quick brown fox" -m text-embedding-3-large
openai imagine "A serene mountain landscape" --quality high
openai respond "Explain quantum computing" -m o3
openai edit-image "Remove background" -i https://example.com/photo.jpg

Copilot AI changed the title [WIP] Sync openai CLI tools with updated Docs feat(openai): add OpenAI CLI tool synced with openapi/openai.json Apr 25, 2026
Copilot AI requested a review from Germey April 25, 2026 07:33
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.

sync: update from Docs (09585ab test(canary): temporarily drop gpt-5.4 to exercise Sync from Docs fan-out)

2 participants