From cece77e5331a46f1562d8684905c50eb46d80cb2 Mon Sep 17 00:00:00 2001 From: JustSong Date: Mon, 19 Feb 2024 22:20:18 +0800 Subject: [PATCH] fix: fix model list --- controller/model.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/controller/model.go b/controller/model.go index dbaed71a..f5760901 100644 --- a/controller/model.go +++ b/controller/model.go @@ -58,6 +58,9 @@ func init() { }) // https://platform.openai.com/docs/models/model-endpoint-compatibility for i := 0; i < constant.APITypeDummy; i++ { + if i == constant.APITypeAIProxyLibrary { + continue + } adaptor := helper.GetAdaptor(i) channelName := adaptor.GetChannelName() modelNames := adaptor.GetModelList()