Repository navigation
refactor(ai)!: remove deprecated vertexAI APIs - #16689
Conversation
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize the Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counterproductive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here. |
|
/gemini review |
There was a problem hiding this comment.
Code Review
This pull request removes the deprecated Backend.vertexAI() and Backend.vertexAI(location:) methods from the public API, updating the changelog and removing associated unit tests. However, in VertexComponentTests.swift, the documentation comments for the deleted test methods were left behind and are now piled up above testEnterpriseInstanceCreation_defaultApp. These orphaned comments should be removed to keep the codebase clean.
990a700 to
8170d4a
Compare
|
Will merge here and address any additional feedback in a subsequent PR |
Revert commit dd2cfa8 (#16685) to undo the renaming from Gemini Enterprise Agent Platform to Gemini Enterprise API. - Restore Backend.agentPlatform(location:) as the primary public API and remove Backend.enterprise(location:). - Revert APIConfig.Service.enterprise to .agentPlatform and restore agentPlatformStagingBypassProxy. - Revert documentation comments, DocC topics, and guides back to Agent Platform Gemini API and Gemini Enterprise Agent Platform. - Clean up leftover Vertex AI symbols to align with Agent Platform and FirebaseAILogic (isFirebaseAILogicServiceDisabledError and defaultAgentPlatformAPIConfig). - Re-align tests and conflict resolutions from #16689, #16693, #16676, and #16756.
This is a cherrypick of #16846 into release-13.0. Revert commit dd2cfa8 (#16685) to undo the renaming from Gemini Enterprise Agent Platform to Gemini Enterprise API. - Restore Backend.agentPlatform(location:) as the primary public API and remove Backend.enterprise(location:). - Revert APIConfig.Service.enterprise to .agentPlatform and restore agentPlatformStagingBypassProxy. - Revert documentation comments, DocC topics, and guides back to Agent Platform Gemini API and Gemini Enterprise Agent Platform. - Clean up leftover Vertex AI symbols to align with Agent Platform and FirebaseAILogic (isFirebaseAILogicServiceDisabledError and defaultAgentPlatformAPIConfig). - Re-align tests and conflict resolutions from #16689, #16693, #16676, and #16756.
This pull request completes the transition from
vertexAItoenterpriseby completely removing the deprecatedBackend.vertexAI()andBackend.vertexAI(location:)APIs.Changes
vertexAIinitialization methods fromBackend.swiftvertexAIunit tests fromBackendTests.swift,APITests.swift, andVertexComponentTests.swift13.0.0section of the CHANGELOG