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 fce055f commit 3edae05Copy full SHA for 3edae05
firebase-vertexai/src/main/kotlin/com/google/firebase/vertexai/GenerativeModel.kt
@@ -230,7 +230,7 @@ internal constructor(
230
)
231
232
private fun constructCountTokensRequest(vararg prompt: Content) =
233
- CountTokensRequest(modelName, prompt.map { it.toInternal() })
+ CountTokensRequest.forVertexAI(constructRequest(*prompt))
234
235
private fun GenerateContentResponse.validate() = apply {
236
if (candidates.isEmpty() && promptFeedback == null) {
0 commit comments