Buffaly Logo Buffaly

Use Buffaly with Gemini

Connect a Gemini API key, configure the model IDs your account can use and select gemini / provider_native in Buffaly.

Install and load the Gemini module

Include Buffaly.Provider.Gemini with matching shared contracts through the target release's package/provisioning workflow. Its enabled manifest entry registers GeminiProviderCatalogSource and GeminiCompletionExecutor. Confirm those components load in the consuming host/worker processes using the common installation and activation procedure. Release-profile membership alone does not establish local loading or Google account access.

Save a Gemini API key

  1. Obtain the API key for the intended Google API project/account.
  2. Open the target Buffaly installation's supported credential/settings controls. Save the key as Gemini Feature.ApiKey; verify masked status rather than printing the value.
  3. Load the complete database-backed Gemini Feature settings through provider administration. Retain BaseUrl=https://generativelanguage.googleapis.com and ApiVersion=v1beta unless your supported API contract requires another value.
  4. Keep FunctionCallingMode=AUTO for normal model-chosen tool use. The accepted values are AUTO, ANY and NONE; change this only to request that behavior.

This module's chat route uses an API key. Antigravity's native Google account login, a ChatGPT login and xAI OAuth profiles do not configure it. Keep the key in its credential owner, outside source, examples and prompts.

Configure model-specific reasoning

Edit Models as a dictionary keyed by exact Gemini API model ID. Set DefaultModelName to an entry in it. Each row owns SupportedReasoningLevels and DefaultReasoningLevel; the module accepts low, medium and high, not the whole shared effort vocabulary.

This non-secret fragment shows the shape for a model that supports those three levels. Replace the placeholder and its effort list/default with the intended model's supported contract. Merge it into the existing settings; save the API key separately.

{
  "BaseUrl": "https://generativelanguage.googleapis.com",
  "ApiVersion": "v1beta",
  "FunctionCallingMode": "AUTO",
  "DefaultModelName": "<exact-gemini-api-model-id>",
  "Models": {
    "<exact-gemini-api-model-id>": {
      "SupportedReasoningLevels": ["low", "medium", "high"],
      "DefaultReasoningLevel": "medium"
    }
  }
}

For a model without reasoning controls use SupportedReasoningLevels=[] and DefaultReasoningLevel="". Use modern per-model Models settings rather than legacy top-level model/reasoning lists. Read the existing document, apply the intended changes and save through provider administration without dropping unrelated settings.

Reload the complete catalog, find gemini / provider_native and select an exact model and one of its advertised efforts. Saved model IDs are configuration, not a live Google entitlement check. See model selection and readback.

Select speech separately

The Gemini manifest also declares GeminiTextToSpeechCatalogSource, GeminiTextToSpeechExecutor and GeminiRealtimeSpeechProvider. They need their matching loaded components and their own model/voice selections. A chat model choice does not select or verify a speech model. The examined module declares no embedding catalog/executor; choose a supported embedding provider through embedding configuration.

Verify configuration before a model call

  1. Inspect component diagnostics and reload the saved non-secret settings. Confirm the intended API root/version and masked key status.
  2. Read the full provider catalog, including Error. Confirm gemini, enabled provider_native, exact model/default and model-specific efforts.
  3. Read the current session's selection without changing it. These steps make no inference request; configured status does not prove that Google accepts the key/model.
  4. For an intended execution test, select the Gemini model in a test session and send Reply exactly: GEMINI_PROVIDER_OK. Check normal assistant text and the selected tuple. The call consumes API quota and may be billed.

Common failures

  • Provider missing: check package/manifest loading and the Gemini feature credentials; the catalog can omit an unconfigured provider.
  • Authentication or permission error: verify the key belongs to the intended Google project and has access to that API/model. Native account login is a separate route.
  • Model missing or rejected upstream: check the exact ID against the configured API version and account. Adding a string to settings does not provision vendor access.
  • Reasoning rejected: use only that model's catalog levels; xhigh and max are not accepted by this module.
  • Tool behavior differs: inspect FunctionCallingMode and the selected model's capabilities before changing authentication.
All providersModule installationQualified Antigravity route