Initial commit: Luminary AI Gateway
CI / docker (push) Successful in 2m4s

OpenAI-compatible AI gateway with Vue admin UI, multi-provider egress,
ingress key governance, monitoring, and security controls.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
renjue
2026-06-23 21:46:16 +08:00
commit 76ba500417
134 changed files with 18988 additions and 0 deletions
+26
View File
@@ -0,0 +1,26 @@
package model
// ProviderCategory 出口服务分类
type ProviderCategory string
const (
CategoryLLM ProviderCategory = "llm" // 语言模型
CategoryEmbedding ProviderCategory = "embedding" // 向量嵌入
CategoryRerank ProviderCategory = "rerank" // 重排序
CategorySpeech ProviderCategory = "speech" // 语音合成(预留)
CategoryImage ProviderCategory = "image" // 图像生成
CategoryAudio ProviderCategory = "audio" // 音频转写(预留)
)
func SupportedCategories() []ProviderCategory {
return []ProviderCategory{CategoryLLM, CategoryEmbedding, CategoryRerank, CategoryImage}
}
func IsCategorySupported(c ProviderCategory) bool {
for _, s := range SupportedCategories() {
if s == c {
return true
}
}
return false
}