[FEATURE] Support a namespace default ModelConfig

Đang mở
#3,553 2 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

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
54/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
Lĩnh vực
frontend

Hướng nghiên cứu

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.

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

Mô tả

📋 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.

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.