diff --git a/apps/api/internal/httpapi/kling_compat_integration_test.go b/apps/api/internal/httpapi/kling_compat_integration_test.go index 3ca0f2a..5801f37 100644 --- a/apps/api/internal/httpapi/kling_compat_integration_test.go +++ b/apps/api/internal/httpapi/kling_compat_integration_test.go @@ -144,7 +144,8 @@ WHERE platform_id = $1::uuid } `json:"task"` } doJSON(t, server.URL, http.MethodPost, "/api/v1/videos/generations", apiKeyResponse.Secret, request, http.StatusAccepted, &response) - if response.Task.Status != "succeeded" || response.Task.ModelType != expectedModelType || response.Task.ResolvedModel != model { + resolvedModel, resolved := klingV2ProviderModel(response.Task.ResolvedModel) + if response.Task.Status != "succeeded" || response.Task.ModelType != expectedModelType || !resolved || resolvedModel != model { t.Fatalf("generic video request without modelType should use inferred capability: %+v", response.Task) } })