-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
VertexAI - Decoding the Chat history fails with "No text, inline data or function call was found." when a functionResponse exists #13593
Comments
I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight. |
Hi @TiVoShane, thank you for providing the the full code snippet. That made it easy to understand your use case for decoding |
@TiVoShane The fix for this issue is merged into firebase-ios-sdk/FirebaseVertexAI/CHANGELOG.md Lines 7 to 14 in 3e2c79d
|
Any idea when 11.3 will be released? Thanks for fixing this!
Shane Miller
https://twitter.com/TiVoShane
https://www.instagram.com/tivoshane
<https://www.instagram.com/tivoshane?igsh=OXV3amY0ejAzejgz&utm_source=qr>
…On Mon, Sep 9, 2024 at 2:42 PM Andrew Heard ***@***.***> wrote:
@TiVoShane <https://github.com/TiVoShane> The fix for this issue is
merged into main now and will go out in the Firebase 11.3 (next next)
release. As a heads up, if you try this out on main (or the upcoming
Firebase 11.2 release) there will be a few breaking changes that might
require you to tweak your code slightly if you use those APIs:
https://github.com/firebase/firebase-ios-sdk/blob/3e2c79dd62289dc0c503eabbdb262ad6118432c8/FirebaseVertexAI/CHANGELOG.md?plain=1#L7-L14
—
Reply to this email directly, view it on GitHub
<#13593 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AA5ICKHRXIZRNSOPIVSRCNLZVX2ZBAVCNFSM6AAAAABNWWVKESVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMZYHEZTQMBVGY>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
We plan to release 11.3 the week of September 30th |
Description
In order to save the Chat history, I encode it and save it to a file. When the app starts, I load the Chat history from the file and decode it. This works fine unless the Chat history contains a functionResponse. Decoding the history when it contains a functionResponse fails.
Reproducing the issue
Use the code below to test. Call the await test() function.
The first time, loading the chat history will fail because no file called"testFile" exists. However, saving is successful so the file will exist the next time you call test().
The second time, the file exists but decoding fails.
Firebase SDK Version
11.1
Xcode Version
16.0
Installation Method
Swift Package Manager
Firebase Product(s)
VertexAI
Targeted Platforms
iOS
Relevant Log Output
If using Swift Package Manager, the project's Package.resolved
Expand
Package.resolved
snippetReplace this line with the contents of your Package.resolved.
If using CocoaPods, the project's Podfile.lock
Expand
Podfile.lock
snippetReplace this line with the contents of your Podfile.lock!
The text was updated successfully, but these errors were encountered: