Skip to content

Commit

Permalink
Merge branch 'main' into rl.sample.snippet.initial
Browse files Browse the repository at this point in the history
  • Loading branch information
rlazo authored Jul 9, 2024
2 parents a03f151 + f0559c8 commit 4cd8686
Show file tree
Hide file tree
Showing 9 changed files with 2,065 additions and 9 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 @@ -80,9 +80,9 @@ internal class UnarySnapshotTests {
withTimeout(testTimeout) {
val response = apiController.generateContent(textGenerateContentRequest("prompt"))

response.candidates?.first {
it.safetyRatings?.any { it.category == HarmCategory.UNKNOWN } ?: false
}
response.candidates?.isNullOrEmpty() shouldBe false
val candidate = response.candidates?.first()
candidate?.safetyRatings?.any { it.category == HarmCategory.UNKNOWN } shouldBe true
}
}

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 @@ -91,5 +91,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 4cd8686

Please sign in to comment.