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

Đang mở
#3,751 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

@balcsida đang làm issue này rồi.

Từ ngày 20/11/2026.

  • #3752 của @balcsida — đang mở

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
25/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
go, kubernetes, postgresql
Lĩnh vực
api, backend

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

📋 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
Ngôn ngữ chính
Go
Star
4.5k
Fork
937
Merge trung bình
1 ngày 10 giờ
Pull request đã merge (30 ngày)
150

Chuẩn bị môi trường

Mở trong Codespaces

Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của kagent-dev/kagent

Tất cả issue của kagent-dev/kagent

Issue tương tự

Thêm issue về Go

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.