File tree Expand file tree Collapse file tree 2 files changed +5
-14
lines changed
firebase-ai/src/test/java/com/google/firebase/ai Expand file tree Collapse file tree 2 files changed +5
-14
lines changed Original file line number Diff line number Diff line change @@ -56,10 +56,14 @@ jobs:
5656 distribution : temurin
5757 cache : gradle
5858
59- - name : Clone mock responses
59+ - name : Clone vertexai mock responses
6060 if : matrix.module == ':firebase-vertexai'
6161 run : firebase-vertexai/update_responses.sh
6262
63+ - name : Clone ai mock responses
64+ if : matrix.module == ':firebase-ai'
65+ run : firebase-ai/update_responses.sh
66+
6367 - name : Add google-services.json
6468 env :
6569 INTEG_TESTS_GOOGLE_SERVICES : ${{ secrets.INTEG_TESTS_GOOGLE_SERVICES }}
Original file line number Diff line number Diff line change @@ -59,19 +59,6 @@ internal class DevAPIUnarySnapshotTests {
5959 }
6060 }
6161
62- @Test
63- fun `quotes escaped` () =
64- goldenDevAPIUnaryFile(" unary-success-quote-reply.txt" ) {
65- withTimeout(testTimeout) {
66- val response = model.generateContent(" prompt" )
67-
68- response.candidates.isEmpty() shouldBe false
69- response.candidates.first().content.parts.isEmpty() shouldBe false
70- val part = response.candidates.first().content.parts.first() as TextPart
71- part.text shouldContain " \" "
72- }
73- }
74-
7562 @Test
7663 fun `prompt blocked for safety` () =
7764 goldenDevAPIUnaryFile(" unary-failure-prompt-blocked-safety.txt" ) {
You can’t perform that action at this time.
0 commit comments