🎨 优化模型配置 && 新增apikey功能 && 完善通用接口

This commit is contained in:
2026-03-03 17:13:24 +08:00
parent 2714e63d2a
commit 7dae1a6e2b
46 changed files with 3063 additions and 278 deletions

View File

@@ -0,0 +1,15 @@
package response
// ModelListResponse OpenAI 兼容的模型列表响应
type ModelListResponse struct {
Object string `json:"object"` // "list"
Data []ModelInfo `json:"data"`
}
// ModelInfo 模型信息
type ModelInfo struct {
ID string `json:"id"`
Object string `json:"object"` // "model"
Created int64 `json:"created"`
OwnedBy string `json:"owned_by"`
}