feat(dashboard): dynamic agent metrics + model list from config, no more hardcoded data
CI - Build & Test / Backend (.NET) (push) Failing after 23s
CI - Build & Test / Frontend (Vue/TS) (push) Successful in 15s
CI - Build & Test / Security Check (push) Successful in 3s

This commit is contained in:
2026-06-11 16:01:33 +02:00
parent 45c6b24928
commit c29740a466
4 changed files with 266 additions and 11 deletions
+2 -6
View File
@@ -345,16 +345,12 @@ public class DashboardController(
/// <summary>
/// Returns the list of available models that can be assigned to agents.
/// Reads from OpenClaw config dynamically, falls back to hardcoded list.
/// </summary>
[HttpGet("models")]
public ActionResult<List<ModelOption>> GetAvailableModels()
{
var models = new List<ModelOption>
{
new ModelOption("openai/gpt-5.4", "GPT-5.4", "openai"),
new ModelOption("deepseek/deepseek-v4-flash", "DeepSeek V4 Flash", "deepseek"),
new ModelOption("deepseek/deepseek-v4-pro", "DeepSeek V4 Pro", "deepseek")
};
var models = gateway.GetAvailableModels();
return Ok(models);
}