Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add change entry
Browse files Browse the repository at this point in the history
daymxn committed Mar 22, 2024
1 parent 431cc18 commit f10f6af
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions .changes/crowd-birthday-drink-circle.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"type":"PATCH","changes":["Implement error catching for unsupported Part types."]}
Original file line number Diff line number Diff line change
@@ -126,7 +126,10 @@ internal fun Part.toPublic(): com.google.ai.client.generativeai.type.Part {
com.google.ai.client.generativeai.type.BlobPart(inlineData.mimeType, data)
}
}
else -> throw SerializationException("Unsupported part type \"${javaClass.simpleName}\" provided. This model may not be supported by this SDK.")
else ->
throw SerializationException(
"Unsupported part type \"${javaClass.simpleName}\" provided. This model may not be supported by this SDK."
)
}
}

0 comments on commit f10f6af

Please sign in to comment.