f030c03970
A GEMINI_BASE_URL (or tts.gemini.base_url / providers.gemini base_url) set to a host root — https://generativelanguage.googleapis.com or a proxy root like http://localhost:4000/gemini — produced native requests to {base}/models/{model}:generateContent with no API version segment, a guaranteed 404. Google's own google-genai client treats the base URL as a host root and appends the version itself, so users reasonably configure it that way. normalize_gemini_base_url() appends /v1beta unless the URL already ends with a version segment (v1, v1beta, v1alpha, ...). Applied at every native request builder: GeminiNativeClient, probe_gemini_tier, Gemini TTS (tts_tool.py), and streaming TTS (tts_streaming.py). /openai-suffixed URLs are untouched (OpenAI-compat path). Port of cline/cline#13329, which fixed the same bug class after their ai-sdk migration.
Website
This website is built using Docusaurus, a modern static website generator.
Installation
yarn
Local Development
yarn start
This command starts a local development server and opens up a browser window. Most changes are reflected live without having to restart the server.
Build
yarn build
This command generates static content into the build directory and can be served using any static contents hosting service.
Deployment
Using SSH:
USE_SSH=true yarn deploy
Not using SSH:
GIT_USER=<Your GitHub username> yarn deploy
If you are using GitHub pages for hosting, this command is a convenient way to build the website and push to the gh-pages branch.
Diagram Linting
CI runs ascii-guard to lint docs for ASCII box diagrams. Use Mermaid (````mermaid`) or plain lists/tables instead of ASCII boxes to avoid CI failures.