Convert models to plugins, remove hardcoded model string checks

Created on 11 September 2025, 12 days ago
Updated 12 September 2025, 11 days ago

Problem/Motivation

BedrockProvider loads config for a model via hardcoded strings, this makes it very difficult to add new models without either swapping this class out or patching the module.

We should turn the models into plugins and provide some interfaces to make this easier to extend.

Steps to reproduce

Try add a new model that doesn't have one of the strings in BedrockProvider. See it doesn't get called.

Proposed resolution

Add a plugin manager for the models
Add some interfaces to ensure the models have a defined contract.

Remaining tasks

Do the work
Review
Merge

User interface changes

N/A

API changes

New interfaces introduced
Models are now plugins

Data model changes

N/A

📌 Task
Status

Needs review

Version

1.1

Component

Code

Created by

🇳🇿New Zealand danielveza Brisbane, AU

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

No activities found.

Production build 0.71.5 2024