amithkoujalgi
54d8cf4cd9
Add WeatherTool and integration test with auth proxy
...
Introduces WeatherTool for fetching weather data via OpenWeatherMap API and its tool specification. Adds an integration test (WithAuth) using Testcontainers to verify OllamaAPI connectivity through an NGINX proxy with bearer token authentication. Also updates pom.xml to include the testcontainers-nginx dependency and minor improvements to OllamaAPI for request headers and Javadoc formatting. TypewriterTextarea now supports text alignment, with homepage header using center alignment.
2025-08-15 23:16:24 +05:30
amithkoujalgi
a2d95a052a
- Updated Makefile to add a new remote integration test command.
...
- Updated docs – Enhanced DBQueryFunction to validate input arguments and throw a RuntimeException if required arguments are missing.
- Updated docs – Refactored tool specifications for fuel price, weather, and employee details to use a unified prompt function structure. (Addresses #116 ).
- Improved javadoc for `chatStreaming()` API. (Addresses #115 ).
- Introduced `ToolInvocationException` to handle errors during tool invocation in OllamaAPI. (Addresses #117 ).
- Updated integration tests to include `ToolInvocationException` in method signatures for better error handling.
2025-04-06 23:05:26 +05:30
amithkoujalgi
70b4a7961a
Used smaller-sized images for the test cases
2025-03-25 21:56:45 +05:30
amithkoujalgi
0248f21654
Used smaller-sized images for the test cases
2025-03-25 21:34:13 +05:30
Amith Koujalgi
252ea50717
Update OllamaAPIIntegrationTest.java
2025-03-25 20:40:58 +05:30
amithkoujalgi
be08f11027
Update OllamaAPIIntegrationTest.java
2025-03-25 00:20:25 +05:30
amithkoujalgi
b9b18271a1
Support for structured output
...
Added support for structured output
2025-03-24 23:45:01 +05:30
Amith Koujalgi
681a692ca9
Updated integration tests
2025-03-18 23:18:42 +05:30
Amith Koujalgi
e245d9633f
Updated integration tests
2025-03-18 22:54:56 +05:30
Amith Koujalgi
bee09aa626
Updated integration tests
2025-03-18 22:03:04 +05:30
Amith Koujalgi
8aa6e3b066
Updated integration tests
2025-03-18 21:41:20 +05:30
Amith Koujalgi
ac3f505aa6
Switch image model to "moondream" in integration test
2025-03-11 13:12:55 +05:30
amithkoujalgi
fe5078891f
Remove TestRealAPIs and enhance OllamaAPIIntegrationTest
2025-03-11 11:41:51 +05:30
amithkoujalgi
0d091d1826
Update integration test
2025-03-11 00:06:30 +05:30
amithkoujalgi
a9c7f4e5e0
Rename TestAPIsTest to OllamaAPIIntegrationTest
2025-03-10 23:44:18 +05:30
amithkoujalgi
e7f58d4e0d
Add integration tests and enhance test configurations
...
Introduced integration tests for various API functionalities, ensuring comprehensive coverage. Updated test dependencies in `pom.xml` and added handling for unknown JSON properties in the `Model` class. Also included configuration to support running unit and integration tests in the CI workflow.
2025-03-10 23:40:44 +05:30
Amith Koujalgi
23d23c4ad7
Added new createModel
API to make it conform to Ollama's new API - https://github.com/ollama/ollama/blob/main/docs/api.md#create-a-model
2025-02-17 22:25:25 +05:30
Amith Koujalgi
dda807d818
Merge pull request #88 from seeseemelk/feature/token-streamer
...
Add ability to stream tokens in chat
2025-01-26 17:37:22 +05:30
a96dc11679
Fix random test failure
2025-01-24 15:05:32 +01:00
b2b3febdaa
Add support for registering object instances instead of only through the @OllamaToolService
annotation
2025-01-24 13:38:47 +01:00
Markus Klenke
db008de0ca
Adds documentation for annotation based Tool registration
2024-12-27 23:07:35 +01:00
Markus Klenke
5e6971cc4a
Adds first approach to annotation based tool callings using basic java reflection
2024-12-27 22:20:34 +01:00
Markus Klenke
7ffbc5d3f2
Adds implicit tool calling for streamed chat requests (requires Ollama v0.4.6)
2024-12-09 23:07:25 +01:00
Markus Klenke
69f6fd81cf
Enables in chat tool calling
2024-12-07 01:17:08 +01:00
Markus Klenke
b6a293add7
Makes changes to OllamaChatResult backwards compatible
2024-12-07 01:17:08 +01:00
Markus Klenke
25694a8bc9
extends ollamaChatResult to have full access to OllamaChatResult
2024-12-07 01:17:01 +01:00
Markus Klenke
12bb10392e
Extends ChatModels to use Tools and ToolCalls
2024-12-07 01:16:25 +01:00
Markus Klenke
e9c33ab0b2
Extends chat API to automatically load registered Tools
2024-12-07 01:16:25 +01:00
Markus Klenke
726fea5b74
Fixes #79
2024-12-04 22:28:00 +01:00
Markus Klenke
a09f1362e9
Adds Builder for EmbedRequests and deprecates old Embedding Models
2024-12-02 22:48:33 +01:00
Amith Koujalgi
921f745435
Custom roles support
...
Adds support for custom roles using `OllamaChatMessageRole`
2024-10-31 16:15:21 +05:30
Mitchell Lutzke
37193b1f5b
slight cleanup
2024-10-26 21:36:43 -07:00
Mitchell Lutzke
e33071ae38
Add minp option and ability to set custom options
2024-10-26 21:22:46 -07:00
Amith Koujalgi
00c9b16556
Refactored classes into request
and response
packages
...
Signed-off-by: Amith Koujalgi <koujalgi.amith@gmail.com>
2024-07-27 23:20:18 +05:30
Amith Koujalgi
e43bd3acb4
Refactored the package structure to use io.github.ollama4j
instead of the old naming io.github.amithkoujalgi.ollama4j.core
...
Signed-off-by: Amith Koujalgi <koujalgi.amith@gmail.com>
2024-07-27 16:37:47 +05:30
koujalgi.amith@gmail.com
383d0f56ca
Updated generateAsync()
API
...
Signed-off-by: koujalgi.amith@gmail.com <koujalgi.amith@gmail.com>
2024-07-13 23:54:49 +05:30
Amith Koujalgi
91ee6cb4c1
Added support for tools/function calling - specifically for Mistral's latest model.
2024-07-12 17:06:41 +05:30
AgentSchmecker
f8ca4d041d
Changes DateTime types of Model.java to OffsetDatetime
...
Fixes #48
2024-05-20 11:10:03 +00:00
AgentSchmecker
9c6a55f7b0
Generalizes Abstract Serialization Test Class
...
Removes the "Request" naming context as this base class technically serves for general serialization purposes.
2024-05-20 11:08:49 +00:00
anjeongkyun
b21aa6add2
Adds test of testWithKeepAlive
2024-04-21 23:52:42 +09:00
anjeongkyun
ec4abd1c2d
Adds test of testWithStreaming
2024-04-21 23:49:42 +09:00
anjeongkyun
9900ae92fb
Adds test of testWithTemplate
2024-04-21 23:43:49 +09:00
anjeongkyun
fa20daf6e5
Adds test case of testRequestWithOptions
2024-04-21 23:37:18 +09:00
Markus Klenke
63d4de4e24
Adds options to EmbeddingsRequest
...
Additionally refactors the Embedding Models and Tests
2024-02-25 20:53:45 +00:00
Markus Klenke
09442d37a3
Fixes unmarshalling exception on ModelDetail
2024-02-18 22:53:01 +00:00
Markus Klenke
abb76ad867
Adds streaming feature to Generate APIs
2024-02-16 17:03:15 +00:00
Markus Klenke
cf4e7a96e8
Optimizes ChatStreamObserver to use only the last message instead of parsing all messages again
2024-02-16 16:31:39 +00:00
Markus Klenke
06c5daa253
Adds additional properties to chat and generate requests
2024-02-16 15:57:48 +00:00
Markus Klenke
e9621f054d
Adds integration test for chat streaming API
2024-02-13 18:11:59 +00:00
Markus Klenke
9aff3ec5d9
Extends chat with image integration test to use history
2024-02-13 10:20:37 +00:00