feat: 注释掉 API 密钥验证逻辑

- 在 `AiModelController` 中注释掉对 `dto.getApiKey()` 的验证逻辑
dev_na
chenhao 2026-06-29 14:39:21 +08:00
parent 0593e0c23d
commit fc034b8326
1 changed files with 3 additions and 3 deletions

View File

@ -112,9 +112,9 @@ public class AiModelController {
if (dto.getBaseUrl() == null || dto.getBaseUrl().isBlank()) {
return ApiResponse.error("基础地址不能为空");
}
if (dto.getApiKey() == null || dto.getApiKey().isBlank()) {
return ApiResponse.error("API 密钥不能为空");
}
// if (dto.getApiKey() == null || dto.getApiKey().isBlank()) {
// return ApiResponse.error("API 密钥不能为空");
// }
return ApiResponse.ok(aiModelService.testLocalConnectivity(dto.getBaseUrl(), dto.getApiKey()));
}