9router/public/providers
Quan 39f651f5be feat: Add Google Cloud Vertex AI provider support (vertex, vertex-partner)
Co-authored-by: Quan <quanle96@outlook.com>
PR: https://github.com/decolua/9router/pull/298

Thanks to @kwanLeeFrmVi for the original implementation. Here is a summary
of changes made during review integration:

- Replaced google-auth-library with jose (already a project dependency)
  for SA JSON -> OAuth2 Bearer token minting (RS256 JWT assertion flow)
- Moved auth logic (parseSaJson, refreshVertexToken, token cache) from
  executor into open-sse/services/tokenRefresh.js to match project pattern
- Fixed executor to use proxyAwareFetch instead of raw fetch (proxy support)
- Simplified buildUrl: use global aiplatform.googleapis.com endpoint for
  both vertex (Gemini) and vertex-partner; removed region/modelFamily fields
- Added auto-detection of GCP project_id from raw API key via probe request
  (vertex-partner only, cached per key)
- Added vertex/vertex-partner cases to /api/providers/validate/route.js
- Updated model lists based on live testing:
  - vertex: gemini-3.1-pro-preview, gemini-3.1-flash-lite-preview,
    gemini-3-flash-preview, gemini-2.5-flash (removed gemini-2.5-pro: 404)
  - vertex-partner: deepseek-v3.2, qwen3-next-80b (instruct+thinking),
    glm-5 (removed Mistral/Llama: not enabled in test project)
  - gemini provider: added gemini-3.1-pro-preview, gemini-3.1-flash-lite-preview
- Removed bun.lock (project uses npm/package-lock.json)
- Removed region and modelFamily UI fields (global endpoint, auto-detect)
- Kiro token auto-refresh on AccessDeniedException (from commit 2)

Made-with: Cursor
2026-03-14 11:37:23 +07:00
..
alicode-intl.png Feat : Add support for the new "alicode-intl" provider 2026-03-07 10:08:55 +07:00
alicode.png Feat : Add support for the new "alicode-intl" provider 2026-03-07 10:08:55 +07:00
anthropic-m.png feat(cli-tools): update CLI tools and add new models 2026-02-06 20:53:20 +07:00
anthropic.png feat(cli-tools): update CLI tools and add new models 2026-02-06 20:53:20 +07:00
antigravity.png feat(cli-tools): update CLI tools and add new models 2026-02-06 20:53:20 +07:00
cerebras.png Add Providers 2026-02-20 17:05:46 +07:00
chutes.png Fix bug 2026-03-06 09:59:15 +07:00
claude.png feat(cli-tools): update CLI tools and add new models 2026-02-06 20:53:20 +07:00
cline.png feat(cli-tools): update CLI tools and add new models 2026-02-06 20:53:20 +07:00
codex.png feat(cli-tools): update CLI tools and add new models 2026-02-06 20:53:20 +07:00
cohere.png Add Providers 2026-02-20 17:05:46 +07:00
continue.png feat(cli-tools): update CLI tools and add new models 2026-02-06 20:53:20 +07:00
copilot.png feat(cli-tools): update CLI tools and add new models 2026-02-06 20:53:20 +07:00
cursor.png feat(cli-tools): update CLI tools and add new models 2026-02-06 20:53:20 +07:00
deepseek.png Add Providers 2026-02-20 17:05:46 +07:00
droid.png feat(cli-tools): update CLI tools and add new models 2026-02-06 20:53:20 +07:00
fireworks.png Add Providers 2026-02-20 17:05:46 +07:00
gemini-cli.png feat(cli-tools): update CLI tools and add new models 2026-02-06 20:53:20 +07:00
gemini.png feat(cli-tools): update CLI tools and add new models 2026-02-06 20:53:20 +07:00
github.png feat(cli-tools): update CLI tools and add new models 2026-02-06 20:53:20 +07:00
glm-cn.png Add GLM Coding (China) provider with OpenAI-compatible API (#83) 2026-02-09 10:31:38 +07:00
glm.png feat(cli-tools): update CLI tools and add new models 2026-02-06 20:53:20 +07:00
groq.png Add Providers 2026-02-20 17:05:46 +07:00
iflow.png feat(cli-tools): update CLI tools and add new models 2026-02-06 20:53:20 +07:00
kilocode.png Fix bug 2026-03-06 09:59:15 +07:00
kimi-coding.png Add Providers 2026-02-20 17:05:46 +07:00
kimi.png feat(cli-tools): update CLI tools and add new models 2026-02-06 20:53:20 +07:00
kiro.png feat(cli-tools): update CLI tools and add new models 2026-02-06 20:53:20 +07:00
minimax-cn.png feat(cli-tools): update CLI tools and add new models 2026-02-06 20:53:20 +07:00
minimax.png feat(cli-tools): update CLI tools and add new models 2026-02-06 20:53:20 +07:00
mistral.png Add Providers 2026-02-20 17:05:46 +07:00
nebius.png Add Providers 2026-02-20 17:05:46 +07:00
nvidia.png Add Providers 2026-02-20 17:05:46 +07:00
oai-cc.png feat(cli-tools): update CLI tools and add new models 2026-02-06 20:53:20 +07:00
oai-r.png feat(cli-tools): update CLI tools and add new models 2026-02-06 20:53:20 +07:00
ollama-local.png feat: Add support for local Ollama Local provider 2026-03-13 10:22:59 +07:00
ollama.png feat(ollama): Add Ollama provider support with models and configuration, including API endpoints and UI updates. 2026-03-12 15:24:02 +07:00
openai.png feat(cli-tools): update CLI tools and add new models 2026-02-06 20:53:20 +07:00
openclaw.png feat(cli-tools): update CLI tools and add new models 2026-02-06 20:53:20 +07:00
opencode.png Add OpenCode CLI 2026-03-03 10:10:03 +07:00
openrouter.png feat(cli-tools): update CLI tools and add new models 2026-02-06 20:53:20 +07:00
perplexity.png Add Providers 2026-02-20 17:05:46 +07:00
qwen.png feat(cli-tools): update CLI tools and add new models 2026-02-06 20:53:20 +07:00
roo.png feat(cli-tools): update CLI tools and add new models 2026-02-06 20:53:20 +07:00
siliconflow.png Fix bug 2026-03-06 09:59:15 +07:00
together.png Add Providers 2026-02-20 17:05:46 +07:00
vertex-partner.png feat: Add Google Cloud Vertex AI provider support (vertex, vertex-partner) 2026-03-14 11:37:23 +07:00
vertex.png feat: Add Google Cloud Vertex AI provider support (vertex, vertex-partner) 2026-03-14 11:37:23 +07:00
xai.png Add Providers 2026-02-20 17:05:46 +07:00