mirror of
https://github.com/firebase/firebase-ios-sdk
synced 2026-11-09 22:36:01 +05:45
fix(ai): Handle Xcode 27 LanguageModelSession.Error collision (#16257)
This commit is contained in:
1 parent
e38e05ff4a
commit
57e4e51357
2 files changed
+5
-1
No files matched your search
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user