-
Notifications
You must be signed in to change notification settings - Fork 2.5k
feat(gcp-vertex): add model list with org policy filtering #6393
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
3837d5b to
a02717d
Compare
|
@jamadeo Hey PTAL. This removes some cruft and makes is easier to select/provide models when configuring gcp_vertex_ai provider. |
| let mut model_items: Vec<(String, String, &str)> = | ||
| models.iter().map(|m| (m.clone(), m.clone(), "")).collect(); | ||
|
|
||
| if provider_meta.allows_unlisted_models { |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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 <ramishra@redhat.com>
* main: increase worker threads for ci (#6614) docs: todo tutorial update (#6613) Added goose doc map md file for goose agent to find relevant doc easily. (#6598) add back goose branding to home (#6617) fix: actually set the working dir for extensions from session (#6612) Multi chat (#6428) Lifei/fixed accumulated token count (#6587) Dont show MCP UI/Apps until tool is approved (#6492) docs: max tokens config (#6596) User configurable templates (#6420) docs: http proxy environment variables (#6594) feat: exclude subagent tool from code_execution filtering (#6531) Fix path for global agent skills (#6591) recipes: add mcp server (#6552) feat(gcp-vertex): add model list with org policy filtering (#6393) chore: encourage extension searching (#6582) blog: mobile apps consolidation and roadmap (#6580) chore: remove unused dependencies in cargo.toml (#6561) resolved all the extensions to load in cli (#6464)
* main: (41 commits) chore: tweak release docs (#6571) fix(goose): propagate session_id across providers and MCP (#6584) increase worker threads for ci (#6614) docs: todo tutorial update (#6613) Added goose doc map md file for goose agent to find relevant doc easily. (#6598) add back goose branding to home (#6617) fix: actually set the working dir for extensions from session (#6612) Multi chat (#6428) Lifei/fixed accumulated token count (#6587) Dont show MCP UI/Apps until tool is approved (#6492) docs: max tokens config (#6596) User configurable templates (#6420) docs: http proxy environment variables (#6594) feat: exclude subagent tool from code_execution filtering (#6531) Fix path for global agent skills (#6591) recipes: add mcp server (#6552) feat(gcp-vertex): add model list with org policy filtering (#6393) chore: encourage extension searching (#6582) blog: mobile apps consolidation and roadmap (#6580) chore: remove unused dependencies in cargo.toml (#6561) ...
Signed-off-by: rabi <ramishra@redhat.com> Signed-off-by: fbalicchia <fbalicchia@cuebiq.com>
Summary
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
AI Assistance
Testing
Unit tests and tested with Vertex AI.