You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
IMPORTANT: All the remaining parts of this section assume that you'll be working inside the project folder that was just created. In this case, `{project-ai-name}`.
37
37
38
-
This tutorial was explicitly tested with LangChain4j OpenAI version 0.4.0. So, to guarantee that everything will work as expected, we'll need to update it on our POM file:
38
+
This tutorial was explicitly tested with LangChain4j OpenAI version 0.4.0. So, to guarantee that everything will work as expected, we'll need to update it on our POM file, so replace the existing dependency with the following:
39
39
40
40
[.console-input]
41
41
[source,xml]
@@ -80,7 +80,7 @@ public interface Assistant {
80
80
81
81
Now we're going to implement a resource that send prompts using the AI service.
82
82
83
-
Create a new `ExistencialQuestionResource` Java class in `src/main/java` in the `com.redhat.developers` package with the following contents:
83
+
Create a new `ExistentialQuestionResource` Java class in `src/main/java` in the `com.redhat.developers` package with the following contents:
84
84
85
85
[.console-input]
86
86
[source,java]
@@ -94,7 +94,7 @@ import jakarta.ws.rs.Produces;
94
94
import jakarta.ws.rs.core.MediaType;
95
95
96
96
@Path("/earth")
97
-
public class ExistencialQuestionResource {
97
+
public class ExistentialQuestionResource {
98
98
99
99
@Inject
100
100
Assistant assistant;
@@ -110,6 +110,33 @@ public class ExistencialQuestionResource {
0 commit comments