[FEATURE] Ollama Provider Finalisation #39
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This Pull Request is for the implementation and testing of the Ollama Provider class. Additionally, an example case is provided for using the Ollama Provider to make an Agent.
Related Issues
Addresses: Issue #11 and Issue #7
Type of Change
Implementation Details
Testing
Testing was done on just the Ollama Provider, as no other components were modified by this feature implementation. Ollama was installed on the local development machine (using the default base URL and Port: localhost:11434) and the llama3.2:3b model was pulled.
Test cases added were comparable to the existing OpenAI Provider test cases (sans the invalid API key test).
Documentation Changes
Documentation (when created) should reference installation of Ollama and detail limitations of using smaller models. Some issues with inconsistent outputs were noted in development and attempts have been made to mitigate these using more directive prompting.
It should be noted that for tasks that require tool calling, a tool-enabled model is required. These are tagged 'tool' in the Ollama Model Library.
Checklist
Screenshots (if applicable)
N/A