Skip to content

Conversation

@baxen
Copy link
Collaborator

@baxen baxen commented Nov 22, 2025

Summary

Check for gemini models on databricks provider using contains instead of startswith

Type of Change

  • Bug fix

Copilot AI review requested due to automatic review settings November 22, 2025 00:25
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 fixes a bug in Gemini model detection for the Databricks provider by changing from a prefix check to a substring check, allowing proper detection of both direct Gemini models (e.g., "gemini-2-5-flash") and Databricks-prefixed Gemini models (e.g., "databricks-gemini-3-pro"). This follows the existing pattern used for Claude model detection in the same file.

  • Changes model detection from starts_with("gemini") to contains("gemini") to handle optional prefixes
  • Adds test coverage for both naming patterns (direct and prefixed Gemini models)

@michaelneale michaelneale merged commit 0ff54ce into main Nov 24, 2025
17 checks passed
@michaelneale michaelneale deleted the baxen/gemini3 branch November 24, 2025 00:51
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)
  ...
michaelneale added a commit that referenced this pull request Nov 24, 2025
* main:
  feat: implement SKILLS.md - claude compatibility.  (#5760)
  urgent: github broke runners for macos (#5853)
  [fix] generic check for gemini compat (#5842)
  Add scheduler to diagnostics (#5849)
  Cors and token (#5850)
  fix sessions coming back with empty messages (#5841)
kskarthik pushed a commit to kskarthik/goose that referenced this pull request Nov 25, 2025
kskarthik pushed a commit to kskarthik/goose that referenced this pull request Nov 26, 2025
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