radareorg / r2ai

local language model for radare2
https://www.radare.org
MIT License
104 stars 17 forks source link

Plugin System / Infrastructure to decouple all the model/api uses #26

Open trufae opened 6 months ago

trufae commented 6 months ago

Right now the logic in interpreter.py is a bit overwhelming because we are handling so many models and growing. The plan would be to create a generic class that abstracts the exposed methods to split each model into separate files, so the user can add/remove more at its will.

The common attributes I see are the following:

the prompt templates right now are reused between models, so maybe we should decouple that from the plugin and just make the plugin specify which template use.

RFC