Skip to content

Commit 57e4e51

Browse files
authored
fix(ai): Handle Xcode 27 LanguageModelSession.Error collision (#16257)
1 parent e38e05f commit 57e4e51

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

FirebaseAI/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# 12.15.0
2+
- [fixed] Fixed a namespace collision with the new
3+
`FoundationModels.LanguageModelSession.Error` type introduced in Xcode 27 Beta. (#16252)
4+
15
# 12.14.0
26
- [fixed] Fixed an issue in `GenerativeModelSession` where `String` generation
37
used the wrong overload for `respond(to:)` and `streamResponse(to:)`,

FirebaseAI/Sources/Extensions/Internal/LanguageModelSession+ModelSession.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@
9292
public func _streamResponse(to prompt: [any Part], schema: FirebaseAI.GenerationSchema?,
9393
includeSchemaInPrompt: Bool,
9494
options: any GenerationOptionsRepresentable)
95-
-> sending AsyncThrowingStream<_ModelSessionResponse, any Error> {
95+
-> sending AsyncThrowingStream<_ModelSessionResponse, any Swift.Error> {
9696
return AsyncThrowingStream { continuation in
9797
let foundationModelsPrompt: Prompt
9898
do {

0 commit comments

Comments
 (0)