forked from Mirror/ollama4j
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:
@@ -61,9 +61,6 @@ class OllamaAPIIntegrationTest {
|
|||||||
Boolean.parseBoolean(System.getenv("USE_EXTERNAL_OLLAMA_HOST"));
|
Boolean.parseBoolean(System.getenv("USE_EXTERNAL_OLLAMA_HOST"));
|
||||||
String ollamaHost = System.getenv("OLLAMA_HOST");
|
String ollamaHost = System.getenv("OLLAMA_HOST");
|
||||||
|
|
||||||
useExternalOllamaHost = true;
|
|
||||||
ollamaHost ="http://192.168.29.229:11434/";
|
|
||||||
|
|
||||||
if (useExternalOllamaHost) {
|
if (useExternalOllamaHost) {
|
||||||
LOG.info("Using external Ollama host...");
|
LOG.info("Using external Ollama host...");
|
||||||
api = new OllamaAPI(ollamaHost);
|
api = new OllamaAPI(ollamaHost);
|
||||||
|
|||||||
Reference in New Issue
Block a user