How can I "test" in Spring AI? #679
-
Hello, I'm a student who love Spring and Java. when I use RestTemplate or WebClient for function with AI (ex: call ChatGPT to ask concept of something), I can test it but I don't know how I can test AI function when I use Spring AI. thank you for read my question. |
Beta Was this translation helpful? Give feedback.
Answered by
f3rnandomoreno
May 7, 2024
Replies: 1 comment 2 replies
-
You have many examples in the project of the integrationTests. They are files finished in IT, for example this one You can find also for OpenAi chat client and many more. I think they can guide you. |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
devholic22
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You have many examples in the project of the integrationTests. They are files finished in IT, for example this one
https://github.com/spring-projects/spring-ai/blob/1c93ae50a805dcb54b05a6fbbc11667b3aac6562/models/spring-ai-ollama/src/test/java/org/springframework/ai/ollama/OllamaChatClientIT.java
You can find also for OpenAi chat client and many more. I think they can guide you.