updated links

This commit is contained in:
Amith Koujalgi 2024-07-27 00:16:44 +05:30
parent cfa8aa14d7
commit da273402b5
3 changed files with 53 additions and 83 deletions

View File

@ -1,10 +1,10 @@
build: build:
mvn -B clean install mvn -B clean install
ut: unit-tests:
mvn clean test -Punit-tests mvn clean test -Punit-tests
it: integration-tests:
mvn clean verify -Pintegration-tests mvn clean verify -Pintegration-tests
doxygen: doxygen:

130
README.md
View File

@ -1,46 +1,46 @@
### Ollama4j ### Ollama4j
<p align="center"> <p align="center">
<img src='https://raw.githubusercontent.com/amithkoujalgi/ollama4j/65a9d526150da8fcd98e2af6a164f055572bf722/ollama4j.jpeg' width='100' alt="ollama4j-icon"> <img src='https://raw.githubusercontent.com/ollama4j/ollama4j/65a9d526150da8fcd98e2af6a164f055572bf722/ollama4j.jpeg' width='100' alt="ollama4j-icon">
</p> </p>
A Java library (wrapper/binding) for [Ollama](https://ollama.ai/) server. A Java library (wrapper/binding) for [Ollama](https://ollama.ai/) server.
Find more details on the [website](https://amithkoujalgi.github.io/ollama4j/). Find more details on the [website](https://ollama4j.github.io/ollama4j/).
![GitHub stars](https://img.shields.io/github/stars/amithkoujalgi/ollama4j) ![GitHub stars](https://img.shields.io/github/stars/ollama4j/ollama4j)
![GitHub forks](https://img.shields.io/github/forks/amithkoujalgi/ollama4j) ![GitHub forks](https://img.shields.io/github/forks/ollama4j/ollama4j)
![GitHub watchers](https://img.shields.io/github/watchers/amithkoujalgi/ollama4j) ![GitHub watchers](https://img.shields.io/github/watchers/ollama4j/ollama4j)
![Contributors](https://img.shields.io/github/contributors/amithkoujalgi/ollama4j?style=social) ![Contributors](https://img.shields.io/github/contributors/ollama4j/ollama4j?style=social)
![GitHub License](https://img.shields.io/github/license/amithkoujalgi/ollama4j) ![GitHub License](https://img.shields.io/github/license/ollama4j/ollama4j)
[//]: # (![GitHub repo size]&#40;https://img.shields.io/github/repo-size/amithkoujalgi/ollama4j&#41;) [//]: # (![GitHub repo size]&#40;https://img.shields.io/github/repo-size/ollama4j/ollama4j&#41;)
[//]: # (![GitHub top language]&#40;https://img.shields.io/github/languages/top/amithkoujalgi/ollama4j&#41;) [//]: # (![GitHub top language]&#40;https://img.shields.io/github/languages/top/ollama4j/ollama4j&#41;)
![JitPack Downloads This Month Badge](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fjitpack.io%2Fapi%2Fdownloads%2Fio.github.amithkoujalgi%2Follama4j&query=%24.month&label=JitPack%20Downloads%20-%20This%20Month) [//]: # (![JitPack Downloads This Month Badge]&#40;https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fjitpack.io%2Fapi%2Fdownloads%2Fio.github.ollama4j%2Follama4j&query=%24.month&label=JitPack%20Downloads%20-%20This%20Month&#41;)
![JitPack Downloads This Week Badge](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fjitpack.io%2Fapi%2Fdownloads%2Fio.github.amithkoujalgi%2Follama4j&query=%24.week&label=JitPack%20Downloads%20-%20This%20Week) [//]: # (![JitPack Downloads This Week Badge]&#40;https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fjitpack.io%2Fapi%2Fdownloads%2Fio.github.ollama4j%2Follama4j&query=%24.week&label=JitPack%20Downloads%20-%20This%20Week&#41;)
![JitPack Downloads Per Month Badge](https://jitpack.io/v/amithkoujalgi/ollama4j/month.svg) [//]: # (![JitPack Downloads Per Month Badge]&#40;https://jitpack.io/v/ollama4j/ollama4j/month.svg&#41;)
![GitHub Downloads (all assets, all releases)](https://img.shields.io/github/downloads/amithkoujalgi/ollama4j/total?label=GitHub%20Package%20Downloads) ![GitHub Downloads (all assets, all releases)](https://img.shields.io/github/downloads/ollama4j/ollama4j/total?label=GitHub%20Package%20Downloads)
![GitHub last commit](https://img.shields.io/github/last-commit/amithkoujalgi/ollama4j?color=green) ![GitHub last commit](https://img.shields.io/github/last-commit/ollama4j/ollama4j?color=green)
[![codecov](https://codecov.io/gh/amithkoujalgi/ollama4j/graph/badge.svg?token=U0TE7BGP8L)](https://codecov.io/gh/amithkoujalgi/ollama4j) [![codecov](https://codecov.io/gh/ollama4j/ollama4j/graph/badge.svg?token=U0TE7BGP8L)](https://codecov.io/gh/ollama4j/ollama4j)
![Build Status](https://github.com/amithkoujalgi/ollama4j/actions/workflows/maven-publish.yml/badge.svg) ![Build Status](https://github.com/ollama4j/ollama4j/actions/workflows/maven-publish.yml/badge.svg)
[//]: # (![Hits]&#40;https://hits.seeyoufarm.com/api/count/incr/badge.svg?url=https%3A%2F%2Fgithub.com%2Famithkoujalgi%2Follama4j&count_bg=%2379C83D&title_bg=%23555555&icon=&icon_color=%23E7E7E7&title=hits&edge_flat=false&#41;) [//]: # (![Hits]&#40;https://hits.seeyoufarm.com/api/count/incr/badge.svg?url=https%3A%2F%2Fgithub.com%2Follama4j%2Follama4j&count_bg=%2379C83D&title_bg=%23555555&icon=&icon_color=%23E7E7E7&title=hits&edge_flat=false&#41;)
[//]: # (![GitHub language count]&#40;https://img.shields.io/github/languages/count/amithkoujalgi/ollama4j&#41;) [//]: # (![GitHub language count]&#40;https://img.shields.io/github/languages/count/ollama4j/ollama4j&#41;)
## Table of Contents ## Table of Contents
- [How does it work?](#how-does-it-work) - [How does it work?](#how-does-it-work)
- [Requirements](#requirements) - [Requirements](#requirements)
- [Installation](#installation) - [Installation](#installation)
- [API Spec](https://amithkoujalgi.github.io/ollama4j/docs/category/apis---model-management) - [API Spec](https://ollama4j.github.io/ollama4j/docs/category/apis---model-management)
- [Javadoc](https://amithkoujalgi.github.io/ollama4j/apidocs/) - [Javadoc](https://ollama4j.github.io/ollama4j/apidocs/)
- [Development](#development) - [Development](#development)
- [Contributions](#get-involved) - [Contributions](#get-involved)
- [References](#references) - [References](#references)
@ -79,37 +79,21 @@ Find more details on the [website](https://amithkoujalgi.github.io/ollama4j/).
> We have migrated the package repository from Maven Central to GitHub package repository due to technical issues with > We have migrated the package repository from Maven Central to GitHub package repository due to technical issues with
> publishing. Please update your repository settings to get latest version of Ollama4j. > publishing. Please update your repository settings to get latest version of Ollama4j.
> >
> Track the releases [here](https://github.com/amithkoujalgi/ollama4j/releases) and update the dependency version > Track the releases [here](https://github.com/ollama4j/ollama4j/releases) and update the dependency version
> according to your requirements. > according to your requirements.
### For Maven ### For Maven
#### Using [JitPack](https://jitpack.io/) #### Using [Maven Central](https://central.sonatype.com/)
[//]: # ([![]&#40;https://jitpack.io/v/amithkoujalgi/ollama4j.svg&#41;]&#40;https://jitpack.io/#amithkoujalgi/ollama4j&#41;) 1In your Maven project, add this dependency:
![JitPack](https://img.shields.io/jitpack/version/io.github.amithkoujalgi/ollama4j?style=for-the-badge&label=From%20JitPack)
1. Add `jitpack.io` repository to your project's `pom.xml` or your `settings.xml`:
```xml
<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
```
2. In your Maven project, add this dependency:
```xml ```xml
<dependency> <dependency>
<groupId>io.github.amithkoujalgi</groupId> <groupId>io.github.ollama4j</groupId>
<artifactId>ollama4j</artifactId> <artifactId>ollama4j</artifactId>
<version>1.0.74</version> <version>1.0.78</version>
</dependency> </dependency>
``` ```
@ -117,9 +101,9 @@ Find more details on the [website](https://amithkoujalgi.github.io/ollama4j/).
[![][ollama4j-releases-shield]][ollama4j-releases-link] [![][ollama4j-releases-shield]][ollama4j-releases-link]
[ollama4j-releases-link]: https://github.com/amithkoujalgi/ollama4j/releases [ollama4j-releases-link]: https://github.com/ollama4j/ollama4j/releases
[ollama4j-releases-shield]: https://img.shields.io/github/v/release/amithkoujalgi/ollama4j?display_name=release&style=for-the-badge&label=From%20GitHub%20Packages%20 [ollama4j-releases-shield]: https://img.shields.io/github/v/release/ollama4j/ollama4j?display_name=release&style=for-the-badge&label=From%20GitHub%20Packages%20
1. Add `GitHub Maven Packages` repository to your project's `pom.xml` or your `settings.xml`: 1. Add `GitHub Maven Packages` repository to your project's `pom.xml` or your `settings.xml`:
@ -129,7 +113,7 @@ Find more details on the [website](https://amithkoujalgi.github.io/ollama4j/).
<repository> <repository>
<id>github</id> <id>github</id>
<name>GitHub Apache Maven Packages</name> <name>GitHub Apache Maven Packages</name>
<url>https://maven.pkg.github.com/amithkoujalgi/ollama4j</url> <url>https://maven.pkg.github.com/ollama4j/ollama4j</url>
<releases> <releases>
<enabled>true</enabled> <enabled>true</enabled>
</releases> </releases>
@ -163,33 +147,19 @@ Find more details on the [website](https://amithkoujalgi.github.io/ollama4j/).
```xml ```xml
<dependency> <dependency>
<groupId>io.github.amithkoujalgi</groupId> <groupId>io.github.ollama4j</groupId>
<artifactId>ollama4j</artifactId> <artifactId>ollama4j</artifactId>
<version>1.0.74</version> <version>1.0.78</version>
</dependency> </dependency>
``` ```
##### For Gradle ##### For Gradle
1. Add the `JitPack` repository to your build file 1. Add the dependency
Add it in your root `build.gradle` at the end of repositories:
```groovy
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
mavenCentral()
maven { url 'https://jitpack.io' }
}
}
```
2. Add the dependency
```groovy ```groovy
dependencies { dependencies {
implementation 'com.github.amithkoujalgi:ollama4j:Tag' implementation 'com.github.ollama4j:ollama4j:Tag'
} }
``` ```
@ -197,20 +167,20 @@ dependencies {
[//]: # () [//]: # ()
[//]: # (![Maven Central]&#40;https://img.shields.io/maven-central/v/io.github.amithkoujalgi/ollama4j&#41;) [//]: # (![Maven Central]&#40;https://img.shields.io/maven-central/v/io.github.ollama4j/ollama4j&#41;)
[//]: # () [//]: # ()
[//]: # ([![][lib-shield]][lib]) [//]: # ([![][lib-shield]][lib])
[lib]: https://central.sonatype.com/artifact/io.github.amithkoujalgi/ollama4j [lib]: https://central.sonatype.com/artifact/io.github.ollama4j/ollama4j
[lib-shield]: https://img.shields.io/badge/ollama4j-get_latest_version-blue.svg?style=just-the-message&labelColor=gray [lib-shield]: https://img.shields.io/badge/ollama4j-get_latest_version-blue.svg?style=just-the-message&labelColor=gray
#### API Spec #### API Spec
> [!TIP] > [!TIP]
> Find the full API specifications on the [website](https://amithkoujalgi.github.io/ollama4j/). > Find the full API specifications on the [website](https://ollama4j.github.io/ollama4j/).
#### Development #### Development
@ -223,13 +193,13 @@ make build
Run unit tests: Run unit tests:
```shell ```shell
make ut make unit-tests
``` ```
Run integration tests: Run integration tests:
```shell ```shell
make it make integration-tests
``` ```
#### Releases #### Releases
@ -248,7 +218,7 @@ Newer artifacts are published via GitHub Actions CI workflow when a new release
#### Traction #### Traction
[![Star History Chart](https://api.star-history.com/svg?repos=amithkoujalgi/ollama4j&type=Date)](https://star-history.com/#amithkoujalgi/ollama4j&Date) [![Star History Chart](https://api.star-history.com/svg?repos=ollama4j/ollama4j&type=Date)](https://star-history.com/#ollama4j/ollama4j&Date)
### Areas of improvement ### Areas of improvement
@ -280,24 +250,24 @@ Newer artifacts are published via GitHub Actions CI workflow when a new release
<div align="center"> <div align="center">
<a href="">![Open Issues](https://img.shields.io/github/issues-raw/amithkoujalgi/ollama4j)</a> <a href="">![Open Issues](https://img.shields.io/github/issues-raw/ollama4j/ollama4j)</a>
<a href="">![Closed Issues](https://img.shields.io/github/issues-closed-raw/amithkoujalgi/ollama4j)</a> <a href="">![Closed Issues](https://img.shields.io/github/issues-closed-raw/ollama4j/ollama4j)</a>
<a href="">![Open PRs](https://img.shields.io/github/issues-pr-raw/amithkoujalgi/ollama4j)</a> <a href="">![Open PRs](https://img.shields.io/github/issues-pr-raw/ollama4j/ollama4j)</a>
<a href="">![Closed PRs](https://img.shields.io/github/issues-pr-closed-raw/amithkoujalgi/ollama4j)</a> <a href="">![Closed PRs](https://img.shields.io/github/issues-pr-closed-raw/ollama4j/ollama4j)</a>
<a href="">![Discussions](https://img.shields.io/github/discussions/amithkoujalgi/ollama4j)</a> <a href="">![Discussions](https://img.shields.io/github/discussions/ollama4j/ollama4j)</a>
</div> </div>
[//]: # (![GitHub Issues or Pull Requests]&#40;https://img.shields.io/github/issues-raw/amithkoujalgi/ollama4j&#41;) [//]: # (![GitHub Issues or Pull Requests]&#40;https://img.shields.io/github/issues-raw/ollama4j/ollama4j&#41;)
[//]: # (![GitHub Issues or Pull Requests]&#40;https://img.shields.io/github/issues-closed-raw/amithkoujalgi/ollama4j&#41;) [//]: # (![GitHub Issues or Pull Requests]&#40;https://img.shields.io/github/issues-closed-raw/ollama4j/ollama4j&#41;)
[//]: # (![GitHub Issues or Pull Requests]&#40;https://img.shields.io/github/issues-pr-raw/amithkoujalgi/ollama4j&#41;) [//]: # (![GitHub Issues or Pull Requests]&#40;https://img.shields.io/github/issues-pr-raw/ollama4j/ollama4j&#41;)
[//]: # (![GitHub Issues or Pull Requests]&#40;https://img.shields.io/github/issues-pr-closed-raw/amithkoujalgi/ollama4j&#41;) [//]: # (![GitHub Issues or Pull Requests]&#40;https://img.shields.io/github/issues-pr-closed-raw/ollama4j/ollama4j&#41;)
[//]: # (![GitHub Discussions]&#40;https://img.shields.io/github/discussions/amithkoujalgi/ollama4j&#41;) [//]: # (![GitHub Discussions]&#40;https://img.shields.io/github/discussions/ollama4j/ollama4j&#41;)
Contributions are most welcome! Whether it's reporting a bug, proposing an enhancement, or helping Contributions are most welcome! Whether it's reporting a bug, proposing an enhancement, or helping
@ -316,8 +286,8 @@ project.
**Thanks to the amazing contributors** **Thanks to the amazing contributors**
<p align="center"> <p align="center">
<a href="https://github.com/amithkoujalgi/ollama4j/graphs/contributors"> <a href="https://github.com/ollama4j/ollama4j/graphs/contributors">
<img src="https://contrib.rocks/image?repo=amithkoujalgi/ollama4j" /> <img src="https://contrib.rocks/image?repo=ollama4j/ollama4j" />
</a> </a>
</p> </p>

View File

@ -204,7 +204,7 @@
<extensions>true</extensions> <extensions>true</extensions>
<configuration> <configuration>
<publishingServerId>mvn-repo-id</publishingServerId> <publishingServerId>mvn-repo-id</publishingServerId>
<autoPublish>false</autoPublish> <autoPublish>true</autoPublish>
</configuration> </configuration>
</plugin> </plugin>
</plugins> </plugins>