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.git
commit cb8cce27ab596715571bd8518ca8884cc6818e90 Author: James Netherton <[email protected]> AuthorDate: Tue Sep 2 15:31:27 2025 +0100 Clean up leftovers from Quarkus LangChain4j removeal in langchan4j-chat tests --- .../camel/quarkus/component/langchain4j/agent/it/AgentProducers.java | 4 ++++ .../component/langchain4j/agent/it/Langchain4jAgentRoutes.java | 4 ++++ integration-tests/langchain4j-chat/README.adoc | 2 +- integration-tests/langchain4j-chat/pom.xml | 4 ---- .../quarkus/component/langchain/chat/it/LangChain4jChatResource.java | 4 ++-- .../quarkus/component/langchain4j/chat/it/OllamaTestResource.java | 4 ++-- 6 files changed, 13 insertions(+), 9 deletions(-) diff --git a/integration-tests/langchain4j-agent/src/main/java/org/apache/camel/quarkus/component/langchain4j/agent/it/AgentProducers.java b/integration-tests/langchain4j-agent/src/main/java/org/apache/camel/quarkus/component/langchain4j/agent/it/AgentProducers.java new file mode 100644 index 0000000000..0d0988ccb0 --- /dev/null +++ b/integration-tests/langchain4j-agent/src/main/java/org/apache/camel/quarkus/component/langchain4j/agent/it/AgentProducers.java @@ -0,0 +1,4 @@ +package org.apache.camel.quarkus.component.langchain4j.agent.it; + +public class AgentProducers { +} diff --git a/integration-tests/langchain4j-agent/src/main/java/org/apache/camel/quarkus/component/langchain4j/agent/it/Langchain4jAgentRoutes.java b/integration-tests/langchain4j-agent/src/main/java/org/apache/camel/quarkus/component/langchain4j/agent/it/Langchain4jAgentRoutes.java new file mode 100644 index 0000000000..5a7de2040e --- /dev/null +++ b/integration-tests/langchain4j-agent/src/main/java/org/apache/camel/quarkus/component/langchain4j/agent/it/Langchain4jAgentRoutes.java @@ -0,0 +1,4 @@ +package org.apache.camel.quarkus.component.langchain4j.agent.it; + +public class Langchain4jAgentRoutes { +} diff --git a/integration-tests/langchain4j-chat/README.adoc b/integration-tests/langchain4j-chat/README.adoc index d5050547e3..cedaba9555 100644 --- a/integration-tests/langchain4j-chat/README.adoc +++ b/integration-tests/langchain4j-chat/README.adoc @@ -8,7 +8,7 @@ When Ollama is running, set the following environment variables: [source,shell] ---- -export QUARKUS_LANGCHAIN4J_OLLAMA_BASE_URL=your-ollama-api-url +export LANGCHAIN4J_OLLAMA_BASE_URL=your-ollama-api-url ---- If the WireMock stub recordings need updating, then remove the existing files from `src/test/resources/mappings` and run tests with either: diff --git a/integration-tests/langchain4j-chat/pom.xml b/integration-tests/langchain4j-chat/pom.xml index f772c07474..7007e417e9 100644 --- a/integration-tests/langchain4j-chat/pom.xml +++ b/integration-tests/langchain4j-chat/pom.xml @@ -51,10 +51,6 @@ <groupId>dev.langchain4j</groupId> <artifactId>langchain4j-ollama</artifactId> </dependency> - <dependency> - <groupId>org.apache.camel.quarkus</groupId> - <artifactId>camel-quarkus-support-retrofit</artifactId> - </dependency> <dependency> <groupId>io.quarkus</groupId> <artifactId>quarkus-jackson</artifactId> diff --git a/integration-tests/langchain4j-chat/src/main/java/org/apache/camel/quarkus/component/langchain/chat/it/LangChain4jChatResource.java b/integration-tests/langchain4j-chat/src/main/java/org/apache/camel/quarkus/component/langchain/chat/it/LangChain4jChatResource.java index 2eec7351ad..de9967c5ec 100644 --- a/integration-tests/langchain4j-chat/src/main/java/org/apache/camel/quarkus/component/langchain/chat/it/LangChain4jChatResource.java +++ b/integration-tests/langchain4j-chat/src/main/java/org/apache/camel/quarkus/component/langchain/chat/it/LangChain4jChatResource.java @@ -128,7 +128,7 @@ public class LangChain4jChatResource { @Named("m1") ChatModel model() { return OllamaChatModel.builder() - .baseUrl(ConfigProvider.getConfig().getValue("quarkus.langchain4j.ollama.base-url", String.class)) + .baseUrl(ConfigProvider.getConfig().getValue("langchain4j.ollama.base-url", String.class)) .modelName("orca-mini") .temperature(0.3) .build(); @@ -138,7 +138,7 @@ public class LangChain4jChatResource { @Named("m2") ChatModel model2() { return OllamaChatModel.builder() - .baseUrl(ConfigProvider.getConfig().getValue("quarkus.langchain4j.ollama.base-url", String.class)) + .baseUrl(ConfigProvider.getConfig().getValue("langchain4j.ollama.base-url", String.class)) .modelName("orca-mini") .temperature(0.3) .build(); diff --git a/integration-tests/langchain4j-chat/src/test/java/org/apache/camel/quarkus/component/langchain4j/chat/it/OllamaTestResource.java b/integration-tests/langchain4j-chat/src/test/java/org/apache/camel/quarkus/component/langchain4j/chat/it/OllamaTestResource.java index 49b105f8e3..ce684d3342 100644 --- a/integration-tests/langchain4j-chat/src/test/java/org/apache/camel/quarkus/component/langchain4j/chat/it/OllamaTestResource.java +++ b/integration-tests/langchain4j-chat/src/test/java/org/apache/camel/quarkus/component/langchain4j/chat/it/OllamaTestResource.java @@ -21,14 +21,14 @@ import java.util.Map; import org.apache.camel.quarkus.test.wiremock.WireMockTestResourceLifecycleManager; public class OllamaTestResource extends WireMockTestResourceLifecycleManager { - private static final String OLLAMA_ENV_URL = "QUARKUS_LANGCHAIN4J_OLLAMA_BASE_URL"; + private static final String OLLAMA_ENV_URL = "LANGCHAIN4J_OLLAMA_BASE_URL"; @Override public Map<String, String> start() { Map<String, String> properties = super.start(); String wiremockUrl = properties.get("wiremock.url"); String url = wiremockUrl != null ? wiremockUrl : getRecordTargetBaseUrl(); - properties.put("quarkus.langchain4j.ollama.base-url", url); + properties.put("langchain4j.ollama.base-url", url); return properties; }
