fix: 修复添加和编辑渠道无可选择模型

This commit is contained in:
1808837298@qq.com
2024-03-03 15:53:48 +08:00
parent 06b746a740
commit 54088bc664
3 changed files with 9 additions and 1 deletions

View File

@@ -129,6 +129,13 @@ func ListModels(c *gin.Context) {
})
}
func ChannelListModels(c *gin.Context) {
c.JSON(200, gin.H{
"object": "list",
"data": openAIModels,
})
}
func RetrieveModel(c *gin.Context) {
modelId := c.Param("model")
if model, ok := openAIModelsMap[modelId]; ok {