Skip to content

Commit 3edae05

Browse files
author
David Motsonashvili
committed
add changes from #6011
1 parent fce055f commit 3edae05

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

firebase-vertexai/src/main/kotlin/com/google/firebase/vertexai/GenerativeModel.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ internal constructor(
230230
)
231231

232232
private fun constructCountTokensRequest(vararg prompt: Content) =
233-
CountTokensRequest(modelName, prompt.map { it.toInternal() })
233+
CountTokensRequest.forVertexAI(constructRequest(*prompt))
234234

235235
private fun GenerateContentResponse.validate() = apply {
236236
if (candidates.isEmpty() && promptFeedback == null) {

0 commit comments

Comments
 (0)