Skip to content

Fix: use partialResponse.content instead of updateLastMessage(with: partialResponse)#5

Open
jonatas-araujo-silva wants to merge 1 commit intoPallavAg:mainfrom
jonatas-araujo-silva:fix-streaming-snapshot
Open

Fix: use partialResponse.content instead of updateLastMessage(with: partialResponse)#5
jonatas-araujo-silva wants to merge 1 commit intoPallavAg:mainfrom
jonatas-araujo-silva:fix-streaming-snapshot

Conversation

@jonatas-araujo-silva
Copy link

The updateLastMessage(with:) function expects a String, but
LanguageModelSession.ResponseStream.Snapshot is not a String.
This commit fixes the type mismatch by passing Snapshot.content,
which contains the partially generated response text, ensuring
the app compiles and streams output correctly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant