优化
This commit is contained in:
truewhile
2026-08-24 17:00:18 +08:00
parent afae22ffe2
commit 0aff87c69d
39 changed files with 846 additions and 219 deletions
+5 -5
View File
@@ -30,11 +30,11 @@ func (s *ApiConfigService) TestConnection(ctx context.Context, provider string)
return s.testDeepSeek(cfg)
case "siliconflow":
return s.testSiliconFlow(cfg)
case "adult":
return s.testAdult(ctx, cfg)
case "metatube":
return s.testMetaTube(ctx, cfg)
default:
case "adult":
return s.testAdult(ctx, cfg)
case "metatube":
return s.testMetaTube(ctx, cfg)
default:
return "unknown", fmt.Errorf("no test implemented for provider: %s", provider)
}
}