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
@@ -128,7 +128,7 @@ export async function POST(request) {
// Add or update entries for all requested models
for (const m of modelsArray) {
if (!m || typeof m !== "string") continue;
existingProvider.models[m] = { name: m };
existingProvider.models[m] = { name: m, modalities: { input: ["text", "image"], output: ["text"] } };
}
// Save merged provider back