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

Aperta
#3,751 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@balcsida ci sta già lavorando.

Dal 20/11/2026.

  • #3752 di @balcsida — aperta

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
25/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
go, kubernetes, postgresql
Ambito
api, backend

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

📋 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
Lingua principale
Go
Stelle
4.5k
Fork
937
Merge medio
1g 10h
PR unite (30g)
150

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di kagent-dev/kagent

Tutte le issue di kagent-dev/kagent

Issue simili

Altre issue su Go

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.