[GH-ISSUE #1309] [Issue]: Vertex Gemini connection stopped working (~2 days ago) — new API key and Top-K changes don't fix it #646

Closed
opened 2026-10-20 17:31:14 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @GetBeholder on GitHub (May 26, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/1309

Originally assigned to: @SpicyMarinara on GitHub.

Summary

Vertex Gemini (Google Vertex AI / Gemini) stopped connecting roughly two days
before this report; it had been working fine before that. The reporter tried a new
API key and adjusting Top-K (both in connection settings and per-bot) without
success. They are unsure whether it is a bug or a configuration issue.

Expected behavior

The Vertex Gemini connection should connect and generate as it did before it
stopped working.

Actual behavior

An error prevents Vertex Gemini from connecting; changing the API key and adjusting
Top-K (connection-level and per-bot) does not resolve it.

Steps to reproduce

  1. Configure a Google Vertex / Gemini connection that previously worked.
  2. Attempt to generate.
  3. Observe a connection error.
  4. Changing the API key and adjusting Top-K (connection + per-bot) does not help.

Impact area

  • App shell, navigation, startup, or providers
  • Catalog resources
  • Chat mode
  • Roleplay mode
  • Game mode
  • Shared mode UI
  • Runtime systems: generation, world-state, visuals, tracker, or haptics
  • Professor Mari or shell tools
  • React-free engine behavior, contracts, agents, or capability ports
  • Shared API wrapper or remote runtime routing
  • Tauri/Rust storage, assets, LLM, integrations, security, imports, or HTTP runtime
  • Docs, contributor workflow, or templates

Environment

  • Branch or commit: reported as Marinara version 11.3.0 (unusual vs the v1.6.x range of other current reports — please confirm)
  • Run mode: Android mobile / Termux; Node.js v24.11.1 (self-hosted Node backend in Termux)
  • OS + version: Android (Termux)
  • Node + pnpm versions: Node v24.11.1
  • Rust version, if relevant: not provided
  • Remote Runtime URL configured? self-hosted in Termux
  • Provider, model, or integration, if relevant: Google Vertex / Gemini. Chat type: conversation.

Logs, screenshots, or video

No error text was provided. The exact error message and HTTP status from the failed
connection are the key missing facts — for example 401/403 (auth, permissions, or
quota), 400 (bad request, possibly an invalid parameter such as Top-K), or a
network/transport error. This determines whether the cause is external (Google-side
key/quota/API change) or a Marinara request/transport issue.

Regression notes

Worked until roughly two days before the report (≈ 5/22/26), then stopped. The
sudden stop without local changes suggests a possible external (Google Vertex)
change, a key/quota/permission change, or a Marinara update — to be confirmed with
the error detail.

Additional context

Source: forum report by Awwww (1-Star), 5/24/26 3:25 PM. The reporter is unsure
whether this is a bug or a configuration issue and has already ruled out a stale
API key and basic Top-K tweaks.

Triage pointer (from a scan, not from the reporter): the google_vertex provider
("Google Vertex AI") transport is in src-tauri/src/commands/storage/llm.rs
(provider handling ~L845, models URL ~L937, base
https://generativelanguage.googleapis.com ~L960 — note this is the Generative
Language API host rather than a Vertex AI *-aiplatform.googleapis.com host).
topK is a configurable generation parameter (default 0 in
src/engine/contracts/constants/defaults.ts, schema min 0). Gemini can reject
out-of-range topK values; worth checking whether topK is forwarded to the
Vertex/Gemini request and whether a 0/invalid value is filtered. The exact error
status would confirm whether this is an auth/quota issue (likely external) or a
parameter/transport bug.

Note the version string "11.3.0" and the Termux/Node self-hosted setup — confirm
which build/backend is in scope, since other current reports are v1.6.x.

Template check

Please uncheck the box below before submitting so we know you read the template. It is intentionally pre-checked:

  • I DID NOT read this template and provide the requested details.
Originally created by @GetBeholder on GitHub (May 26, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/1309 Originally assigned to: @SpicyMarinara on GitHub. ## Summary Vertex Gemini (Google Vertex AI / Gemini) stopped connecting roughly two days before this report; it had been working fine before that. The reporter tried a new API key and adjusting Top-K (both in connection settings and per-bot) without success. They are unsure whether it is a bug or a configuration issue. ## Expected behavior The Vertex Gemini connection should connect and generate as it did before it stopped working. ## Actual behavior An error prevents Vertex Gemini from connecting; changing the API key and adjusting Top-K (connection-level and per-bot) does not resolve it. ## Steps to reproduce 1. Configure a Google Vertex / Gemini connection that previously worked. 2. Attempt to generate. 3. Observe a connection error. 4. Changing the API key and adjusting Top-K (connection + per-bot) does not help. ## Impact area - [ ] App shell, navigation, startup, or providers - [x] Catalog resources - [ ] Chat mode - [ ] Roleplay mode - [ ] Game mode - [ ] Shared mode UI - [ ] Runtime systems: generation, world-state, visuals, tracker, or haptics - [ ] Professor Mari or shell tools - [ ] React-free engine behavior, contracts, agents, or capability ports - [ ] Shared API wrapper or remote runtime routing - [x] Tauri/Rust storage, assets, LLM, integrations, security, imports, or HTTP runtime - [ ] Docs, contributor workflow, or templates ## Environment - Branch or commit: reported as Marinara version 11.3.0 (unusual vs the v1.6.x range of other current reports — please confirm) - Run mode: Android mobile / Termux; Node.js v24.11.1 (self-hosted Node backend in Termux) - OS + version: Android (Termux) - Node + pnpm versions: Node v24.11.1 - Rust version, if relevant: not provided - Remote Runtime URL configured? self-hosted in Termux - Provider, model, or integration, if relevant: Google Vertex / Gemini. Chat type: conversation. ## Logs, screenshots, or video No error text was provided. The exact error message and HTTP status from the failed connection are the key missing facts — for example 401/403 (auth, permissions, or quota), 400 (bad request, possibly an invalid parameter such as Top-K), or a network/transport error. This determines whether the cause is external (Google-side key/quota/API change) or a Marinara request/transport issue. ## Regression notes Worked until roughly two days before the report (≈ 5/22/26), then stopped. The sudden stop without local changes suggests a possible external (Google Vertex) change, a key/quota/permission change, or a Marinara update — to be confirmed with the error detail. ## Additional context Source: forum report by Awwww (1-Star), 5/24/26 3:25 PM. The reporter is unsure whether this is a bug or a configuration issue and has already ruled out a stale API key and basic Top-K tweaks. Triage pointer (from a scan, not from the reporter): the `google_vertex` provider ("Google Vertex AI") transport is in `src-tauri/src/commands/storage/llm.rs` (provider handling ~L845, models URL ~L937, base `https://generativelanguage.googleapis.com` ~L960 — note this is the Generative Language API host rather than a Vertex AI `*-aiplatform.googleapis.com` host). `topK` is a configurable generation parameter (default 0 in `src/engine/contracts/constants/defaults.ts`, schema min 0). Gemini can reject out-of-range `topK` values; worth checking whether `topK` is forwarded to the Vertex/Gemini request and whether a 0/invalid value is filtered. The exact error status would confirm whether this is an auth/quota issue (likely external) or a parameter/transport bug. Note the version string "11.3.0" and the Termux/Node self-hosted setup — confirm which build/backend is in scope, since other current reports are v1.6.x. ## Template check Please uncheck the box below before submitting so we know you read the template. It is intentionally pre-checked: - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-20 17:31:14 +07:00
Author
Owner

@SpicyMarinara commented on GitHub (May 27, 2026):

Fixed on refactor in 8058f66dd4: Vertex now defaults to the Vertex AI aiplatform endpoint in both generation and model lookup, and Gemini topK=0 is filtered from requests. Validated with pnpm check and targeted Rust tests.

<!-- gh-comment-id:4555715602 --> @SpicyMarinara commented on GitHub (May 27, 2026): Fixed on refactor in 8058f66dd4affb1e74e4bdbce3b7d4580554fb9b: Vertex now defaults to the Vertex AI aiplatform endpoint in both generation and model lookup, and Gemini topK=0 is filtered from requests. Validated with pnpm check and targeted Rust tests.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#646
No description provided.