Skip to content

Conversation

vishwamartur
Copy link
Contributor

Related to #7

Add support for Ollama model using the ollama python package.

  • integuru/util/LLM.py

    • Import Ollama from ollama.
    • Add _ollama_model attribute to LLMSingleton class.
    • Modify get_instance method to support Ollama model.
    • Add get_ollama_instance method to return an Ollama instance.
  • integuru/__main__.py

    • Update model option help text to include Ollama.
  • README.md

    • Update documentation to reflect Ollama support.

Related to Integuru-AI#7

Add support for Ollama model using the ollama python package.

* **`integuru/util/LLM.py`**
  - Import `Ollama` from `ollama`.
  - Add `_ollama_model` attribute to `LLMSingleton` class.
  - Modify `get_instance` method to support Ollama model.
  - Add `get_ollama_instance` method to return an Ollama instance.

* **`integuru/__main__.py`**
  - Update `model` option help text to include Ollama.

* **`README.md`**
  - Update documentation to reflect Ollama support.
@CLAassistant
Copy link

CLAassistant commented Nov 2, 2024

CLA assistant check
All committers have signed the CLA.

@alanalanlu
Copy link
Contributor

Does Ollama support the function calling capabilities?

@asanoviskhak
Copy link

Does Ollama support the function calling capabilities?

Ollama does support function calling, they call it tools. But, not 100% sure if the python library supports it. JS lib supports

@1jammer1
Copy link

@alanalanlu @asanoviskhak https://github.com/ollama/ollama-python/blob/main/examples/tools.py It does have tool calling built in on the default python library

vishwamartur added a commit to vishwamartur/Integuru that referenced this pull request Aug 30, 2025
- Implemented OllamaWrapper class for ChatOpenAI interface compatibility
- Added native tool calling support using Ollama's built-in capabilities
- Maintained backward compatibility with existing agent code
- Updated pyproject.toml to include ollama dependency
- Enhanced documentation with Ollama setup and usage instructions
- Updated CLI help text to include Ollama model option

Addresses GitHub PR Integuru-AI#12 comment about leveraging Ollama's built-in tool calling
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants