feat: remove ZeroGPU endpoints from default pool

This commit is contained in:
Luxferre
2026-09-05 21:10:59 +03:00
parent 6877e2b358
commit 404779f8e8
3 changed files with 34 additions and 25 deletions
+9 -6
View File
@@ -32,7 +32,6 @@ var (
ConfiguredModel string
EnableThinkingDefault = true
DefaultEndpoints = []string{
"https://microhero-qwen3-8-27b-uncensored-chat.hf.space",
"https://wanyamaelis-qwen3-8-27b.hf.space",
"https://apathy-exe-qwen3-8-27b.hf.space",
"https://apathy-exe-qwen3-8-flash-next.hf.space",
@@ -509,13 +508,15 @@ func EffectiveModelID(reqModel string, defaultModel string) string {
switch strings.ToLower(clean) {
case "qwen/qwen3.8-flash-next", "qwen3.8-flash-next", "qwen-flash-next", "qwen-flash", "qwen3.8-flash":
return "Qwen/Qwen3.8-Flash-Next"
case "qwen/qwen3.8-27b-uncensored", "qwen3.8-27b-uncensored", "qwen-27b", "qwen3.8-27b":
case "qwen/qwen3.8-27b", "qwen3.8-27b", "qwen-27b":
return "Qwen/Qwen3.8-27B"
case "qwen/qwen3.8-27b-uncensored", "qwen3.8-27b-uncensored":
return "Qwen/Qwen3.8-27B-Uncensored"
case "qwen":
if defaultModel != "" {
return defaultModel
}
return "Qwen/Qwen3.8-Flash-Next"
return "Qwen/Qwen3.8-27B"
default:
return clean
}
@@ -1250,7 +1251,7 @@ func parseEndpointList(rawList []string) []*EndpointNode {
func NewQwenService(endpoints []string, modelName, mode, token, apiKey, baseURL, socksProxy string, enableThinking, autoFailover bool) *QwenService {
if modelName == "" {
modelName = "Qwen/Qwen3.8-27B-Uncensored"
modelName = "Qwen/Qwen3.8-27B"
}
if mode == "" {
mode = "auto"
@@ -1287,13 +1288,15 @@ func (s *QwenService) ListModels() []ModelItem {
now := time.Now().Unix()
primaryID := s.modelName
if primaryID == "" {
primaryID = "Qwen/Qwen3.8-27B-Uncensored"
primaryID = "Qwen/Qwen3.8-27B"
}
candidates := []string{
primaryID,
"Qwen/Qwen3.8-27B",
"Qwen/Qwen3.8-27B-Uncensored",
"Qwen/Qwen3.8-Flash-Next",
"qwen3.8-27b",
"qwen3.8-27b-uncensored",
"qwen3.8-flash-next",
"qwen-flash-next",
@@ -2204,7 +2207,7 @@ func main() {
autoFailover := flag.Bool("failover", true, "Enable automatic failover across endpoints on error or quota limit")
flag.BoolVar(autoFailover, "auto-failover", true, "Alias for -failover")
defaultModelVal := "Qwen/Qwen3.8-27B-Uncensored"
defaultModelVal := "Qwen/Qwen3.8-27B"
if envModel := os.Getenv("QFLASH_MODEL"); envModel != "" {
defaultModelVal = envModel
}