fix(ai): Handle Xcode 27 LanguageModelSession.Error collision#16257
fix(ai): Handle Xcode 27 LanguageModelSession.Error collision#16257andrewheard merged 2 commits intomainfirebase/firebase-ios-sdk:mainfrom ah/ai-error-collision-xc27firebase/firebase-ios-sdk:ah/ai-error-collision-xc27Copy head branch name to clipboard
LanguageModelSession.Error collision#16257Conversation
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. |
Summary of ChangesThis pull request addresses a compilation issue caused by a namespace collision in Xcode 27. By disambiguating the Error type, the code ensures compatibility with the updated SDK while maintaining existing functionality for model session streaming. Highlights
New Features🧠 You can now enable Memory (public preview) to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console. Activity
|
Explicitly qualified the
any Errorasany Swift.Errorin theFoundationModels.LanguageModelSessionextension for_ModelSessionconformance to fix the namespace collision with the built-in SwiftErrorprotocol and theFoundationModels.LanguageModelSession.Errortype introduced in Xcode 27. This resolves #16252.Error Details