Enhance model configuration by adding modalities for input and output in OpenCodeToolCard and route.js. Introduce live model resolvers for Kiro in v1/models, allowing dynamic fetching of models based on provider credentials.

This commit is contained in:
decolua
2026-05-16 11:20:20 +07:00
parent 4a575f21a2
commit 18f87f43ca
4 changed files with 169 additions and 153 deletions
@@ -192,7 +192,7 @@ export default function OpenCodeToolCard({ tool, isExpanded, onToggle, baseUrl,
const modelsObj = {};
modelsToShow.forEach(m => {
modelsObj[m] = { name: m };
modelsObj[m] = { name: m, modalities: { input: ["text", "image"], output: ["text"] } };
});
return [{