[FEATURE] List models from an OpenAI-compatible endpoint (LiteLLM) in the model form

Abierto
#3,751 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

@balcsida ya está trabajando en esto.

Desde el 20/11/2026.

  • #3752 de @balcsida — abierto

Evaluación

Dificultad
5/5
Tiempo estimado
Más de una semana
Aptitud para principiantes
25/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
go, kubernetes, postgresql
Área
api, backend

Línea de trabajo

Start from the ModelProviderConfig discovery contract added in #3494 and trace ListConfiguredProviders and WithProviderModelRefresher to their missing callers; the reconciler that should set Ready and the model form are the two ends. Read the linked draft PR #3752 and the closed #3423 before choosing between on-demand discovery and a persisted PostgreSQL inventory. Done means an admin-configured OpenAI-compatible gateway appears as a selectable provider and its models can be listed in the model form without manual IDs.

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

Descripción

📋 Prerequisites
📝 Feature Summary

List the models an OpenAI-compatible endpoint (e.g. a LiteLLM proxy) serves when creating a model in the UI, instead of typing the ID by hand.

❓ Problem Statement / Motivation

We run kagent against a LiteLLM proxy. The model form only offers the built-in catalogue per provider, so for a gateway every model ID has to be looked up and typed in.

ModelProviderConfig looks like the resource for this, and since #3494 it has the discovery contract (discoveryAuth, OpenAI-compatible only). As far as I can tell nothing uses it yet, in v1.0.1 or on main:

  • no reconciler sets its Ready condition, so ListConfiguredProviders is always empty
  • WithProviderModelRefresher has no caller, so ListProviderModels with refresh: true fails with "provider model refresher is not configured"
  • without refresh it returns NotFound, as there is no stored inventory

#3423 implemented discovery but was closed, and I could not find a follow-up.

💡 Proposed Solution

An admin declares the gateway once as a ModelProviderConfig, and anyone creating a model can pick it and choose from the models it lists right now.

How that is built is open. I have a small version that keeps no inventory at all and asks the endpoint on demand, and I can open it as a draft PR if that helps the discussion. It is not meant to cut across whatever is planned after #3423.

🔄 Alternatives Considered

Typing the model ID manually works today, it is just error-prone with a gateway that serves many models.

Persisting the discovered catalogue in PostgreSQL was suggested in the #3423 review. That would also serve reads without calling the endpoint, at the cost of a migration.

🎯 Affected Service(s)

Multiple services / System-wide

📚 Additional Context

Is discovery still planned along the lines of #3423, and is a smaller first step welcome in the meantime?

Our gateway also has a certificate from a private CA. For the controller that seems solvable today with a mounted bundle and SSL_CERT_FILE, so I left it out of this request.

🙋 Are you willing to contribute?
  • I am willing to submit a PR for this feature
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.