Merge pull request #408 from xy-host/feat/dynamic-copilot-models

feat: dynamic model fetching for GitHub Copilot
This commit is contained in:
Luis Pater
2026-03-05 20:10:40 +08:00
committed by GitHub
4 changed files with 217 additions and 1 deletions

View File

@@ -872,7 +872,9 @@ func (s *Service) registerModelsForAuth(a *coreauth.Auth) {
models = registry.GetKimiModels()
models = applyExcludedModels(models, excluded)
case "github-copilot":
models = registry.GetGitHubCopilotModels()
ctx, cancel := context.WithTimeout(context.Background(), 15*time.Second)
defer cancel()
models = executor.FetchGitHubCopilotModels(ctx, a, s.cfg)
models = applyExcludedModels(models, excluded)
case "kiro":
models = s.fetchKiroModels(a)