[FEATURE] Support a namespace default ModelConfig

Abierto
#3,553 2 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
54/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
go
Área
frontend

Línea de trabajo

Start by tracing AgentTemplate creation and namespace changes in the UI, then inspect the UI model adapter that maps ModelConfig resource metadata; the issue says it must preserve the annotation. Check the chart configuration that generates the default ModelConfig and its existing providers.annotations support. Done means a single marked model is preselected, multiple or no marked models require a choice, explicit selections are preserved, and the chart annotation can be opted out.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

📋 Prerequisites
📝 Feature Summary

Let operators mark a ModelConfig as the namespace default and preselect it when creating an AgentTemplate.

❓ Problem Statement / Motivation

The chart creates default-model-config, but the UI does not preselect it. Installations managing their own ModelConfigs also have no standard way to indicate which model users should start with.

💡 Proposed Solution
  • Recognize kagent.dev/is-default-model-config: "true" on ModelConfigs.
  • On template creation or namespace change, preselect the single marked model in that namespace. With none or multiple marked, require an explicit choice.
  • Preserve explicit user selections. Shared models remain manually selectable.
  • Mark the chart-generated ModelConfig by default, with an opt-out.

This would initially cover UI preselection. Defaulting omitted references in the CLI or controller could be considered separately.

🔄 Alternatives Considered

Keep relying on the fixed name, which does not cover custom ModelConfigs, or introduce a spec field, which requires a CRD change.

🎯 Affected Service(s)

UI Service

📚 Additional Context

#2200 added providers.annotations for the chart-generated ModelConfig. The backend already returns resource metadata; the UI model adapter would need to preserve the annotation.

Lenguaje dominante
Go
Estrellas
4.5k
Forks
937
Merge medio
1 d 10 h
PR fusionados (30 d)
150

Preparar el entorno

Abrir en Codespaces

Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de kagent-dev/kagent

Todos los issues de kagent-dev/kagent

Issues similares

Más issues de Go

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.