Skip to main content

Crate wabot_addon_chat_bot_google

Crate wabot_addon_chat_bot_google 

Source
Expand description

Google Gemini chat adapter — port of wabot-ts addon/chat-bot/google/GoogleChatAdapter.ts.

Talks to generativelanguage.googleapis.com directly via reqwest; no @google/genai equivalent in our dep graph. Endpoint:

POST /v1beta/models/{model}:generateContent

Authentication uses the x-goog-api-key header (Google also accepts ?key=; the header form keeps the URL clean and lets reqwest’s client manage headers per-request).

Phase 4c is text-only. Vision/file mime-type mappings exist in the TS version but require fetching public URLs to base64 (Google doesn’t accept arbitrary URLs except its own GCS / native file URIs). We’ll port that path once multiple adapters need it.

Structs§

GoogleChatAdapter
GoogleConfig
Configuration for the Google Gemini adapter.

Constants§

PROVIDER