mirror of
https://github.com/amithkoujalgi/ollama4j.git
synced 2025-10-14 01:18:58 +02:00
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:
parent
a1b5756107
commit
300f1691e7
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user