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:
Refresh model defaults and discovery. Make
gemini-3.8-flashthe text default, offergemini-3.5-flash-liteas a lower cost choice, and update the catalog for current image, speech, and embedding models. The package’s hardcoded model list omits both its owngemini-embedding-2andgemini-3.1-flash-imagedefaults, 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 catalogMake generation requests compatible with Gemini 3.8. The package currently sends
temperature,topP, andcandidateCountby default. Google’s 3.8 migration guide says to remove those sampling fields and notes thatcandidateCountis unsupported in Gemini 3 and later. Add model aware configuration and athinkingLeveloption. Generation code · Google migration guideFix the embedding migration path. Support Embedding 2’s output dimensions and multimodal inputs, and omit the package’s default
taskTypefor 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 guideSupport image and tool responses as structured parts. Add generation options for current image models and return image data alongside text. The current
valuesformatter 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 guideUpdate 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.