parent
0593e0c23d
commit
fc034b8326
|
|
@ -112,9 +112,9 @@ public class AiModelController {
|
||||||
if (dto.getBaseUrl() == null || dto.getBaseUrl().isBlank()) {
|
if (dto.getBaseUrl() == null || dto.getBaseUrl().isBlank()) {
|
||||||
return ApiResponse.error("基础地址不能为空");
|
return ApiResponse.error("基础地址不能为空");
|
||||||
}
|
}
|
||||||
if (dto.getApiKey() == null || dto.getApiKey().isBlank()) {
|
// if (dto.getApiKey() == null || dto.getApiKey().isBlank()) {
|
||||||
return ApiResponse.error("API 密钥不能为空");
|
// return ApiResponse.error("API 密钥不能为空");
|
||||||
}
|
// }
|
||||||
return ApiResponse.ok(aiModelService.testLocalConnectivity(dto.getBaseUrl(), dto.getApiKey()));
|
return ApiResponse.ok(aiModelService.testLocalConnectivity(dto.getBaseUrl(), dto.getApiKey()));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue