Omni.Dialects.GoogleGenerateContent (Omni v2.0.0)

Copy Markdown View Source

Dialect implementation for the Gemini API's generateContent wire format.

Streams from streamGenerateContent. Google's newer Interactions API is a different wire format, not spoken by this dialect.

See Omni.Dialect.Text for the behaviour specification and delta types.

Notable differences

  • The model id goes in the URL path, not the request body
  • No :tool_use_delta events: Gemini sends function call arguments complete, not as streamed JSON fragments

Compat flags

None yet: providers speaking this dialect get its home API's behaviour. Flags are added as built-in providers need them.