# Implementation SD-31 - Use several inference providers at the same time

Project: Stream Smart Discovery
Status: new
URL: https://community.openproject.org/work_packages/SD-31

## OPEN POINTS

_No work packages_

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Designer |  |
| Developers |  |

## Technical details

| Attribute | Value |
| --- | --- |
| Target versions |  |
| Module |  |
| Requires doc change | No |

## Belongs to

_No work packages_

## Previous chunks

_No work packages_

## Next chunks

_No work packages_

## Estimates

| Attribute | Value |
| --- | --- |
| Effort (shirt size) |  |
| Work |  |

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| % Complete |  |
| Category |  |
| Sprint |  |
| Backlog bucket |  |
| Priority | Medium |
| List |  |
| Pull preview |  |
| Labels |  |

## Description

## What this achieves

Admins of smaler, indipendent OpenProject installations migh decide to outsurce their inference. This might lead to trouble if a provider stops serving the embedding model that site has used for it&#x27;s large canon of documents.&nbsp;

This ticket allows them, beside other use cases, to switch to a second provider, run tests and switch back without service interruption. It also allows researchers to chose the right model to do A/B tests with their production data

This builds on top of [https://community.openproject.org/projects/AI/work\_packages/AI-213/activity](https://community.openproject.org/projects/AI/work_packages/AI-213/activity) and is the basis for [https://community.openproject.org/projects/AI/work\_packages/AI-214/activity](https://community.openproject.org/projects/AI/work_packages/AI-214/activity)

This is a rather big step because it touches many connections where LlmConnection was used differently before

## Acceptance Criteria

There is no active connection anymore. Every inference provider can be used at once, and each model belongs to its provider.

\- Providers are added, edited and deleted in a list on the first tab. A provider whose models are in use can&#x27;t be deleted.  
\- Each row shows the provider&#x27;s health. A check runs in the background when started from the row, and after every fetch of the provider&#x27;s model list.  
\- The Models tab has a select for whose model list it shows.  
\- The semantic index list shows each index&#x27;s provider.

## Warning, might contain traces of milk and nuts

The old concept was quiet distributed in the codebase, and this features took some turns. Therefore traces of old logic might still persist. A further cleanup is recommended once this feature solidifies.
