feat(ai): document and expose GeminiLanguageModel - #16631
Conversation
Add DocC documentation comments for the GeminiLanguageModel integration with Apple's Foundation Models framework. Provide usage guidance, public preview warnings, and links to Apple's LanguageModel protocol, LanguageModelSession, and DynamicProfile. In addition, document FirebaseAI.geminiLanguageModel(name:) and include a code example showing how to instantiate and use the model.
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. |
Remove the GEMINI_LANGUAGE_MODEL environment variable check in Package.swift to unconditionally include GeminiLanguageModel targets and dependencies on supported Swift 6.4+ toolchains.
Summary of ChangesThis pull request promotes the GeminiLanguageModel to a public preview state. It streamlines the build process by removing conditional environment checks and provides developers with detailed documentation to facilitate the adoption of Gemini models within Apple's Foundation Models ecosystem. 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
|
There was a problem hiding this comment.
Code Review
This pull request introduces public preview documentation for GeminiLanguageModel and simplifies the Swift Package Manager configuration by removing the GEMINI_LANGUAGE_MODEL environment variable check, enabling the target unconditionally when compiler and framework requirements are met. Feedback was provided to percent-encode parentheses in documentation URLs to ensure they render correctly across all Markdown parsers.
Exposes
GeminiLanguageModelfor public preview and adds developer-facing DocC documentation for using Gemini with Apple's Foundation Models framework.GEMINI_LANGUAGE_MODELenvironment variable check inPackage.swiftso targets and dependencies build unconditionally on Swift 6.4+ whenFoundationModelsis available.GeminiLanguageModelandFirebaseAI.geminiLanguageModel(name:), including usage examples withLanguageModelSession, public preview callouts, and guide links.FirebaseAI/CHANGELOG.md.