fix: verify provider connection online

This commit is contained in:
2026-06-13 12:42:46 +08:00
parent 5f3b4502f6
commit 1d98d831e3
3 changed files with 41 additions and 26 deletions
@@ -391,7 +391,9 @@ export async function deleteProviderApi(id: string) {
export async function testProviderApi(id: string) {
return requestClient.post<{
message: string;
models: any[];
model_count: number;
models: DefaultModel[];
source: 'api';
success: boolean;
}>(`${BASE_URL}/provider/${id}/test`);
}