diff --git a/generativeai/src/main/java/com/google/ai/client/generativeai/internal/api/APIController.kt b/generativeai/src/main/java/com/google/ai/client/generativeai/internal/api/APIController.kt index 5bf5adf5..86f67f8c 100644 --- a/generativeai/src/main/java/com/google/ai/client/generativeai/internal/api/APIController.kt +++ b/generativeai/src/main/java/com/google/ai/client/generativeai/internal/api/APIController.kt @@ -113,8 +113,7 @@ internal class APIController( * * Models must be prepended with the `models/` prefix when communicating with the backend. */ -private fun fullModelName(name: String): String = - name.takeIf { it.contains("/") } ?: "models/$name" +private fun fullModelName(name: String): String = name.takeIf { it.contains("/") } ?: "models/$name" /** * Makes a POST request to the specified [url] and returns a [Flow] of deserialized response objects