We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 95c625b commit 17e572aCopy full SHA for 17e572a
firebaseai/src/LiveSessionResponse.cs
@@ -40,7 +40,7 @@ public readonly struct LiveSessionResponse {
40
public string Text {
41
get {
42
StringBuilder stringBuilder = new();
43
- if (Message is LiveSessionContent content) {
+ if (Message is LiveSessionContent content && content.Content != null) {
44
foreach (var part in content.Content?.Parts) {
45
if (part is ModelContent.TextPart textPart) {
46
stringBuilder.Append(textPart.Text);
0 commit comments