[
https://issues.apache.org/jira/browse/CAMEL-21133?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Claus Ibsen resolved CAMEL-21133.
---------------------------------
Resolution: Fixed
This would works with 4.9 onwards
> 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
> Fix For: 4.9.0
>
> 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)