فهرست منبع

Merge pull request #2619 from RedwindA/fix/disableMinimaxFetchModels

fix: remove Minimax from FETCHABLE channels
Seefs 1 ماه پیش
والد
کامیت
e1d43a820f
2فایلهای تغییر یافته به همراه4 افزوده شده و 1 حذف شده
  1. 3 0
      relay/channel/minimax/constants.go
  2. 1 1
      web/src/components/table/channels/modals/EditChannelModal.jsx

+ 3 - 0
relay/channel/minimax/constants.go

@@ -14,6 +14,9 @@ var ModelList = []string{
 	"speech-02-turbo",
 	"speech-01-hd",
 	"speech-01-turbo",
+	"MiniMax-M2.1",
+	"MiniMax-M2.1-lightning",
+	"MiniMax-M2",
 }
 
 var ChannelName = "minimax"

+ 1 - 1
web/src/components/table/channels/modals/EditChannelModal.jsx

@@ -92,7 +92,7 @@ const REGION_EXAMPLE = {
 
 // 支持并且已适配通过接口获取模型列表的渠道类型
 const MODEL_FETCHABLE_TYPES = new Set([
-  1, 4, 14, 34, 17, 26, 27, 24, 47, 25, 20, 23, 31, 35, 40, 42, 48, 43,
+  1, 4, 14, 34, 17, 26, 27, 24, 47, 25, 20, 23, 31, 40, 42, 48, 43,
 ]);
 
 function type2secretPrompt(type) {