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.

  1. 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.

  2. 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.

  3. 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.

  4. Update image and audio wrappers by model family. Add the current gpt-image-2.6-sunburst and gpt-image-2.6-flare options, checking their parameters and output handling in ImageGenerations.rakumod. Replace the Whisper-only transcription validation in Audio.rakumod with model-specific support for gpt-transcribe. Image models, GPT Transcribe.

  5. 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.

WWW::OpenAI v0.3.22

WWW::OpenAI provides access to the OpenAI playground (https://platform.openai.com).

Authors

  • Anton Antonov

License

Artistic-2.0

Dependencies

HTTP::Tiny:ver<0.2.5+>JSON::Fast:ver<0.17+>MIME::Base64:ver<1.2.3+>:auth<zef:raku-community-modules>Image::Markup::Utilities:ver<0.1.0+>:auth<zef:antononcube>IO::Socket::SSL:ver<0.0.2+>

Provides

  • WWW::OpenAI
  • WWW::OpenAI::Audio
  • WWW::OpenAI::Batches
  • WWW::OpenAI::ChatCompletions
  • WWW::OpenAI::Embeddings
  • WWW::OpenAI::Files
  • WWW::OpenAI::ImageEdits
  • WWW::OpenAI::ImageGenerations
  • WWW::OpenAI::ImageVariations
  • WWW::OpenAI::Models
  • WWW::OpenAI::Moderations
  • WWW::OpenAI::Request
  • WWW::OpenAI::TextCompletions

The Camelia image is copyright 2009 by Larry Wall. "Raku" is a trademark of the Yet Another Society. All rights reserved.

Built with Podlite — the markup and publishing tools behind this site.