mirror of
https://github.com/firebase/firebase-ios-sdk
synced 2026-11-09 22:36:01 +05:45
Clean up the interim integration with Apple's Foundation Models framework in Firebase AI Logic for Firebase 13. Apple now natively supports third-party providers in the Foundation Models framework via LanguageModel, which is implemented directly by GeminiLanguageModel. The custom GenerativeModelSession, SystemLanguageModel, HybridModel, custom GenerationSchema, and related bridging types and protocols are now obsolete. - Remove GenerativeModelSession, SystemLanguageModel, HybridModel, GeminiModel, and related session protocols and provider types. - Remove custom GenerationSchema, GeneratedContent, and related structured output protocols. - Remove internal responseJSONSchema support from GenerationConfig and associated test permutations in FirebaseAILogic and TestApp. - Remove IS_FOUNDATION_MODELS_SUPPORTED_PLATFORM build settings from Package.swift and FirebaseAILogic.podspec. BREAKING CHANGE: GenerativeModelSession, SystemLanguageModel, HybridModel, GeminiModel, and associated interim integration types and protocols have been removed. Use GeminiLanguageModel with Apple's Foundation Models framework instead.