feat: Vertex AI Express Mode dual-backend support (WS3)
Auto-detect whether a GOOGLE_API_KEY is AI Studio or Vertex AI Express by
probing the AI Studio models endpoint. Cache the result per-process so the
probe runs at most once. Manual override via providers.google_backend config
field ("auto"/"aistudio"/"vertex").
- get_or_create_client() and validate_key() pass vertexai explicitly to
genai.Client() (True for Vertex, False for AI Studio) preventing ambient
GOOGLE_GENAI_USE_VERTEXAI env from overriding the detected backend
- validate_key() returns a backend field alongside valid
- build_cogitate_env() sets GOOGLE_GENAI_USE_VERTEXAI, project, and location
env vars for Vertex; clears inherited Vertex vars for AI Studio
- Settings API GET/PUT for google_backend, vertex_project, vertex_location
- Settings UI backend badge on Google key, backend selector, conditional
project/location fields
- PROVIDER_METADATA gets vertex_env_keys