From 300f1691e73c1afaa00aed33faac97802384ed95 Mon Sep 17 00:00:00 2001 From: amithkoujalgi Date: Wed, 17 Sep 2025 20:38:20 +0530 Subject: [PATCH] Remove hardcoded Ollama host in integration test Eliminated hardcoded values for 'useExternalOllamaHost' and 'ollamaHost' in OllamaAPIIntegrationTest. The test now relies solely on environment variables for configuration. --- .../ollama4j/integrationtests/OllamaAPIIntegrationTest.java | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/test/java/io/github/ollama4j/integrationtests/OllamaAPIIntegrationTest.java b/src/test/java/io/github/ollama4j/integrationtests/OllamaAPIIntegrationTest.java index 0d6414d..9537580 100644 --- a/src/test/java/io/github/ollama4j/integrationtests/OllamaAPIIntegrationTest.java +++ b/src/test/java/io/github/ollama4j/integrationtests/OllamaAPIIntegrationTest.java @@ -61,9 +61,6 @@ class OllamaAPIIntegrationTest { Boolean.parseBoolean(System.getenv("USE_EXTERNAL_OLLAMA_HOST")); String ollamaHost = System.getenv("OLLAMA_HOST"); - useExternalOllamaHost = true; - ollamaHost ="http://192.168.29.229:11434/"; - if (useExternalOllamaHost) { LOG.info("Using external Ollama host..."); api = new OllamaAPI(ollamaHost);