@hautechai/sdk 2.9.1 → 2.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +292 -35
- package/dist/index.d.ts +292 -35
- package/dist/index.js +110 -100
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +103 -100
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -11390,6 +11390,17 @@ var getOperations = () => {
|
|
|
11390
11390
|
options
|
|
11391
11391
|
);
|
|
11392
11392
|
};
|
|
11393
|
+
const operationsControllerRunSeedV1V1 = (seedV1Request, options) => {
|
|
11394
|
+
return axiosMutator(
|
|
11395
|
+
{
|
|
11396
|
+
url: `/v1/operations/run/seed.v1`,
|
|
11397
|
+
method: "POST",
|
|
11398
|
+
headers: { "Content-Type": "application/json" },
|
|
11399
|
+
data: seedV1Request
|
|
11400
|
+
},
|
|
11401
|
+
options
|
|
11402
|
+
);
|
|
11403
|
+
};
|
|
11393
11404
|
const operationsControllerRunGoogleNanoBananaV1V1 = (googleNanoBananaV1Request, options) => {
|
|
11394
11405
|
return axiosMutator(
|
|
11395
11406
|
{
|
|
@@ -11401,7 +11412,18 @@ var getOperations = () => {
|
|
|
11401
11412
|
options
|
|
11402
11413
|
);
|
|
11403
11414
|
};
|
|
11404
|
-
|
|
11415
|
+
const operationsControllerRunLoraTrainingV1 = (loraTrainingRequest, options) => {
|
|
11416
|
+
return axiosMutator(
|
|
11417
|
+
{
|
|
11418
|
+
url: `/v1/operations/run/lora.training`,
|
|
11419
|
+
method: "POST",
|
|
11420
|
+
headers: { "Content-Type": "application/json" },
|
|
11421
|
+
data: loraTrainingRequest
|
|
11422
|
+
},
|
|
11423
|
+
options
|
|
11424
|
+
);
|
|
11425
|
+
};
|
|
11426
|
+
return { operationsControllerGetOperationV1, operationsControllerGetOperationsV1, operationsControllerListOperationsV1, operationsControllerUpdateMetadataV1, operationsControllerRunHauteLindaV1V1, operationsControllerRunHauteNaomiV1V1, operationsControllerRunInpaintKateV1V1, operationsControllerRunGptV1V1, operationsControllerRunGptV2V1, operationsControllerRunGptV3V1, operationsControllerRunTranslateV1V1, operationsControllerRunStringsTemplateV1V1, operationsControllerRunImagineKateV1V1, operationsControllerRunUpscaleV1V1, operationsControllerRunObjectDetectionV1V1, operationsControllerRunSegmentAnythingEmbeddingsV1V1, operationsControllerRunSegmentAnythingMaskV1V1, operationsControllerRunPoseEstimationV1V1, operationsControllerRunCutV1V1, operationsControllerRunCropV1V1, operationsControllerRunNoiseV1V1, operationsControllerRunResizeV1V1, operationsControllerRunContrastV1V1, operationsControllerRunCompositeV1V1, operationsControllerRunVtonGiseleV1V1, operationsControllerRunNegateImageV1V1, operationsControllerRunEchoV1V1, operationsControllerRunMathV1V1, operationsControllerRunAnimateKling16ProV1V1, operationsControllerRunAnimateKling21V1V1, operationsControllerRunAnimateCreatomateV1V1, operationsControllerRunOnecompilerV1V1, operationsControllerRunEditFluxKontextDevV1V1, operationsControllerRunVeo3V1V1, operationsControllerRunVeo3FastV1V1, operationsControllerRunPipelineMapV1V1, operationsControllerRunImagen4V1V1, operationsControllerRunTopazUpscaleV1V1, operationsControllerRunIdeogramCharacterV1V1, operationsControllerRunSeedream3V1V1, operationsControllerRunLumaPhotonV1V1, operationsControllerRunImagineFlux11ProUltraV1V1, operationsControllerRunSeedV1V1, operationsControllerRunGoogleNanoBananaV1V1, operationsControllerRunLoraTrainingV1 };
|
|
11405
11427
|
};
|
|
11406
11428
|
|
|
11407
11429
|
// src/sdk/api-definitions/operations.ts
|
|
@@ -11561,6 +11583,9 @@ var useOperationsApi = () => {
|
|
|
11561
11583
|
nano_banana: {
|
|
11562
11584
|
v1: hautechApi.operationsControllerRunGoogleNanoBananaV1V1
|
|
11563
11585
|
}
|
|
11586
|
+
},
|
|
11587
|
+
lora: {
|
|
11588
|
+
training: hautechApi.operationsControllerRunLoraTrainingV1
|
|
11564
11589
|
}
|
|
11565
11590
|
},
|
|
11566
11591
|
get: wrapApiCallNullable(hautechApi.operationsControllerGetOperationV1),
|
|
@@ -13227,6 +13252,23 @@ var LoraDtoStatus = {
|
|
|
13227
13252
|
canceled: "canceled"
|
|
13228
13253
|
};
|
|
13229
13254
|
|
|
13255
|
+
// src/autogenerated/schemas/loraTrainingOutputKind.ts
|
|
13256
|
+
var LoraTrainingOutputKind = {
|
|
13257
|
+
json: "json"
|
|
13258
|
+
};
|
|
13259
|
+
|
|
13260
|
+
// src/autogenerated/schemas/loraTrainingResponseKind.ts
|
|
13261
|
+
var LoraTrainingResponseKind = {
|
|
13262
|
+
operation: "operation"
|
|
13263
|
+
};
|
|
13264
|
+
|
|
13265
|
+
// src/autogenerated/schemas/loraTrainingResponseStatus.ts
|
|
13266
|
+
var LoraTrainingResponseStatus = {
|
|
13267
|
+
pending: "pending",
|
|
13268
|
+
finished: "finished",
|
|
13269
|
+
failed: "failed"
|
|
13270
|
+
};
|
|
13271
|
+
|
|
13230
13272
|
// src/autogenerated/schemas/loraWebhookDtoStatus.ts
|
|
13231
13273
|
var LoraWebhookDtoStatus = {
|
|
13232
13274
|
starting: "starting",
|
|
@@ -13395,6 +13437,11 @@ var OperationOutputJSONKind = {
|
|
|
13395
13437
|
json: "json"
|
|
13396
13438
|
};
|
|
13397
13439
|
|
|
13440
|
+
// src/autogenerated/schemas/operationOutputNumberKind.ts
|
|
13441
|
+
var OperationOutputNumberKind = {
|
|
13442
|
+
number: "number"
|
|
13443
|
+
};
|
|
13444
|
+
|
|
13398
13445
|
// src/autogenerated/schemas/operationOutputTextSingleKind.ts
|
|
13399
13446
|
var OperationOutputTextSingleKind = {
|
|
13400
13447
|
"text/single": "text/single"
|
|
@@ -13570,6 +13617,18 @@ var RevokeAccessControllerParamsDtoPrincipalType = {
|
|
|
13570
13617
|
group: "group"
|
|
13571
13618
|
};
|
|
13572
13619
|
|
|
13620
|
+
// src/autogenerated/schemas/seedV1ResponseKind.ts
|
|
13621
|
+
var SeedV1ResponseKind = {
|
|
13622
|
+
operation: "operation"
|
|
13623
|
+
};
|
|
13624
|
+
|
|
13625
|
+
// src/autogenerated/schemas/seedV1ResponseStatus.ts
|
|
13626
|
+
var SeedV1ResponseStatus = {
|
|
13627
|
+
pending: "pending",
|
|
13628
|
+
finished: "finished",
|
|
13629
|
+
failed: "failed"
|
|
13630
|
+
};
|
|
13631
|
+
|
|
13573
13632
|
// src/autogenerated/schemas/seedream3V1InputAspectRatio.ts
|
|
13574
13633
|
var Seedream3V1InputAspectRatio = {
|
|
13575
13634
|
custom: "custom",
|
|
@@ -13659,6 +13718,13 @@ var StartNaomiTrainingParamsDtoMixedPrecision = {
|
|
|
13659
13718
|
bf16: "bf16"
|
|
13660
13719
|
};
|
|
13661
13720
|
|
|
13721
|
+
// src/autogenerated/schemas/startTrainingParamsDtoModelType.ts
|
|
13722
|
+
var StartTrainingParamsDtoModelType = {
|
|
13723
|
+
flux: "flux",
|
|
13724
|
+
naomi: "naomi",
|
|
13725
|
+
custom: "custom"
|
|
13726
|
+
};
|
|
13727
|
+
|
|
13662
13728
|
// src/autogenerated/schemas/storageEntityKind.ts
|
|
13663
13729
|
var StorageEntityKind = {
|
|
13664
13730
|
storage: "storage"
|
|
@@ -14579,6 +14645,17 @@ var getCall = () => {
|
|
|
14579
14645
|
options
|
|
14580
14646
|
);
|
|
14581
14647
|
};
|
|
14648
|
+
const callControllerCallOperationsRunSeedV1V1 = (seedV1Request, options) => {
|
|
14649
|
+
return axiosMutator(
|
|
14650
|
+
{
|
|
14651
|
+
url: `/v1/call/operations.run.seed.v1`,
|
|
14652
|
+
method: "POST",
|
|
14653
|
+
headers: { "Content-Type": "application/json" },
|
|
14654
|
+
data: seedV1Request
|
|
14655
|
+
},
|
|
14656
|
+
options
|
|
14657
|
+
);
|
|
14658
|
+
};
|
|
14582
14659
|
const callControllerCallOperationsRunGoogleNanoBananaV1V1 = (googleNanoBananaV1Request, options) => {
|
|
14583
14660
|
return axiosMutator(
|
|
14584
14661
|
{
|
|
@@ -14590,6 +14667,17 @@ var getCall = () => {
|
|
|
14590
14667
|
options
|
|
14591
14668
|
);
|
|
14592
14669
|
};
|
|
14670
|
+
const callControllerCallOperationsRunLoraTrainingV1 = (loraTrainingRequest, options) => {
|
|
14671
|
+
return axiosMutator(
|
|
14672
|
+
{
|
|
14673
|
+
url: `/v1/call/operations.run.lora.training`,
|
|
14674
|
+
method: "POST",
|
|
14675
|
+
headers: { "Content-Type": "application/json" },
|
|
14676
|
+
data: loraTrainingRequest
|
|
14677
|
+
},
|
|
14678
|
+
options
|
|
14679
|
+
);
|
|
14680
|
+
};
|
|
14593
14681
|
const callControllerCallPosesGetV1 = (getPoseParamsDto, options) => {
|
|
14594
14682
|
return axiosMutator(
|
|
14595
14683
|
{
|
|
@@ -14744,7 +14832,7 @@ var getCall = () => {
|
|
|
14744
14832
|
options
|
|
14745
14833
|
);
|
|
14746
14834
|
};
|
|
14747
|
-
return { callControllerCallAccessGrantV1, callControllerCallAccessAttachV1, callControllerCallAccountsCreateV1, callControllerCallAccountsGetV1, callControllerCallAccountsSelfV1, callControllerCallAccountsListV1, callControllerCallAccountsUpdateV1, callControllerCallAccountsBalanceAddV1, callControllerCallAccountsBalanceSelfV1, callControllerCallAccountsBalanceGetV1, callControllerCallCollectionsCreateV1, callControllerCallCollectionsGetV1, callControllerCallCollectionsListV1, callControllerCallCollectionsMetadataUpdateV1, callControllerCallCollectionsItemsAddV1, callControllerCallCollectionsItemsListV1, callControllerCallCollectionsItemsRemoveV1, callControllerCallGroupsCreateV1, callControllerCallGroupsGetV1, callControllerCallGroupsDeleteV1, callControllerCallGroupsAccountsAddV1, callControllerCallGroupsAccountsRemoveV1, callControllerCallImagesGetManyV1, callControllerCallImagesGetV1, callControllerCallImagesRepresentationsGetV1, callControllerCallVideosGetManyV1, callControllerCallVideosGetV1, callControllerCallOperationsGetV1, callControllerCallOperationsGetManyV1, callControllerCallOperationsListV1, callControllerCallOperationsMetadataUpdateV1, callControllerCallOperationsWaitV1, callControllerCallOperationsRunHauteLindaV1V1, callControllerCallOperationsRunHauteNaomiV1V1, callControllerCallOperationsRunInpaintKateV1V1, callControllerCallOperationsRunGptV1V1, callControllerCallOperationsRunGptV2V1, callControllerCallOperationsRunGptV3V1, callControllerCallOperationsRunTranslateV1V1, callControllerCallOperationsRunStringsTemplateV1V1, callControllerCallOperationsRunImagineKateV1V1, callControllerCallOperationsRunUpscaleV1V1, callControllerCallOperationsRunObjectDetectionV1V1, callControllerCallOperationsRunSegmentAnythingEmbeddingsV1V1, callControllerCallOperationsRunSegmentAnythingMaskV1V1, callControllerCallOperationsRunPoseEstimationV1V1, callControllerCallOperationsRunCutV1V1, callControllerCallOperationsRunCropV1V1, callControllerCallOperationsRunNoiseV1V1, callControllerCallOperationsRunResizeV1V1, callControllerCallOperationsRunContrastV1V1, callControllerCallOperationsRunCompositeV1V1, callControllerCallOperationsRunVtonGiseleV1V1, callControllerCallOperationsRunNegateImageV1V1, callControllerCallOperationsRunEchoV1V1, callControllerCallOperationsRunMathV1V1, callControllerCallOperationsRunAnimateKling16ProV1V1, callControllerCallOperationsRunAnimateKling21V1V1, callControllerCallOperationsRunAnimateCreatomateV1V1, callControllerCallOperationsRunOnecompilerV1V1, callControllerCallOperationsRunEditFluxKontextDevV1V1, callControllerCallOperationsRunVeo3V1V1, callControllerCallOperationsRunVeo3FastV1V1, callControllerCallOperationsRunPipelineMapV1V1, callControllerCallOperationsRunImagen4V1V1, callControllerCallOperationsRunTopazUpscaleV1V1, callControllerCallOperationsRunIdeogramCharacterV1V1, callControllerCallOperationsRunSeedream3V1V1, callControllerCallOperationsRunLumaPhotonV1V1, callControllerCallOperationsRunImagineFlux11ProUltraV1V1, callControllerCallOperationsRunGoogleNanoBananaV1V1, callControllerCallPosesGetV1, callControllerCallPosesListV1, callControllerCallPosesPreviewSetV1, callControllerCallPosesMetadataUpdateV1, callControllerCallStacksCreateV1, callControllerCallStacksGetV1, callControllerCallStacksListV1, callControllerCallStacksMetadataUpdateV1, callControllerCallStacksItemsAddV1, callControllerCallStacksItemsRemoveV1, callControllerCallStorageCreateV1, callControllerCallStorageDeleteV1, callControllerCallStorageGetManyV1, callControllerCallStorageUpdateV1 };
|
|
14835
|
+
return { callControllerCallAccessGrantV1, callControllerCallAccessAttachV1, callControllerCallAccountsCreateV1, callControllerCallAccountsGetV1, callControllerCallAccountsSelfV1, callControllerCallAccountsListV1, callControllerCallAccountsUpdateV1, callControllerCallAccountsBalanceAddV1, callControllerCallAccountsBalanceSelfV1, callControllerCallAccountsBalanceGetV1, callControllerCallCollectionsCreateV1, callControllerCallCollectionsGetV1, callControllerCallCollectionsListV1, callControllerCallCollectionsMetadataUpdateV1, callControllerCallCollectionsItemsAddV1, callControllerCallCollectionsItemsListV1, callControllerCallCollectionsItemsRemoveV1, callControllerCallGroupsCreateV1, callControllerCallGroupsGetV1, callControllerCallGroupsDeleteV1, callControllerCallGroupsAccountsAddV1, callControllerCallGroupsAccountsRemoveV1, callControllerCallImagesGetManyV1, callControllerCallImagesGetV1, callControllerCallImagesRepresentationsGetV1, callControllerCallVideosGetManyV1, callControllerCallVideosGetV1, callControllerCallOperationsGetV1, callControllerCallOperationsGetManyV1, callControllerCallOperationsListV1, callControllerCallOperationsMetadataUpdateV1, callControllerCallOperationsWaitV1, callControllerCallOperationsRunHauteLindaV1V1, callControllerCallOperationsRunHauteNaomiV1V1, callControllerCallOperationsRunInpaintKateV1V1, callControllerCallOperationsRunGptV1V1, callControllerCallOperationsRunGptV2V1, callControllerCallOperationsRunGptV3V1, callControllerCallOperationsRunTranslateV1V1, callControllerCallOperationsRunStringsTemplateV1V1, callControllerCallOperationsRunImagineKateV1V1, callControllerCallOperationsRunUpscaleV1V1, callControllerCallOperationsRunObjectDetectionV1V1, callControllerCallOperationsRunSegmentAnythingEmbeddingsV1V1, callControllerCallOperationsRunSegmentAnythingMaskV1V1, callControllerCallOperationsRunPoseEstimationV1V1, callControllerCallOperationsRunCutV1V1, callControllerCallOperationsRunCropV1V1, callControllerCallOperationsRunNoiseV1V1, callControllerCallOperationsRunResizeV1V1, callControllerCallOperationsRunContrastV1V1, callControllerCallOperationsRunCompositeV1V1, callControllerCallOperationsRunVtonGiseleV1V1, callControllerCallOperationsRunNegateImageV1V1, callControllerCallOperationsRunEchoV1V1, callControllerCallOperationsRunMathV1V1, callControllerCallOperationsRunAnimateKling16ProV1V1, callControllerCallOperationsRunAnimateKling21V1V1, callControllerCallOperationsRunAnimateCreatomateV1V1, callControllerCallOperationsRunOnecompilerV1V1, callControllerCallOperationsRunEditFluxKontextDevV1V1, callControllerCallOperationsRunVeo3V1V1, callControllerCallOperationsRunVeo3FastV1V1, callControllerCallOperationsRunPipelineMapV1V1, callControllerCallOperationsRunImagen4V1V1, callControllerCallOperationsRunTopazUpscaleV1V1, callControllerCallOperationsRunIdeogramCharacterV1V1, callControllerCallOperationsRunSeedream3V1V1, callControllerCallOperationsRunLumaPhotonV1V1, callControllerCallOperationsRunImagineFlux11ProUltraV1V1, callControllerCallOperationsRunSeedV1V1, callControllerCallOperationsRunGoogleNanoBananaV1V1, callControllerCallOperationsRunLoraTrainingV1, callControllerCallPosesGetV1, callControllerCallPosesListV1, callControllerCallPosesPreviewSetV1, callControllerCallPosesMetadataUpdateV1, callControllerCallStacksCreateV1, callControllerCallStacksGetV1, callControllerCallStacksListV1, callControllerCallStacksMetadataUpdateV1, callControllerCallStacksItemsAddV1, callControllerCallStacksItemsRemoveV1, callControllerCallStorageCreateV1, callControllerCallStorageDeleteV1, callControllerCallStorageGetManyV1, callControllerCallStorageUpdateV1 };
|
|
14748
14836
|
};
|
|
14749
14837
|
|
|
14750
14838
|
// src/autogenerated/pipeline-methods.ts
|
|
@@ -14941,10 +15029,16 @@ var usePipelineDefinitions = () => {
|
|
|
14941
15029
|
"v1": api.callControllerCallOperationsRunLumaPhotonV1V1
|
|
14942
15030
|
}
|
|
14943
15031
|
},
|
|
15032
|
+
"seed": {
|
|
15033
|
+
"v1": api.callControllerCallOperationsRunSeedV1V1
|
|
15034
|
+
},
|
|
14944
15035
|
"google": {
|
|
14945
15036
|
"nano_banana": {
|
|
14946
15037
|
"v1": api.callControllerCallOperationsRunGoogleNanoBananaV1V1
|
|
14947
15038
|
}
|
|
15039
|
+
},
|
|
15040
|
+
"lora": {
|
|
15041
|
+
"training": api.callControllerCallOperationsRunLoraTrainingV1
|
|
14948
15042
|
}
|
|
14949
15043
|
}
|
|
14950
15044
|
},
|
|
@@ -15029,103 +15123,6 @@ var usePipelinesApi = () => {
|
|
|
15029
15123
|
return useApi(api);
|
|
15030
15124
|
};
|
|
15031
15125
|
|
|
15032
|
-
// src/autogenerated/lora/lora.ts
|
|
15033
|
-
var getLora = () => {
|
|
15034
|
-
const loraControllerStartFluxV1 = (startFluxTrainingParamsDto, options) => {
|
|
15035
|
-
return axiosMutator(
|
|
15036
|
-
{
|
|
15037
|
-
url: `/v1/lora/train/flux`,
|
|
15038
|
-
method: "POST",
|
|
15039
|
-
headers: { "Content-Type": "application/json" },
|
|
15040
|
-
data: startFluxTrainingParamsDto
|
|
15041
|
-
},
|
|
15042
|
-
options
|
|
15043
|
-
);
|
|
15044
|
-
};
|
|
15045
|
-
const loraControllerStartNaomiV1 = (startNaomiTrainingParamsDto, options) => {
|
|
15046
|
-
return axiosMutator(
|
|
15047
|
-
{
|
|
15048
|
-
url: `/v1/lora/train/naomi`,
|
|
15049
|
-
method: "POST",
|
|
15050
|
-
headers: { "Content-Type": "application/json" },
|
|
15051
|
-
data: startNaomiTrainingParamsDto
|
|
15052
|
-
},
|
|
15053
|
-
options
|
|
15054
|
-
);
|
|
15055
|
-
};
|
|
15056
|
-
const loraControllerStartGeneralV1 = (startTrainingParamsDto, options) => {
|
|
15057
|
-
return axiosMutator(
|
|
15058
|
-
{
|
|
15059
|
-
url: `/v1/lora/train`,
|
|
15060
|
-
method: "POST",
|
|
15061
|
-
headers: { "Content-Type": "application/json" },
|
|
15062
|
-
data: startTrainingParamsDto
|
|
15063
|
-
},
|
|
15064
|
-
options
|
|
15065
|
-
);
|
|
15066
|
-
};
|
|
15067
|
-
const loraControllerListV1 = (params, options) => {
|
|
15068
|
-
return axiosMutator(
|
|
15069
|
-
{
|
|
15070
|
-
url: `/v1/lora`,
|
|
15071
|
-
method: "GET",
|
|
15072
|
-
params
|
|
15073
|
-
},
|
|
15074
|
-
options
|
|
15075
|
-
);
|
|
15076
|
-
};
|
|
15077
|
-
const loraControllerGetV1 = (id, options) => {
|
|
15078
|
-
return axiosMutator(
|
|
15079
|
-
{
|
|
15080
|
-
url: `/v1/lora/${id}`,
|
|
15081
|
-
method: "GET"
|
|
15082
|
-
},
|
|
15083
|
-
options
|
|
15084
|
-
);
|
|
15085
|
-
};
|
|
15086
|
-
const loraControllerTrainingsWebhookV1 = (loraWebhookDto, options) => {
|
|
15087
|
-
return axiosMutator(
|
|
15088
|
-
{
|
|
15089
|
-
url: `/v1/lora/trainings/webhook`,
|
|
15090
|
-
method: "POST",
|
|
15091
|
-
headers: { "Content-Type": "application/json" },
|
|
15092
|
-
data: loraWebhookDto
|
|
15093
|
-
},
|
|
15094
|
-
options
|
|
15095
|
-
);
|
|
15096
|
-
};
|
|
15097
|
-
return { loraControllerStartFluxV1, loraControllerStartNaomiV1, loraControllerStartGeneralV1, loraControllerListV1, loraControllerGetV1, loraControllerTrainingsWebhookV1 };
|
|
15098
|
-
};
|
|
15099
|
-
|
|
15100
|
-
// src/sdk/api-definitions/lora.ts
|
|
15101
|
-
var waitLoraStatusChange = wrapCustomMethod(async function(lora, timeoutMs = 12e4) {
|
|
15102
|
-
const sdk = this;
|
|
15103
|
-
const initialStatus = lora.status;
|
|
15104
|
-
const deadline = Date.now() + timeoutMs;
|
|
15105
|
-
const delay = 3e3;
|
|
15106
|
-
const sleep = (ms) => new Promise((resolve) => setTimeout(resolve, ms));
|
|
15107
|
-
while (Date.now() < deadline) {
|
|
15108
|
-
const current = await sdk.lora.get(lora.id);
|
|
15109
|
-
if (!current) throw new Error("LoRA not found");
|
|
15110
|
-
if (current.status !== initialStatus || ["succeeded", "failed", "canceled"].includes(current.status)) {
|
|
15111
|
-
return current;
|
|
15112
|
-
}
|
|
15113
|
-
await sleep(delay);
|
|
15114
|
-
}
|
|
15115
|
-
throw new Error("LoRA wait timed out");
|
|
15116
|
-
});
|
|
15117
|
-
var useLoraApi = () => {
|
|
15118
|
-
const hautechApi = getLora();
|
|
15119
|
-
return useApi({
|
|
15120
|
-
start: hautechApi.loraControllerStartGeneralV1,
|
|
15121
|
-
startFlux: hautechApi.loraControllerStartFluxV1,
|
|
15122
|
-
startNaomi: hautechApi.loraControllerStartNaomiV1,
|
|
15123
|
-
list: hautechApi.loraControllerListV1,
|
|
15124
|
-
get: hautechApi.loraControllerGetV1,
|
|
15125
|
-
wait: waitLoraStatusChange
|
|
15126
|
-
});
|
|
15127
|
-
};
|
|
15128
|
-
|
|
15129
15126
|
// src/autogenerated/upload/upload.ts
|
|
15130
15127
|
var getUpload = () => {
|
|
15131
15128
|
const uploadControllerInitUploadV1 = (initializeGenericUploadParamsDto, options) => {
|
|
@@ -15320,7 +15317,6 @@ var apiDefinitions = {
|
|
|
15320
15317
|
balances: useBalancesApi(),
|
|
15321
15318
|
access: useAccessApi(),
|
|
15322
15319
|
pipelines: usePipelinesApi(),
|
|
15323
|
-
lora: useLoraApi(),
|
|
15324
15320
|
upload: useUploadApi()
|
|
15325
15321
|
};
|
|
15326
15322
|
var pipelineDefinitions = usePipelineDefinitions();
|
|
@@ -15608,6 +15604,9 @@ export {
|
|
|
15608
15604
|
LoraControllerListV1OrderBy,
|
|
15609
15605
|
LoraControllerListV1Status,
|
|
15610
15606
|
LoraDtoStatus,
|
|
15607
|
+
LoraTrainingOutputKind,
|
|
15608
|
+
LoraTrainingResponseKind,
|
|
15609
|
+
LoraTrainingResponseStatus,
|
|
15611
15610
|
LoraWebhookDtoStatus,
|
|
15612
15611
|
LumaPhotonV1InputAspectRatio,
|
|
15613
15612
|
LumaPhotonV1ResponseKind,
|
|
@@ -15633,6 +15632,7 @@ export {
|
|
|
15633
15632
|
OperationOutputImageMultipleKind,
|
|
15634
15633
|
OperationOutputImageSingleKind,
|
|
15635
15634
|
OperationOutputJSONKind,
|
|
15635
|
+
OperationOutputNumberKind,
|
|
15636
15636
|
OperationOutputTextSingleKind,
|
|
15637
15637
|
OperationOutputVideoSingleKind,
|
|
15638
15638
|
OperationsControllerListOperationsV1OrderBy,
|
|
@@ -15658,6 +15658,8 @@ export {
|
|
|
15658
15658
|
ResourceEntityKind,
|
|
15659
15659
|
RevokeAccessControllerParamsDtoAccess,
|
|
15660
15660
|
RevokeAccessControllerParamsDtoPrincipalType,
|
|
15661
|
+
SeedV1ResponseKind,
|
|
15662
|
+
SeedV1ResponseStatus,
|
|
15661
15663
|
Seedream3V1InputAspectRatio,
|
|
15662
15664
|
Seedream3V1InputSize,
|
|
15663
15665
|
Seedream3V1ResponseKind,
|
|
@@ -15671,6 +15673,7 @@ export {
|
|
|
15671
15673
|
StacksControllerListStacksV1OrderBy,
|
|
15672
15674
|
StartNaomiTrainingParamsDtoLrScheduler,
|
|
15673
15675
|
StartNaomiTrainingParamsDtoMixedPrecision,
|
|
15676
|
+
StartTrainingParamsDtoModelType,
|
|
15674
15677
|
StorageEntityKind,
|
|
15675
15678
|
StringsTemplateV1ResponseKind,
|
|
15676
15679
|
StringsTemplateV1ResponseStatus,
|