allow overriding model's "input" (text, image..) in eca config
Motivation:
In order to be able to pass images (and perhaps other kinds of content) to a local model, I'd like be able to specify input array for a model.
There's also a possibly related question, which might benefit from this functionality: https://github.com/editor-code-assistant/eca/discussions/500.
In my case, the local model (qwopus) supports both text and image-to-text. So I'd like to be able to specify:
"input": ["text","image"],
I have tested that for example pi.dev works with "input": ["text","image"] for the model I'm trying:
"brdloush-mf": {
"baseUrl": "http://brdloush-mf:8080/v1",
"api": "openai-completions",
"apiKey": "none",
"models": [
{
"id": "Jackrong/Qwopus3.6-27B-Coder-MTP-GGUF",
"name": "Jackrong/Qwopus3.6-27B-Coder-MTP-GGUF (Local)",
"reasoning": true,
"input": ["text", "image"],
"contextWindow": 131072,
"cost": {
"input": 0,
"output": 0,
"cacheRead": 0,
"cacheWrite": 0
}
}
]
}
Additional context: Slack chat @ https://clojurians.slack.com/archives/C093426FPUG/p1781590726434009
I can confirm, that this now works with latest 0.141.0 release of eca server and following "imageInput": true config :
"providers" : {
"brdloush-minisforum-remote": {
"api": "openai-chat",
"url": "http://brdloush-mf:8080/v1",
"models": {
"Jackrong/Qwopus3.6-27B-Coder-MTP-GGUF": {
"imageInput": true,
"limit": { "context": 120000 },
"cost": { "input": 0.0, "output": 0.0 }
}
}
},
Thank you so much!