Skip to content

[BUG] API provider setting / GCP vertex AI #12074

@Ats-F

Description

@Ats-F

Problem (one or two sentences)

When using the GCP Vertex AI provider to access third-party MaaS models (e.g., gpt-oss-120b-maas, qwen, kimi-k2), the extension incorrectly prepends the publisher path as publishers/google/models/ instead of the correct publisher path (e.g., publishers/openai/models/). This results in a 404 NOT_FOUND error.

Context (who is affected and when)

Trying to use third-party or Model-as-a-Service (MaaS) models through the Google Cloud Vertex AI API provider in Roo Code.

Reproduction steps

  1. Open Roo Code settings and select the "GCP Vertex AI" API provider.
  2. Provide the necessary GCP credentials and project details.
  3. Enter a third-party model name in the model field, such as gpt-oss-120b-maas (or qwen, kimi-k2).
  4. Send any prompt in the chat.
  5. Observe the 404 Not Found error indicating that the publisher model publishers/google/models/... was not found.

Expected result

The extension should route the request to the correct publisher path for the specified third-party model (for example, publishers/openai/models/gpt-oss-120b-maas for OpenAI-compatible models on Vertex AI), rather than forcing the google publisher prefix.

Actual result

The request fails because the publisher prefix seems to be hardcoded or defaulted to google. The generated path becomes publishers/google/models/, which leads to an immediate 404 error from the Google Cloud API.

Variations tried (optional)

No response

App Version

3.51.1

API Provider (optional)

Google Vertex AI

Model Used (optional)

gpt-oss-120b-maas (Also confirmed with qwen and kimi-k2)

Roo Code Task Links (optional)

No response

Relevant logs or errors (optional)

{
  "error": {
    "timestamp": "2026-04-08T02:29:17.556Z",
    "version": "3.51.1",
    "provider": "vertex",
    "model": "gpt-oss-120b-maas",
    "details": "Gemini 生成コンテキスト ストリーム エラー: {\"error\":{\"message\":\"{\\n  \\\"error\\\": {\\n    \\\"code\\\": 404,\\n    \\\"message\\\": \\\"Publisher Model `projects/unique-moon-489106-r4/locations/us-central1/publishers/google/models/gpt-oss-120b-maas` was not found or your project does not have access to it. Please ensure you are using a valid model version. For more information, see: https://cloud.google.com/vertex-ai/generative-ai/docs/learn/model-versions\\\",\\n    \\\"status\\\": \\\"NOT_FOUND\\\"\\n  }\\n}\\n\",\"code\":404,\"status\":\"Not Found\"}}"
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions