WWW::Gemini — 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

As of November 9, 2026, I’d propose these updates, in order:

  1. Refresh model defaults and discovery. Make gemini-3.8-flash the text default, offer gemini-3.5-flash-lite as a lower cost choice, and update the catalog for current image, speech, and embedding models. The package’s hardcoded model list omits both its own gemini-embedding-2 and gemini-3.1-flash-image defaults, so model validation can reject them. Use the API’s model listing for discovery instead of treating the hardcoded list as the only valid set. Package models · Google model catalog

  2. Make generation requests compatible with Gemini 3.8. The package currently sends temperature, topP, and candidateCount by default. Google’s 3.8 migration guide says to remove those sampling fields and notes that candidateCount is unsupported in Gemini 3 and later. Add model aware configuration and a thinkingLevel option. Generation code · Google migration guide

  3. Fix the embedding migration path. Support Embedding 2’s output dimensions and multimodal inputs, and omit the package’s default taskType for that model; Google says Embedding 2 does not support that parameter. Document that existing vectors must be regenerated because Embedding 2 and Embedding 001 use incompatible embedding spaces. Embedding code · Google embeddings guide

  4. Support image and tool responses as structured parts. Add generation options for current image models and return image data alongside text. The current values formatter extracts only text; the image input path also keeps only the last image. Preserve thought signatures across function calling turns, as Google requires for Gemini 3 REST workflows. Request formatting · Image generation guide · Function calling guide

  5. Update examples and add focused compatibility checks. Replace the README’s retired model output, show explicit model selection, and check request bodies and response parsing for text, embeddings, image parts, and tool turns. Consider 3.8 Live and TTS as a later expansion: they need dedicated streaming or audio handling beyond changing a model ID. README · Google model catalog

No files were changed.

WWW::Gemini v0.0.26

WWW::Gemini provides access to Google's Gemini LLM models.

Authors

  • Anton Antonov

License

Artistic-2.0

Dependencies

HTTP::Tiny:ver<0.2.5+>JSON::Fast:ver<0.17+>Image::Markup::Utilities:ver<0.1.1+>:auth<zef:antononcube>

Test Dependencies

Provides

  • WWW::Gemini
  • WWW::Gemini::EmbedContent
  • WWW::Gemini::GenerateContent
  • WWW::Gemini::Models
  • WWW::Gemini::Request

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.