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.
This commit is contained in:
amithkoujalgi 2025-09-17 20:38:20 +05:30
parent a1b5756107
commit 300f1691e7
No known key found for this signature in database
GPG Key ID: E29A37746AF94B70

View File

@ -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);