🎨 优化模型配置 && 新增apikey功能 && 完善通用接口
This commit is contained in:
15
server/model/app/response/ai_models.go
Normal file
15
server/model/app/response/ai_models.go
Normal 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"`
|
||||
}
|
||||
Reference in New Issue
Block a user