From 40cf5fca7724bdffcc2a4064ba5495cc6d7c3f08 Mon Sep 17 00:00:00 2001 From: amithkoujalgi Date: Fri, 8 Nov 2024 18:39:06 +0530 Subject: [PATCH] Updated README.md Updated README.md --- README.md | 12 ++++++++++-- src/main/resources/application.properties | 2 +- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 522cb5e..10460b0 100644 --- a/README.md +++ b/README.md @@ -52,7 +52,15 @@ VERSION=0.0.1; wget https://github.com/ollama4j/ollama4j-web-ui/releases/downloa ### Configure -Create a file `application.properties` and add the following configuration. +Set environment variables. + +```shell +export SERVER_PORT=8080 +export OLLAMA_HOST_ADDR=http://localhost:11434 +``` + +Or, if you would want to override the base config file, create a file `application.properties` and add the following +configuration. Update the values of `server.port` and `ollama.url` according to your needs. ```shell @@ -89,7 +97,7 @@ Then open http://localhost:8080 in your browser to access the Ollama4j Web UI. ### Improvements - [ ] Show errors on the UI. For example, -`io.github.ollama4j.exceptions.OllamaBaseException: model "llama3" not found, try pulling it first`. + `io.github.ollama4j.exceptions.OllamaBaseException: model "llama3" not found, try pulling it first`. - [ ] Settings pane for configuring default params such as `top-p`, `top-k`, etc. ### Get Involved diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index 17fdf25..d083cfb 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -1,4 +1,4 @@ -server.port=${PORT:8080} +server.port=${SERVER_PORT:8080} logging.level.org.atmosphere = warn spring.mustache.check-template-location = false