diff --git a/pom.xml b/pom.xml index 6ad9d6d..7c2d9f3 100644 --- a/pom.xml +++ b/pom.xml @@ -143,11 +143,13 @@ 17 + true diff --git a/spring-boot-starter-user-beans/pom.xml b/spring-boot-starter-user-beans/pom.xml index 2f5c794..fe22881 100644 --- a/spring-boot-starter-user-beans/pom.xml +++ b/spring-boot-starter-user-beans/pom.xml @@ -69,6 +69,11 @@ 2.27.2 test + + com.pkslow + google-bard + 0.3.4 + diff --git a/spring-boot-starter-user-beans/src/test/java/io/github/jabrena/GoogleBardTest.java b/spring-boot-starter-user-beans/src/test/java/io/github/jabrena/GoogleBardTest.java new file mode 100644 index 0000000..24664cf --- /dev/null +++ b/spring-boot-starter-user-beans/src/test/java/io/github/jabrena/GoogleBardTest.java @@ -0,0 +1,22 @@ +package io.github.jabrena; + +import static org.assertj.core.api.Assertions.assertThat; + +import com.pkslow.ai.AIClient; +import com.pkslow.ai.GoogleBardClient; +import com.pkslow.ai.domain.Answer; +import com.pkslow.ai.domain.AnswerStatus; +import org.junit.jupiter.api.Test; + +class GoogleBardTest { + + @Test + void shouldWorks() { + String token = "ZAieRN7BGf6wg543LABRXAzwtc9GCEJ18b96OYBG6j-MFZZ15q5XDm31xNec5Q5lcZucGQ."; + AIClient client = new GoogleBardClient(token); + Answer answer = client.ask("can you show me a picture of clock?"); + + System.out.println(answer.toString()); + assertThat(answer.getStatus()).isEqualTo(AnswerStatus.ERROR); + } +}