fix(ai): Handle Xcode 27 LanguageModelSession.Error collision (#16257)

This commit is contained in:
Andrew Heard authored and GitHub committed 2026-06-10 10:49:03 -04:00
1 parent e38e05ff4a
commit 57e4e51357
2 files changed
+5 -1

No files matched your search

+4
View File
@@ -1,3 +1,7 @@
# 12.15.0
- [fixed] Fixed a namespace collision with the new
`FoundationModels.LanguageModelSession.Error` type introduced in Xcode 27 Beta. (#16252)
# 12.14.0
- [fixed] Fixed an issue in `GenerativeModelSession` where `String` generation
used the wrong overload for `respond(to:)` and `streamResponse(to:)`,
@@ -92,7 +92,7 @@
public func _streamResponse(to prompt: [any Part], schema: FirebaseAI.GenerationSchema?,
includeSchemaInPrompt: Bool,
options: any GenerationOptionsRepresentable)
-> sending AsyncThrowingStream<_ModelSessionResponse, any Error> {
-> sending AsyncThrowingStream<_ModelSessionResponse, any Swift.Error> {
return AsyncThrowingStream { continuation in
let foundationModelsPrompt: Prompt
do {