Problem/Motivation

Currently you have to sideload the models via the Ollama cli command, it would be nice to add this to the settings page or its own page so you can do it via Drupal, since there is an API for it.

Steps to reproduce

Proposed resolution

Add a page where you can load or remove models for Ollama.

Remaining tasks

User interface changes

A new form added under /admin/config/ai/providers/ollama/models which appears also as local task under /admin/config/ai/providers/ollama

API changes

Data model changes

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

marcus_johansson created an issue. See original summary.

marcus_johansson’s picture

mjb3141’s picture

Assigned: Unassigned » mjb3141

efpapado made their first commit to this issue’s fork.

efpapado’s picture

Version: 1.0.x-dev » 1.1.x-dev
Assigned: mjb3141 » Unassigned
Status: Active » Needs review

A first approach, trying to combine the ollama's streamed response while pulling with Drupal's Batch API.

efpapado’s picture

Sorry, accidentally removed mjb3141 from assignment, but cannot add back :/

efpapado’s picture

Issue summary: View changes

Updated issue description.

marcus_johansson’s picture

Version: 1.1.x-dev » 1.2.x-dev
Status: Needs review » Needs work

I switched over to 1.2.x, but this needs a rebase and some code fixes before being ready to be merged.

efpapado changed the visibility of the branch 3485359-make-it-possible to hidden.

efpapado’s picture

Status: Needs work » Needs review

MR against 1.2.x, with code fixes.

jibran’s picture

Status: Needs review » Needs work
Issue tags: +Needs tests

The MR looks good. Let's add some functional test for the new functionality.