This is an automated email from the ASF dual-hosted git repository.

jamesnetherton pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-quarkus-examples.git

commit 4f88c7df7555e5aa7f673ad8b0ed62d83937ee3f
Author: aldettinger <[email protected]>
AuthorDate: Fri Dec 13 16:26:43 2024 +0100

    data-extract-langchain4j: use the ai service resolution by interface
---
 .../src/main/java/org/acme/extraction/Routes.java                    | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git 
a/data-extract-langchain4j/src/main/java/org/acme/extraction/Routes.java 
b/data-extract-langchain4j/src/main/java/org/acme/extraction/Routes.java
index e3b48cc..a376aca 100644
--- a/data-extract-langchain4j/src/main/java/org/acme/extraction/Routes.java
+++ b/data-extract-langchain4j/src/main/java/org/acme/extraction/Routes.java
@@ -23,9 +23,6 @@ import org.apache.camel.builder.RouteBuilder;
 @ApplicationScoped
 public class Routes extends RouteBuilder {
 
-    @Inject
-    CustomPojoExtractionService customPojoExtractionService;
-
     @Inject
     CustomPojoStore customPojoStore;
 
@@ -37,7 +34,7 @@ public class Routes extends RouteBuilder {
                 .log("A document has been received by the camel-quarkus-file 
extension: ${body}")
                 .setHeader("expectedDateFormat", constant("YYYY-MM-DD"))
                 // The CustomPojoExtractionService transforms the conversation 
transcript into a CustomPojoExtractionService.CustomPojo
-                .bean(customPojoExtractionService)
+                .bean(CustomPojoExtractionService.class)
                 // Store extracted CustomPojoExtractionService.CustomPojos 
objects into the CustomPojoStore for later inspection
                 .bean(customPojoStore);
 

Reply via email to