Skip to content

Conversation

@katzdave
Copy link
Collaborator

@katzdave katzdave commented Nov 19, 2025

Summary

Fix parse error instantly killing goose from parsing models like: qwen3-coder-480b-a35b-instruct-maas

I don't have a working gcp vertex provider config so this just gets me into an auth error (but at least past the parsing error). I'm not sure about the model format. I think we'll likely need to add branching based on the publisher of the model, but defaulting to google and this at least pushes things further along.

Left a TODO around that.

#4182

Copilot AI review requested due to automatic review settings November 19, 2025 19:35
@katzdave katzdave changed the title Parse Google Maas models fix(provider): Parse Google Maas models Nov 19, 2025
@katzdave katzdave changed the title fix(provider): Parse Google Maas models fix: Parse maas models for gcp vertex provider Nov 19, 2025
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds support for parsing Google MaaS (Model as a Service) models from Model Garden, such as "qwen3-coder-480b-a35b-instruct-maas". The changes introduce a new MaaS variant to handle these models and route them to use the Google API format.

Key changes:

  • Added MaaS variant to GcpVertexAIModel and ModelProvider enums to represent Model Garden models
  • Implemented parsing logic for models ending in "-maas" suffix, extracting publisher information
  • Routed MaaS models to use "generateContent" endpoint and Google request/response format

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
crates/goose/src/providers/formats/gcpvertexai.rs Adds MaaS enum variant, parsing logic for "-maas" suffix models, and routes them to Google format handlers
crates/goose/src/providers/gcpvertexai.rs Adds MaaS case to endpoint selection and updates tests for new ModelProvider return type

Copy link
Collaborator

@michaelneale michaelneale left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

seems better than the way it was!

@katzdave katzdave merged commit c9e9af5 into main Nov 20, 2025
20 of 21 checks passed
@katzdave katzdave deleted the dkatz/google-vertex-maas branch November 20, 2025 15:51
wpfleger96 added a commit that referenced this pull request Nov 20, 2025
* main:
  fix: Parse maas models for gcp vertex provider (#5816)
michaelneale added a commit that referenced this pull request Nov 24, 2025
* main: (48 commits)
  [fix] generic check for gemini compat (#5842)
  Add scheduler to diagnostics (#5849)
  Cors and token (#5850)
  fix sessions coming back with empty messages (#5841)
  markdown export from URL (#5830)
  Next camp refactor live (#5706)
  Add out of context compaction test via error proxy (#5805)
  fix: Add backward compatibility for conversationCompacted message type (#5819)
  Add /agent/stop endpoint, make max active agents configurable (#5826)
  Handle 404s (#5791)
  Persist provider name and model config in the session (#5419)
  Comment out the flaky mcp callers (#5827)
  Slash commands (#5718)
  fix: remove setx calls to not permanently edit the windows shell PATH (#5821)
  fix: Parse maas models for gcp vertex provider (#5816)
  fix: support Gemini 3's thought signatures (#5806)
  chore: Add Adrian Cole to Maintainers (#5815)
  [MCP-UI] Proxy and Better Message Handling (#5487)
  Release 1.15.0
  Document New Window menu in macOS dock (#5811)
  ...
BlairAllan pushed a commit to BlairAllan/goose that referenced this pull request Nov 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants