Trying to switch my OpenClaw agent (Clam, on Mac mini M1) from Kimi to Google Gemini via the OpenAI‑compatible endpoint, but I keep getting “LLM request failed: provider rejected the request schema or tool payload” and sometimes a generic “API limit reached” error.
Evidence it’s not real quota:
AI Studio Usage for project gen-lang-client-0951657220 shows 0 calls.
Direct curl to https://generativelanguage.googleapis.com/v1beta/openai/chat/completions with my key and "model": "gemini-3-flash-preview" works and returns "Hello there!".
.../openai/models lists many models, including:
models/gemini-2.5-flash, models/gemini-2.5-flash-lite
models/gemini-3-flash-preview
models/gemini-3.1-flash-lite-preview
models/gemma-4-26b-a4b-it, etc.
OpenClaw config:
json
models.providers.google = {
"baseUrl": "https://generativelanguage.googleapis.com/v1beta/openai/",
"apiKey": "<key>",
"api": "openai-completions",
"models": [
{
"id": "models/gemini-3.1-flash-lite-preview",
"name": "Gemini 3.1 Flash Lite Preview",
...
}
]
}
openclaw models status shows default: google/models/gemini-3.1-flash-lite-preview, and auth points at that key. But any Clam request using this default fails with the schema/limit error, even though direct curl works.
I suspect OpenClaw’s Gemini integration is choking on the tool/function schema and misreporting it as rate limit. Looking for a known‑good Gemini config (preferably models/gemini-3.1-flash-lite-preview) and/or guidance on compat flags or disabling tools for this provider.