mirror of
https://github.com/jackwener/OpenCLI.git
synced 2026-09-14 18:25:42 +08:00
a5f90884d8
* feat(chatgpt): add model/mode selection and fix response polling Add --model option to ask and send commands, and a new standalone model command for switching ChatGPT Desktop models via Accessibility API. Supported models: auto, instant, thinking, 5.2-instant, 5.2-thinking. Changes: - ax.ts: add AX_MODEL_SCRIPT (opens Options popover, searches within AXPopover to avoid matching sidebar items, supports legacy models submenu) and AX_GENERATING_SCRIPT (detects "Stop generating" button) - ask.ts: add --model flag; fix polling to wait for generation to complete instead of returning partial/thinking intermediate text - send.ts: add --model flag - model.ts: new standalone command to switch model/mode * review: activate chatgpt before model selection --------- Co-authored-by: jackwener <jakevingoo@gmail.com>