Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Add Ollama support #12

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

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

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants