mirror of
https://github.com/truewhile/MeBox.git
synced 2026-10-06 13:26:38 +08:00
优化
优化
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user