Refactor OllamaAPI and related classes for improved functionality and code clarity

This update removes deprecated methods from the OllamaAPI class, enhancing the overall structure and readability. The OllamaGenerateRequest class has been updated to include a list of tools, and the generate methods have been refactored to streamline request handling. Additionally, the WeatherTool class has been removed, and a new sample tool specification has been added for demonstration purposes. Changes in pom.xml include commented-out dependencies for better clarity.
This commit is contained in:
amithkoujalgi
2025-09-25 18:10:18 +05:30
parent 53e4b413ec
commit fe82550637
8 changed files with 99 additions and 383 deletions

View File

@@ -275,6 +275,15 @@
<artifactId>slf4j-api</artifactId>
<version>2.0.17</version>
</dependency>
<!-- &lt;!&ndash; Logger impl - Logback Classic (SLF4J binding) - Disabled on JAR build &ndash;&gt;-->
<!-- <dependency>-->
<!-- <groupId>ch.qos.logback</groupId>-->
<!-- <artifactId>logback-classic</artifactId>-->
<!-- <version>1.4.12</version>-->
<!-- <scope>test</scope>-->
<!-- </dependency>-->
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-api</artifactId>