mirror of
https://github.com/Nezumi-2711/9router.git
synced 2026-09-23 04:09:49 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user