mirror of
				https://github.com/amithkoujalgi/ollama4j.git
				synced 2025-10-31 00:20:40 +01:00 
			
		
		
		
	Compare commits
	
		
			8 Commits
		
	
	
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
|   | ef4303fbbb | ||
|   | 2df9a9c69b | ||
|   | 6bb5d9f644 | ||
|   | 94b221248a | ||
|   | 2a887f5015 | ||
|   | 7e3dddf1bb | ||
|   | fe95a7df2a | ||
|   | 98f6a30c6b | 
| @@ -15,6 +15,8 @@ Find more details on the [website](https://amithkoujalgi.github.io/ollama4j/). | ||||
|  | ||||
|  | ||||
|  | ||||
| [](https://codecov.io/gh/amithkoujalgi/ollama4j) | ||||
|  | ||||
|  | ||||
|  | ||||
| ## Table of Contents | ||||
|   | ||||
							
								
								
									
										507
									
								
								pom.xml
									
									
									
									
									
								
							
							
						
						
									
										507
									
								
								pom.xml
									
									
									
									
									
								
							| @@ -4,20 +4,20 @@ | ||||
|  | ||||
|     <groupId>io.github.amithkoujalgi</groupId> | ||||
|     <artifactId>ollama4j</artifactId> | ||||
|     <version>1.0.34</version> | ||||
|     <version>1.0.36</version> | ||||
|  | ||||
|     <name>Ollama4j</name> | ||||
|     <description>Java library for interacting with Ollama API.</description> | ||||
|     <url>https://github.com/amithkoujalgi/ollama4j</url> | ||||
|   <name>Ollama4j</name> | ||||
|   <description>Java library for interacting with Ollama API.</description> | ||||
|   <url>https://github.com/amithkoujalgi/ollama4j</url> | ||||
|  | ||||
|     <properties> | ||||
|         <maven.compiler.source>11</maven.compiler.source> | ||||
|         <maven.compiler.target>11</maven.compiler.target> | ||||
|         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> | ||||
|         <maven-surefire-plugin.version>3.0.0-M5</maven-surefire-plugin.version> | ||||
|         <maven-failsafe-plugin.version>3.0.0-M5</maven-failsafe-plugin.version> | ||||
|         <lombok.version>1.18.30</lombok.version> | ||||
|     </properties> | ||||
|   <properties> | ||||
|     <maven.compiler.source>11</maven.compiler.source> | ||||
|     <maven.compiler.target>11</maven.compiler.target> | ||||
|     <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> | ||||
|     <maven-surefire-plugin.version>3.0.0-M5</maven-surefire-plugin.version> | ||||
|     <maven-failsafe-plugin.version>3.0.0-M5</maven-failsafe-plugin.version> | ||||
|     <lombok.version>1.18.30</lombok.version> | ||||
|   </properties> | ||||
|  | ||||
|     <developers> | ||||
|         <developer> | ||||
| @@ -28,230 +28,273 @@ | ||||
|         </developer> | ||||
|     </developers> | ||||
|  | ||||
|     <licenses> | ||||
|         <license> | ||||
|             <name>MIT License</name> | ||||
|             <url>https://raw.githubusercontent.com/amithkoujalgi/ollama4j/main/LICENSE</url> | ||||
|         </license> | ||||
|     </licenses> | ||||
|   <licenses> | ||||
|     <license> | ||||
|       <name>MIT License</name> | ||||
|       <url>https://raw.githubusercontent.com/amithkoujalgi/ollama4j/main/LICENSE</url> | ||||
|     </license> | ||||
|   </licenses> | ||||
|  | ||||
|     <scm> | ||||
|         <connection>scm:git:git@github.com:amithkoujalgi/ollama4j.git</connection> | ||||
|         <developerConnection>scm:git:https://github.com/amithkoujalgi/ollama4j.git</developerConnection> | ||||
|         <url>https://github.com/amithkoujalgi/ollama4j</url> | ||||
|         <tag>v1.0.34</tag> | ||||
|     </scm> | ||||
|   <scm> | ||||
|     <connection>scm:git:git@github.com:amithkoujalgi/ollama4j.git</connection> | ||||
|     <developerConnection>scm:git:https://github.com/amithkoujalgi/ollama4j.git</developerConnection> | ||||
|     <url>https://github.com/amithkoujalgi/ollama4j</url> | ||||
|     <tag>v1.0.36</tag> | ||||
|   </scm> | ||||
|  | ||||
|     <build> | ||||
|   <build> | ||||
|     <plugins> | ||||
|       <plugin> | ||||
|         <groupId>org.apache.maven.plugins</groupId> | ||||
|         <artifactId>maven-source-plugin</artifactId> | ||||
|         <version>3.3.0</version> | ||||
|         <executions> | ||||
|           <execution> | ||||
|             <id>attach-sources</id> | ||||
|             <goals> | ||||
|               <goal>jar-no-fork</goal> | ||||
|             </goals> | ||||
|           </execution> | ||||
|         </executions> | ||||
|       </plugin> | ||||
|       <plugin> | ||||
|         <groupId>org.apache.maven.plugins</groupId> | ||||
|         <artifactId>maven-javadoc-plugin</artifactId> | ||||
|         <version>3.5.0</version> | ||||
|         <executions> | ||||
|           <execution> | ||||
|             <id>attach-javadocs</id> | ||||
|             <goals> | ||||
|               <goal>jar</goal> | ||||
|             </goals> | ||||
|           </execution> | ||||
|         </executions> | ||||
|       </plugin> | ||||
|       <!--            <plugin>--> | ||||
|       <!--                <groupId>org.apache.maven.plugins</groupId>--> | ||||
|       <!--                <artifactId>maven-gpg-plugin</artifactId>--> | ||||
|       <!--                <version>1.5</version>--> | ||||
|       <!--                <executions>--> | ||||
|       <!--                    <execution>--> | ||||
|       <!--                        <id>sign-artifacts</id>--> | ||||
|       <!--                        <phase>verify</phase>--> | ||||
|       <!--                        <goals>--> | ||||
|       <!--                            <goal>sign</goal>--> | ||||
|       <!--                        </goals>--> | ||||
|       <!--                        <configuration>--> | ||||
|       <!--                            <!– This is necessary for gpg to not try to use the pinentry programs –>--> | ||||
|       <!--                            <gpgArguments>--> | ||||
|       <!--                                <arg>--pinentry-mode</arg>--> | ||||
|       <!--                                <arg>loopback</arg>--> | ||||
|       <!--                            </gpgArguments>--> | ||||
|       <!--                        </configuration>--> | ||||
|       <!--                    </execution>--> | ||||
|       <!--                </executions>--> | ||||
|       <!--            </plugin>--> | ||||
|       <!-- Surefire Plugin for Unit Tests --> | ||||
|       <plugin> | ||||
|         <groupId>org.apache.maven.plugins</groupId> | ||||
|         <artifactId>maven-surefire-plugin</artifactId> | ||||
|         <version>${maven-surefire-plugin.version}</version> | ||||
|         <configuration> | ||||
|           <skipTests>${skipUnitTests}</skipTests> | ||||
|           <includes> | ||||
|             <include>**/unittests/*.java</include> | ||||
|           </includes> | ||||
|         </configuration> | ||||
|       </plugin> | ||||
|  | ||||
|       <!-- Failsafe Plugin for Integration Tests --> | ||||
|       <plugin> | ||||
|         <groupId>org.apache.maven.plugins</groupId> | ||||
|         <artifactId>maven-failsafe-plugin</artifactId> | ||||
|         <version>${maven-failsafe-plugin.version}</version> | ||||
|         <configuration> | ||||
|           <includes> | ||||
|             <include>**/integrationtests/*.java</include> | ||||
|           </includes> | ||||
|           <excludes> | ||||
|             <exclude>**/unittests/*.java</exclude> | ||||
|           </excludes> | ||||
|           <skipTests>${skipIntegrationTests}</skipTests> | ||||
|         </configuration> | ||||
|         <executions> | ||||
|           <execution> | ||||
|             <goals> | ||||
|               <goal>integration-test</goal> | ||||
|               <goal>verify</goal> | ||||
|             </goals> | ||||
|           </execution> | ||||
|         </executions> | ||||
|       </plugin> | ||||
|       <plugin> | ||||
|         <groupId>org.apache.maven.plugins</groupId> | ||||
|         <artifactId>maven-release-plugin</artifactId> | ||||
|         <version>3.0.1</version> | ||||
|         <configuration> | ||||
|           <!--                    <goals>install</goals>--> | ||||
|           <tagNameFormat>v@{project.version}</tagNameFormat> | ||||
|         </configuration> | ||||
|       </plugin> | ||||
|     </plugins> | ||||
|   </build> | ||||
|  | ||||
|   <dependencies> | ||||
|     <dependency> | ||||
|       <groupId>org.projectlombok</groupId> | ||||
|       <artifactId>lombok</artifactId> | ||||
|       <version>${lombok.version}</version> | ||||
|       <scope>provided</scope> | ||||
|     </dependency> | ||||
|     <dependency> | ||||
|       <groupId>com.fasterxml.jackson.core</groupId> | ||||
|       <artifactId>jackson-databind</artifactId> | ||||
|       <version>2.15.3</version> | ||||
|     </dependency> | ||||
|     <dependency> | ||||
|       <groupId>ch.qos.logback</groupId> | ||||
|       <artifactId>logback-classic</artifactId> | ||||
|       <version>1.4.12</version> | ||||
|       <scope>test</scope> | ||||
|     </dependency> | ||||
|     <dependency> | ||||
|       <groupId>org.slf4j</groupId> | ||||
|       <artifactId>slf4j-api</artifactId> | ||||
|       <version>2.0.9</version> | ||||
|     </dependency> | ||||
|     <dependency> | ||||
|       <groupId>org.junit.jupiter</groupId> | ||||
|       <artifactId>junit-jupiter-api</artifactId> | ||||
|       <version>5.10.0</version> | ||||
|       <scope>test</scope> | ||||
|     </dependency> | ||||
|     <dependency> | ||||
|       <groupId>org.mockito</groupId> | ||||
|       <artifactId>mockito-core</artifactId> | ||||
|       <version>4.1.0</version> | ||||
|       <scope>test</scope> | ||||
|     </dependency> | ||||
|   </dependencies> | ||||
|  | ||||
|   <distributionManagement> | ||||
|     <snapshotRepository> | ||||
|       <id>ossrh</id> | ||||
|       <url>https://s01.oss.sonatype.org/content/repositories/snapshots</url> | ||||
|     </snapshotRepository> | ||||
|     <repository> | ||||
|       <id>ossrh</id> | ||||
|       <url>https://s01.oss.sonatype.org/service/local/staging/deploy/maven2</url> | ||||
|     </repository> | ||||
|   </distributionManagement> | ||||
|  | ||||
|   <profiles> | ||||
|     <profile> | ||||
|       <id>unit-tests</id> | ||||
|       <properties> | ||||
|         <test.env>unit</test.env> | ||||
|         <skipUnitTests>false</skipUnitTests> | ||||
|         <skipIntegrationTests>true</skipIntegrationTests> | ||||
|       </properties> | ||||
|       <activation> | ||||
|         <activeByDefault>true</activeByDefault> | ||||
|       </activation> | ||||
|       <build> | ||||
|         <plugins> | ||||
|             <plugin> | ||||
|                 <groupId>org.apache.maven.plugins</groupId> | ||||
|                 <artifactId>maven-source-plugin</artifactId> | ||||
|                 <version>3.3.0</version> | ||||
|                 <executions> | ||||
|                     <execution> | ||||
|                         <id>attach-sources</id> | ||||
|                         <goals> | ||||
|                             <goal>jar-no-fork</goal> | ||||
|                         </goals> | ||||
|                     </execution> | ||||
|                 </executions> | ||||
|             </plugin> | ||||
|             <plugin> | ||||
|                 <groupId>org.apache.maven.plugins</groupId> | ||||
|                 <artifactId>maven-javadoc-plugin</artifactId> | ||||
|                 <version>3.5.0</version> | ||||
|                 <executions> | ||||
|                     <execution> | ||||
|                         <id>attach-javadocs</id> | ||||
|                         <goals> | ||||
|                             <goal>jar</goal> | ||||
|                         </goals> | ||||
|                     </execution> | ||||
|                 </executions> | ||||
|             </plugin> | ||||
|             <!--            <plugin>--> | ||||
|             <!--                <groupId>org.apache.maven.plugins</groupId>--> | ||||
|             <!--                <artifactId>maven-gpg-plugin</artifactId>--> | ||||
|             <!--                <version>1.5</version>--> | ||||
|             <!--                <executions>--> | ||||
|             <!--                    <execution>--> | ||||
|             <!--                        <id>sign-artifacts</id>--> | ||||
|             <!--                        <phase>verify</phase>--> | ||||
|             <!--                        <goals>--> | ||||
|             <!--                            <goal>sign</goal>--> | ||||
|             <!--                        </goals>--> | ||||
|             <!--                        <configuration>--> | ||||
|             <!--                            <!– This is necessary for gpg to not try to use the pinentry programs –>--> | ||||
|             <!--                            <gpgArguments>--> | ||||
|             <!--                                <arg>--pinentry-mode</arg>--> | ||||
|             <!--                                <arg>loopback</arg>--> | ||||
|             <!--                            </gpgArguments>--> | ||||
|             <!--                        </configuration>--> | ||||
|             <!--                    </execution>--> | ||||
|             <!--                </executions>--> | ||||
|             <!--            </plugin>--> | ||||
|             <!-- Surefire Plugin for Unit Tests --> | ||||
|             <plugin> | ||||
|                 <groupId>org.apache.maven.plugins</groupId> | ||||
|                 <artifactId>maven-surefire-plugin</artifactId> | ||||
|                 <version>${maven-surefire-plugin.version}</version> | ||||
|                 <configuration> | ||||
|                     <skipTests>${skipUnitTests}</skipTests> | ||||
|                     <includes> | ||||
|                         <include>**/unittests/*.java</include> | ||||
|                     </includes> | ||||
|                 </configuration> | ||||
|             </plugin> | ||||
|  | ||||
|             <!-- Failsafe Plugin for Integration Tests --> | ||||
|             <plugin> | ||||
|                 <groupId>org.apache.maven.plugins</groupId> | ||||
|                 <artifactId>maven-failsafe-plugin</artifactId> | ||||
|                 <version>${maven-failsafe-plugin.version}</version> | ||||
|                 <configuration> | ||||
|                     <includes> | ||||
|                         <include>**/integrationtests/*.java</include> | ||||
|                     </includes> | ||||
|                     <excludes> | ||||
|                         <exclude>**/unittests/*.java</exclude> | ||||
|                     </excludes> | ||||
|                     <skipTests>${skipIntegrationTests}</skipTests> | ||||
|                 </configuration> | ||||
|                 <executions> | ||||
|                     <execution> | ||||
|                         <goals> | ||||
|                             <goal>integration-test</goal> | ||||
|                             <goal>verify</goal> | ||||
|                         </goals> | ||||
|                     </execution> | ||||
|                 </executions> | ||||
|             </plugin> | ||||
|             <plugin> | ||||
|                 <groupId>org.apache.maven.plugins</groupId> | ||||
|                 <artifactId>maven-release-plugin</artifactId> | ||||
|                 <version>3.0.1</version> | ||||
|                 <configuration> | ||||
|                     <!--                    <goals>install</goals>--> | ||||
|                     <tagNameFormat>v@{project.version}</tagNameFormat> | ||||
|                 </configuration> | ||||
|             </plugin> | ||||
|           <plugin> | ||||
|             <groupId>org.jacoco</groupId> | ||||
|             <artifactId>jacoco-maven-plugin</artifactId> | ||||
|             <version>0.8.7</version> | ||||
|             <executions> | ||||
|               <execution> | ||||
|                 <goals> | ||||
|                   <goal>prepare-agent</goal> | ||||
|                 </goals> | ||||
|               </execution> | ||||
|               <execution> | ||||
|                 <id>report</id> | ||||
|                 <phase>test</phase> | ||||
|                 <goals> | ||||
|                   <goal>report</goal> | ||||
|                 </goals> | ||||
|               </execution> | ||||
|             </executions> | ||||
|           </plugin> | ||||
|         </plugins> | ||||
|     </build> | ||||
|       </build> | ||||
|     </profile> | ||||
|     <profile> | ||||
|       <id>integration-tests</id> | ||||
|       <properties> | ||||
|         <test.env>integration</test.env> | ||||
|         <skipUnitTests>true</skipUnitTests> | ||||
|         <skipIntegrationTests>false</skipIntegrationTests> | ||||
|       </properties> | ||||
|     </profile> | ||||
|     <profile> | ||||
|       <id>ci-cd</id> | ||||
|       <properties> | ||||
|         <test.env>unit</test.env> | ||||
|         <skipUnitTests>true</skipUnitTests> | ||||
|         <skipIntegrationTests>true</skipIntegrationTests> | ||||
|       </properties> | ||||
|       <build> | ||||
|         <plugins> | ||||
|           <plugin> | ||||
|             <groupId>org.apache.maven.plugins</groupId> | ||||
|             <artifactId>maven-gpg-plugin</artifactId> | ||||
|             <version>3.1.0</version> | ||||
|             <executions> | ||||
|               <execution> | ||||
|                 <id>sign-artifacts</id> | ||||
|                 <phase>verify</phase> | ||||
|                 <goals> | ||||
|                   <goal>sign</goal> | ||||
|                 </goals> | ||||
|                 <configuration> | ||||
|                   <!-- Prevent gpg from using pinentry programs. Fixes: | ||||
|                        gpg: signing failed: Inappropriate ioctl for device --> | ||||
|                   <gpgArguments> | ||||
|                     <arg>--pinentry-mode</arg> | ||||
|                     <arg>loopback</arg> | ||||
|                   </gpgArguments> | ||||
|                 </configuration> | ||||
|               </execution> | ||||
|             </executions> | ||||
|           </plugin> | ||||
|           <plugin> | ||||
|             <groupId>org.sonatype.plugins</groupId> | ||||
|             <artifactId>nexus-staging-maven-plugin</artifactId> | ||||
|             <version>1.6.13</version> | ||||
|             <extensions>true</extensions> | ||||
|             <configuration> | ||||
|               <serverId>ossrh</serverId> | ||||
|               <nexusUrl>https://s01.oss.sonatype.org/</nexusUrl> | ||||
|               <autoReleaseAfterClose>true</autoReleaseAfterClose> | ||||
|             </configuration> | ||||
|           </plugin> | ||||
|  | ||||
|     <dependencies> | ||||
|         <dependency> | ||||
|             <groupId>org.projectlombok</groupId> | ||||
|             <artifactId>lombok</artifactId> | ||||
|             <version>${lombok.version}</version> | ||||
|             <scope>provided</scope> | ||||
|         </dependency> | ||||
|         <dependency> | ||||
|             <groupId>com.fasterxml.jackson.core</groupId> | ||||
|             <artifactId>jackson-databind</artifactId> | ||||
|             <version>2.15.3</version> | ||||
|         </dependency> | ||||
|         <dependency> | ||||
|             <groupId>ch.qos.logback</groupId> | ||||
|             <artifactId>logback-classic</artifactId> | ||||
|             <version>1.4.12</version> | ||||
|             <scope>test</scope> | ||||
|         </dependency> | ||||
|         <dependency> | ||||
|             <groupId>org.slf4j</groupId> | ||||
|             <artifactId>slf4j-api</artifactId> | ||||
|             <version>2.0.9</version> | ||||
|         </dependency> | ||||
|         <dependency> | ||||
|             <groupId>org.junit.jupiter</groupId> | ||||
|             <artifactId>junit-jupiter-api</artifactId> | ||||
|             <version>5.10.0</version> | ||||
|             <scope>test</scope> | ||||
|         </dependency> | ||||
|         <dependency> | ||||
|             <groupId>org.mockito</groupId> | ||||
|             <artifactId>mockito-core</artifactId> | ||||
|             <version>4.1.0</version> | ||||
|             <scope>test</scope> | ||||
|         </dependency> | ||||
|     </dependencies> | ||||
|  | ||||
|     <distributionManagement> | ||||
|         <snapshotRepository> | ||||
|             <id>ossrh</id> | ||||
|             <url>https://s01.oss.sonatype.org/content/repositories/snapshots</url> | ||||
|         </snapshotRepository> | ||||
|         <repository> | ||||
|             <id>ossrh</id> | ||||
|             <url>https://s01.oss.sonatype.org/service/local/staging/deploy/maven2</url> | ||||
|         </repository> | ||||
|     </distributionManagement> | ||||
|  | ||||
|     <profiles> | ||||
|         <profile> | ||||
|             <id>unit-tests</id> | ||||
|             <properties> | ||||
|                 <test.env>unit</test.env> | ||||
|                 <skipUnitTests>false</skipUnitTests> | ||||
|                 <skipIntegrationTests>true</skipIntegrationTests> | ||||
|             </properties> | ||||
|             <activation> | ||||
|                 <activeByDefault>true</activeByDefault> | ||||
|             </activation> | ||||
|         </profile> | ||||
|         <profile> | ||||
|             <id>integration-tests</id> | ||||
|             <properties> | ||||
|                 <test.env>integration</test.env> | ||||
|                 <skipUnitTests>true</skipUnitTests> | ||||
|                 <skipIntegrationTests>false</skipIntegrationTests> | ||||
|             </properties> | ||||
|         </profile> | ||||
|         <profile> | ||||
|             <id>ci-cd</id> | ||||
|             <properties> | ||||
|                 <test.env>unit</test.env> | ||||
|                 <skipUnitTests>true</skipUnitTests> | ||||
|                 <skipIntegrationTests>true</skipIntegrationTests> | ||||
|             </properties> | ||||
|             <build> | ||||
|                 <plugins> | ||||
|                     <plugin> | ||||
|                         <groupId>org.apache.maven.plugins</groupId> | ||||
|                         <artifactId>maven-gpg-plugin</artifactId> | ||||
|                         <version>3.1.0</version> | ||||
|                         <executions> | ||||
|                             <execution> | ||||
|                                 <id>sign-artifacts</id> | ||||
|                                 <phase>verify</phase> | ||||
|                                 <goals> | ||||
|                                     <goal>sign</goal> | ||||
|                                 </goals> | ||||
|                                 <configuration> | ||||
|                                     <!-- Prevent gpg from using pinentry programs. Fixes: | ||||
|                                          gpg: signing failed: Inappropriate ioctl for device --> | ||||
|                                     <gpgArguments> | ||||
|                                         <arg>--pinentry-mode</arg> | ||||
|                                         <arg>loopback</arg> | ||||
|                                     </gpgArguments> | ||||
|                                 </configuration> | ||||
|                             </execution> | ||||
|                         </executions> | ||||
|                     </plugin> | ||||
|                     <plugin> | ||||
|                         <groupId>org.sonatype.plugins</groupId> | ||||
|                         <artifactId>nexus-staging-maven-plugin</artifactId> | ||||
|                         <version>1.6.13</version> | ||||
|                         <extensions>true</extensions> | ||||
|                         <configuration> | ||||
|                             <serverId>ossrh</serverId> | ||||
|                             <nexusUrl>https://s01.oss.sonatype.org/</nexusUrl> | ||||
|                             <autoReleaseAfterClose>true</autoReleaseAfterClose> | ||||
|                         </configuration> | ||||
|                     </plugin> | ||||
|                 </plugins> | ||||
|             </build> | ||||
|         </profile> | ||||
|     </profiles> | ||||
|           <plugin> | ||||
|             <groupId>org.jacoco</groupId> | ||||
|             <artifactId>jacoco-maven-plugin</artifactId> | ||||
|             <version>0.8.7</version> | ||||
|             <executions> | ||||
|               <execution> | ||||
|                 <goals> | ||||
|                   <goal>prepare-agent</goal> | ||||
|                 </goals> | ||||
|               </execution> | ||||
|               <execution> | ||||
|                 <id>report</id> | ||||
|                 <phase>test</phase> | ||||
|                 <goals> | ||||
|                   <goal>report</goal> | ||||
|                 </goals> | ||||
|               </execution> | ||||
|             </executions> | ||||
|           </plugin> | ||||
|         </plugins> | ||||
|       </build> | ||||
|     </profile> | ||||
|   </profiles> | ||||
|  | ||||
| </project> | ||||
		Reference in New Issue
	
	Block a user