Skip to content

Conversation

@rabi
Copy link
Contributor

@rabi rabi commented Jan 8, 2026

Summary

  • Add static KNOWN_MODELS list for Claude and Gemini models
  • Filter models by GCP org policy (constraints/vertexai.allowedModels)
  • Preserve unlisted model entry via allows_unlisted_models flag
  • Replace ClaudeVersion/GeminiVersion enums with simple string storage

Note: Vertex AI does not provide a public REST API to list available foundation/publisher models, hence the static KNOWN_MODELS approach.

Type of Change

  • Feature
  • Bug fix
  • Refactor / Code quality
  • Performance improvement
  • Documentation
  • Tests
  • Security fix
  • Build / Release
  • Other (specify below)

AI Assistance

  • This PR was created or reviewed with AI assistance

Testing

Unit tests and tested with Vertex AI.

@rabi rabi force-pushed the vertex_fix branch 2 times, most recently from 3837d5b to a02717d Compare January 13, 2026 05:31
@rabi
Copy link
Contributor Author

rabi commented Jan 16, 2026

@jamadeo Hey PTAL. This removes some cruft and makes is easier to select/provide models when configuring gcp_vertex_ai provider.

@jamadeo jamadeo self-requested a review January 16, 2026 16:36
let mut model_items: Vec<(String, String, &str)> =
models.iter().map(|m| (m.clone(), m.clone(), "")).collect();

if provider_meta.allows_unlisted_models {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Maybe we should just always allow this for any provider? Since we now have the ability, we might as well let the user opt to do this

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think most providers expose a model‑listing API (Vertex AI is the exception), so offering an ‘unlisted model’ option for those providers is less useful and can lead to invalid selections and subsequent error when configuring the provider.

- Add static KNOWN_MODELS list for Claude and Gemini models
- Filter models by GCP org policy (constraints/vertexai.allowedModels)
- Preserve unlisted model entry via allows_unlisted_models flag
- Replace ClaudeVersion/GeminiVersion enums with simple string storage

Note: Vertex AI does not provide a public REST API to list available
foundation/publisher models, hence the static KNOWN_MODELS approach.

Signed-off-by: rabi <[email protected]>
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.

2 participants