Changeset 0.22.1 (#95)
This commit is contained in:
@@ -9,6 +9,7 @@ import (
|
||||
capspkg "git.gobha.me/xcaliber/chat-switchboard/capabilities"
|
||||
"git.gobha.me/xcaliber/chat-switchboard/health"
|
||||
"git.gobha.me/xcaliber/chat-switchboard/models"
|
||||
"git.gobha.me/xcaliber/chat-switchboard/providers"
|
||||
"git.gobha.me/xcaliber/chat-switchboard/store"
|
||||
)
|
||||
|
||||
@@ -278,3 +279,13 @@ func buildSourceAnnotations(catalog *models.ModelCapabilities, heuristic *models
|
||||
}
|
||||
return sources
|
||||
}
|
||||
|
||||
// ── Provider Types Endpoint ─────────────────
|
||||
|
||||
// GetProviderTypes returns metadata and profile schemas for all registered
|
||||
// provider types. Used by the admin UI to render provider creation forms
|
||||
// and show available settings.
|
||||
func GetProviderTypes(c *gin.Context) {
|
||||
types := providers.ListTypes()
|
||||
c.JSON(http.StatusOK, gin.H{"data": types})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user