WWW::OpenAI — prompts
Update (2026-11-09)
Suggest updates of this Raku package, "WWW::OpenAI", with the newest models.
Just outlines the updates you propose, do not implement anything.Answer
Proposed update outline
OpenAI Docs currently lists gpt-6-astra, gpt-6.1-sol, gpt-6.1-terra, and gpt-6-luna as the main model choices. I would prioritize Sol as the package’s general-purpose default candidate, with Astra, Terra, and Luna available for different workloads. OpenAI model catalog.
Make the new models usable. Add the four IDs to the hardcoded registry in Models.rakumod, then review endpoint compatibility rules. Those rules currently recognize GPT-4 and GPT-5 names but omit GPT-6.
Build out Responses support before changing the default. The current Responses path in ChatCompletions.rakumod joins message content into one string and drops roles and tools. Give Responses its own request and result handling, including reasoning settings and multimodal input, so new-model calls retain their meaning. OpenAI’s GPT-6 guidance starts with the Responses API. Using GPT-6.
Then revisit defaults and examples. GetDefaultModel still selects
gpt-5. Choose a new default only after the intended request path works; keep the environment override. Refresh the older examples in README.md.Update image and audio wrappers by model family. Add the current
gpt-image-2.6-sunburstandgpt-image-2.6-flareoptions, checking their parameters and output handling in ImageGenerations.rakumod. Replace the Whisper-only transcription validation in Audio.rakumod with model-specific support forgpt-transcribe. Image models, GPT Transcribe.Mark retired examples clearly. The registry and README still contain many historical IDs. Keep historical examples where useful, but distinguish them from recommended models and document relevant shutdown dates, including
gpt-5,whisper-1, and older image models. OpenAI deprecations.
No files were changed.
Clarification
Ok. Sounds good. Just to be clear: the models that going to be depreciated soon but can be still used would be accessible after the changes?Answer
Yes. Under the proposed changes, deprecated models that OpenAI still serves would remain selectable by their model ID. They would be marked as deprecated and would no longer be recommended as defaults.
Availability still depends on OpenAI and your account. Once OpenAI shuts a model down, keeping its name in the package cannot make it work. For example, OpenAI Docs lists gpt-5 for shutdown on December 11, 2026, and whisper-1 on February 26, 2027. OpenAI deprecations.
I have not made any changes yet.