You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (Jira)" <ji...@apache.org> on 2024/08/28 11:31:00 UTC

[jira] [Commented] (CAMEL-21133) camel-jbang: export a project using langchain4j-chat does not compile

    [ https://issues.apache.org/jira/browse/CAMEL-21133?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17877351#comment-17877351 ] 

Claus Ibsen commented on CAMEL-21133:
-------------------------------------

You cannot expect jbang to know that the manual deps you specify should be something else. So if you run in Q and want to use those quarkvise JARs then specify using these maven coordinates.
camel-jbang will only export to SB/Q and adjust maven coordinates for its own JARs.

> camel-jbang: export a project using langchain4j-chat does not compile 
> ----------------------------------------------------------------------
>
>                 Key: CAMEL-21133
>                 URL: https://issues.apache.org/jira/browse/CAMEL-21133
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-jbang, camel-langchain4j-chat
>    Affects Versions: 4.7.0
>            Reporter: Otavio Rodolfo Piske
>            Priority: Major
>         Attachments: Weather.java, build.log
>
>
> When trying to export a project using the export feature, the resulting project does not compile due to the following error (see build.log attachment for details).
> Step 1: export the project
> {{camel export --dependency=dev.langchain4j:langchain4j-core:0.33.0 --dependency=dev.langchain4j:langchain4j-open-ai:0.33.0 --runtime=quarkus Weather.java}}
> Step 2: try to build the generated project
> {{mvn verify}}
> Result:
> Compilation fails with the following error:
> {{[error]: Build step io.quarkiverse.langchain4j.deployment.BeansProcessor#handleProviders threw an exception: io.quarkus.runtime.configuration.ConfigurationException: A ChatLanguageModel or StreamingChatLanguageModel bean was requested, but no langchain4j providers were configured. Consider adding an extension like 'quarkus-langchain4j-openai'}}
> The problem is that the generated project should be using {{io.quarkiverse.langchain4j:quarkus-langchain4j-core:0.16.4}} and {{io.quarkiverse.langchain4j:quarkus-langchain4j-openai:0.16.4}} instead. 
> Adjusting the {{pom.xml}} file to manually replace the dependencies solve the problem. 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)