Skip to content

Commit

Permalink
Updated README.md
Browse files Browse the repository at this point in the history
Updated README.md
  • Loading branch information
amithkoujalgi committed Nov 8, 2024
1 parent e4a733e commit 40cf5fc
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
12 changes: 10 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/application.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
server.port=${PORT:8080}
server.port=${SERVER_PORT:8080}
logging.level.org.atmosphere = warn
spring.mustache.check-template-location = false

Expand Down

0 comments on commit 40cf5fc

Please sign in to comment.