Skip to content

Commit

Permalink
Merge branch 'main' into daymon-align-proto
Browse files Browse the repository at this point in the history
  • Loading branch information
daymxn authored Jul 3, 2024
2 parents 97ee570 + f0559c8 commit c60b20d
Show file tree
Hide file tree
Showing 9 changed files with 2,068 additions and 6 deletions.
1 change: 0 additions & 1 deletion .changes/common/angle-carpenter-beam-clock.json

This file was deleted.

1 change: 0 additions & 1 deletion .changes/generativeai/beef-collar-burn-aftermath.json

This file was deleted.

1 change: 0 additions & 1 deletion .changes/generativeai/direction-bee-brass-aftermath.json

This file was deleted.

1,567 changes: 1,567 additions & 0 deletions api/common/0.8.0.api

Large diffs are not rendered by default.

492 changes: 492 additions & 0 deletions api/generativeai/0.9.0.api

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion common/gradle.properties
Original file line number Diff line number Diff line change
@@ -1 +1 @@
version=0.7.1
version=0.8.0
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,13 @@ internal class UnarySnapshotTests {
withTimeout(testTimeout) {
val response = apiController.generateContent(textGenerateContentRequest("prompt"))

<<<<<<< daymon-align-proto
response.candidates.first { it.safetyRatings.any { it.category == HarmCategory.UNKNOWN } }
=======
response.candidates?.isNullOrEmpty() shouldBe false
val candidate = response.candidates?.first()
candidate?.safetyRatings?.any { it.category == HarmCategory.UNKNOWN } shouldBe true
>>>>>>> main
}
}

Expand Down
2 changes: 1 addition & 1 deletion generativeai-android-sample/app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -75,5 +75,5 @@ dependencies {
debugImplementation("androidx.compose.ui:ui-tooling")
debugImplementation("androidx.compose.ui:ui-test-manifest")

implementation("com.google.ai.client.generativeai:generativeai:0.7.0")
implementation("com.google.ai.client.generativeai:generativeai:0.9.0")
}
2 changes: 1 addition & 1 deletion generativeai/gradle.properties
Original file line number Diff line number Diff line change
@@ -1 +1 @@
version=0.8.0
version=0.9.0

0 comments on commit c60b20d

Please sign in to comment.