@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.js
CHANGED
|
@@ -10509,6 +10509,9 @@ __export(index_exports, {
|
|
|
10509
10509
|
LoraControllerListV1OrderBy: () => LoraControllerListV1OrderBy,
|
|
10510
10510
|
LoraControllerListV1Status: () => LoraControllerListV1Status,
|
|
10511
10511
|
LoraDtoStatus: () => LoraDtoStatus,
|
|
10512
|
+
LoraTrainingOutputKind: () => LoraTrainingOutputKind,
|
|
10513
|
+
LoraTrainingResponseKind: () => LoraTrainingResponseKind,
|
|
10514
|
+
LoraTrainingResponseStatus: () => LoraTrainingResponseStatus,
|
|
10512
10515
|
LoraWebhookDtoStatus: () => LoraWebhookDtoStatus,
|
|
10513
10516
|
LumaPhotonV1InputAspectRatio: () => LumaPhotonV1InputAspectRatio,
|
|
10514
10517
|
LumaPhotonV1ResponseKind: () => LumaPhotonV1ResponseKind,
|
|
@@ -10534,6 +10537,7 @@ __export(index_exports, {
|
|
|
10534
10537
|
OperationOutputImageMultipleKind: () => OperationOutputImageMultipleKind,
|
|
10535
10538
|
OperationOutputImageSingleKind: () => OperationOutputImageSingleKind,
|
|
10536
10539
|
OperationOutputJSONKind: () => OperationOutputJSONKind,
|
|
10540
|
+
OperationOutputNumberKind: () => OperationOutputNumberKind,
|
|
10537
10541
|
OperationOutputTextSingleKind: () => OperationOutputTextSingleKind,
|
|
10538
10542
|
OperationOutputVideoSingleKind: () => OperationOutputVideoSingleKind,
|
|
10539
10543
|
OperationsControllerListOperationsV1OrderBy: () => OperationsControllerListOperationsV1OrderBy,
|
|
@@ -10559,6 +10563,8 @@ __export(index_exports, {
|
|
|
10559
10563
|
ResourceEntityKind: () => ResourceEntityKind,
|
|
10560
10564
|
RevokeAccessControllerParamsDtoAccess: () => RevokeAccessControllerParamsDtoAccess,
|
|
10561
10565
|
RevokeAccessControllerParamsDtoPrincipalType: () => RevokeAccessControllerParamsDtoPrincipalType,
|
|
10566
|
+
SeedV1ResponseKind: () => SeedV1ResponseKind,
|
|
10567
|
+
SeedV1ResponseStatus: () => SeedV1ResponseStatus,
|
|
10562
10568
|
Seedream3V1InputAspectRatio: () => Seedream3V1InputAspectRatio,
|
|
10563
10569
|
Seedream3V1InputSize: () => Seedream3V1InputSize,
|
|
10564
10570
|
Seedream3V1ResponseKind: () => Seedream3V1ResponseKind,
|
|
@@ -10572,6 +10578,7 @@ __export(index_exports, {
|
|
|
10572
10578
|
StacksControllerListStacksV1OrderBy: () => StacksControllerListStacksV1OrderBy,
|
|
10573
10579
|
StartNaomiTrainingParamsDtoLrScheduler: () => StartNaomiTrainingParamsDtoLrScheduler,
|
|
10574
10580
|
StartNaomiTrainingParamsDtoMixedPrecision: () => StartNaomiTrainingParamsDtoMixedPrecision,
|
|
10581
|
+
StartTrainingParamsDtoModelType: () => StartTrainingParamsDtoModelType,
|
|
10575
10582
|
StorageEntityKind: () => StorageEntityKind,
|
|
10576
10583
|
StringsTemplateV1ResponseKind: () => StringsTemplateV1ResponseKind,
|
|
10577
10584
|
StringsTemplateV1ResponseStatus: () => StringsTemplateV1ResponseStatus,
|
|
@@ -11698,6 +11705,17 @@ var getOperations = () => {
|
|
|
11698
11705
|
options
|
|
11699
11706
|
);
|
|
11700
11707
|
};
|
|
11708
|
+
const operationsControllerRunSeedV1V1 = (seedV1Request, options) => {
|
|
11709
|
+
return axiosMutator(
|
|
11710
|
+
{
|
|
11711
|
+
url: `/v1/operations/run/seed.v1`,
|
|
11712
|
+
method: "POST",
|
|
11713
|
+
headers: { "Content-Type": "application/json" },
|
|
11714
|
+
data: seedV1Request
|
|
11715
|
+
},
|
|
11716
|
+
options
|
|
11717
|
+
);
|
|
11718
|
+
};
|
|
11701
11719
|
const operationsControllerRunGoogleNanoBananaV1V1 = (googleNanoBananaV1Request, options) => {
|
|
11702
11720
|
return axiosMutator(
|
|
11703
11721
|
{
|
|
@@ -11709,7 +11727,18 @@ var getOperations = () => {
|
|
|
11709
11727
|
options
|
|
11710
11728
|
);
|
|
11711
11729
|
};
|
|
11712
|
-
|
|
11730
|
+
const operationsControllerRunLoraTrainingV1 = (loraTrainingRequest, options) => {
|
|
11731
|
+
return axiosMutator(
|
|
11732
|
+
{
|
|
11733
|
+
url: `/v1/operations/run/lora.training`,
|
|
11734
|
+
method: "POST",
|
|
11735
|
+
headers: { "Content-Type": "application/json" },
|
|
11736
|
+
data: loraTrainingRequest
|
|
11737
|
+
},
|
|
11738
|
+
options
|
|
11739
|
+
);
|
|
11740
|
+
};
|
|
11741
|
+
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 };
|
|
11713
11742
|
};
|
|
11714
11743
|
|
|
11715
11744
|
// src/sdk/api-definitions/operations.ts
|
|
@@ -11869,6 +11898,9 @@ var useOperationsApi = () => {
|
|
|
11869
11898
|
nano_banana: {
|
|
11870
11899
|
v1: hautechApi.operationsControllerRunGoogleNanoBananaV1V1
|
|
11871
11900
|
}
|
|
11901
|
+
},
|
|
11902
|
+
lora: {
|
|
11903
|
+
training: hautechApi.operationsControllerRunLoraTrainingV1
|
|
11872
11904
|
}
|
|
11873
11905
|
},
|
|
11874
11906
|
get: wrapApiCallNullable(hautechApi.operationsControllerGetOperationV1),
|
|
@@ -13535,6 +13567,23 @@ var LoraDtoStatus = {
|
|
|
13535
13567
|
canceled: "canceled"
|
|
13536
13568
|
};
|
|
13537
13569
|
|
|
13570
|
+
// src/autogenerated/schemas/loraTrainingOutputKind.ts
|
|
13571
|
+
var LoraTrainingOutputKind = {
|
|
13572
|
+
json: "json"
|
|
13573
|
+
};
|
|
13574
|
+
|
|
13575
|
+
// src/autogenerated/schemas/loraTrainingResponseKind.ts
|
|
13576
|
+
var LoraTrainingResponseKind = {
|
|
13577
|
+
operation: "operation"
|
|
13578
|
+
};
|
|
13579
|
+
|
|
13580
|
+
// src/autogenerated/schemas/loraTrainingResponseStatus.ts
|
|
13581
|
+
var LoraTrainingResponseStatus = {
|
|
13582
|
+
pending: "pending",
|
|
13583
|
+
finished: "finished",
|
|
13584
|
+
failed: "failed"
|
|
13585
|
+
};
|
|
13586
|
+
|
|
13538
13587
|
// src/autogenerated/schemas/loraWebhookDtoStatus.ts
|
|
13539
13588
|
var LoraWebhookDtoStatus = {
|
|
13540
13589
|
starting: "starting",
|
|
@@ -13703,6 +13752,11 @@ var OperationOutputJSONKind = {
|
|
|
13703
13752
|
json: "json"
|
|
13704
13753
|
};
|
|
13705
13754
|
|
|
13755
|
+
// src/autogenerated/schemas/operationOutputNumberKind.ts
|
|
13756
|
+
var OperationOutputNumberKind = {
|
|
13757
|
+
number: "number"
|
|
13758
|
+
};
|
|
13759
|
+
|
|
13706
13760
|
// src/autogenerated/schemas/operationOutputTextSingleKind.ts
|
|
13707
13761
|
var OperationOutputTextSingleKind = {
|
|
13708
13762
|
"text/single": "text/single"
|
|
@@ -13878,6 +13932,18 @@ var RevokeAccessControllerParamsDtoPrincipalType = {
|
|
|
13878
13932
|
group: "group"
|
|
13879
13933
|
};
|
|
13880
13934
|
|
|
13935
|
+
// src/autogenerated/schemas/seedV1ResponseKind.ts
|
|
13936
|
+
var SeedV1ResponseKind = {
|
|
13937
|
+
operation: "operation"
|
|
13938
|
+
};
|
|
13939
|
+
|
|
13940
|
+
// src/autogenerated/schemas/seedV1ResponseStatus.ts
|
|
13941
|
+
var SeedV1ResponseStatus = {
|
|
13942
|
+
pending: "pending",
|
|
13943
|
+
finished: "finished",
|
|
13944
|
+
failed: "failed"
|
|
13945
|
+
};
|
|
13946
|
+
|
|
13881
13947
|
// src/autogenerated/schemas/seedream3V1InputAspectRatio.ts
|
|
13882
13948
|
var Seedream3V1InputAspectRatio = {
|
|
13883
13949
|
custom: "custom",
|
|
@@ -13967,6 +14033,13 @@ var StartNaomiTrainingParamsDtoMixedPrecision = {
|
|
|
13967
14033
|
bf16: "bf16"
|
|
13968
14034
|
};
|
|
13969
14035
|
|
|
14036
|
+
// src/autogenerated/schemas/startTrainingParamsDtoModelType.ts
|
|
14037
|
+
var StartTrainingParamsDtoModelType = {
|
|
14038
|
+
flux: "flux",
|
|
14039
|
+
naomi: "naomi",
|
|
14040
|
+
custom: "custom"
|
|
14041
|
+
};
|
|
14042
|
+
|
|
13970
14043
|
// src/autogenerated/schemas/storageEntityKind.ts
|
|
13971
14044
|
var StorageEntityKind = {
|
|
13972
14045
|
storage: "storage"
|
|
@@ -14887,6 +14960,17 @@ var getCall = () => {
|
|
|
14887
14960
|
options
|
|
14888
14961
|
);
|
|
14889
14962
|
};
|
|
14963
|
+
const callControllerCallOperationsRunSeedV1V1 = (seedV1Request, options) => {
|
|
14964
|
+
return axiosMutator(
|
|
14965
|
+
{
|
|
14966
|
+
url: `/v1/call/operations.run.seed.v1`,
|
|
14967
|
+
method: "POST",
|
|
14968
|
+
headers: { "Content-Type": "application/json" },
|
|
14969
|
+
data: seedV1Request
|
|
14970
|
+
},
|
|
14971
|
+
options
|
|
14972
|
+
);
|
|
14973
|
+
};
|
|
14890
14974
|
const callControllerCallOperationsRunGoogleNanoBananaV1V1 = (googleNanoBananaV1Request, options) => {
|
|
14891
14975
|
return axiosMutator(
|
|
14892
14976
|
{
|
|
@@ -14898,6 +14982,17 @@ var getCall = () => {
|
|
|
14898
14982
|
options
|
|
14899
14983
|
);
|
|
14900
14984
|
};
|
|
14985
|
+
const callControllerCallOperationsRunLoraTrainingV1 = (loraTrainingRequest, options) => {
|
|
14986
|
+
return axiosMutator(
|
|
14987
|
+
{
|
|
14988
|
+
url: `/v1/call/operations.run.lora.training`,
|
|
14989
|
+
method: "POST",
|
|
14990
|
+
headers: { "Content-Type": "application/json" },
|
|
14991
|
+
data: loraTrainingRequest
|
|
14992
|
+
},
|
|
14993
|
+
options
|
|
14994
|
+
);
|
|
14995
|
+
};
|
|
14901
14996
|
const callControllerCallPosesGetV1 = (getPoseParamsDto, options) => {
|
|
14902
14997
|
return axiosMutator(
|
|
14903
14998
|
{
|
|
@@ -15052,7 +15147,7 @@ var getCall = () => {
|
|
|
15052
15147
|
options
|
|
15053
15148
|
);
|
|
15054
15149
|
};
|
|
15055
|
-
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 };
|
|
15150
|
+
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 };
|
|
15056
15151
|
};
|
|
15057
15152
|
|
|
15058
15153
|
// src/autogenerated/pipeline-methods.ts
|
|
@@ -15249,10 +15344,16 @@ var usePipelineDefinitions = () => {
|
|
|
15249
15344
|
"v1": api.callControllerCallOperationsRunLumaPhotonV1V1
|
|
15250
15345
|
}
|
|
15251
15346
|
},
|
|
15347
|
+
"seed": {
|
|
15348
|
+
"v1": api.callControllerCallOperationsRunSeedV1V1
|
|
15349
|
+
},
|
|
15252
15350
|
"google": {
|
|
15253
15351
|
"nano_banana": {
|
|
15254
15352
|
"v1": api.callControllerCallOperationsRunGoogleNanoBananaV1V1
|
|
15255
15353
|
}
|
|
15354
|
+
},
|
|
15355
|
+
"lora": {
|
|
15356
|
+
"training": api.callControllerCallOperationsRunLoraTrainingV1
|
|
15256
15357
|
}
|
|
15257
15358
|
}
|
|
15258
15359
|
},
|
|
@@ -15337,103 +15438,6 @@ var usePipelinesApi = () => {
|
|
|
15337
15438
|
return useApi(api);
|
|
15338
15439
|
};
|
|
15339
15440
|
|
|
15340
|
-
// src/autogenerated/lora/lora.ts
|
|
15341
|
-
var getLora = () => {
|
|
15342
|
-
const loraControllerStartFluxV1 = (startFluxTrainingParamsDto, options) => {
|
|
15343
|
-
return axiosMutator(
|
|
15344
|
-
{
|
|
15345
|
-
url: `/v1/lora/train/flux`,
|
|
15346
|
-
method: "POST",
|
|
15347
|
-
headers: { "Content-Type": "application/json" },
|
|
15348
|
-
data: startFluxTrainingParamsDto
|
|
15349
|
-
},
|
|
15350
|
-
options
|
|
15351
|
-
);
|
|
15352
|
-
};
|
|
15353
|
-
const loraControllerStartNaomiV1 = (startNaomiTrainingParamsDto, options) => {
|
|
15354
|
-
return axiosMutator(
|
|
15355
|
-
{
|
|
15356
|
-
url: `/v1/lora/train/naomi`,
|
|
15357
|
-
method: "POST",
|
|
15358
|
-
headers: { "Content-Type": "application/json" },
|
|
15359
|
-
data: startNaomiTrainingParamsDto
|
|
15360
|
-
},
|
|
15361
|
-
options
|
|
15362
|
-
);
|
|
15363
|
-
};
|
|
15364
|
-
const loraControllerStartGeneralV1 = (startTrainingParamsDto, options) => {
|
|
15365
|
-
return axiosMutator(
|
|
15366
|
-
{
|
|
15367
|
-
url: `/v1/lora/train`,
|
|
15368
|
-
method: "POST",
|
|
15369
|
-
headers: { "Content-Type": "application/json" },
|
|
15370
|
-
data: startTrainingParamsDto
|
|
15371
|
-
},
|
|
15372
|
-
options
|
|
15373
|
-
);
|
|
15374
|
-
};
|
|
15375
|
-
const loraControllerListV1 = (params, options) => {
|
|
15376
|
-
return axiosMutator(
|
|
15377
|
-
{
|
|
15378
|
-
url: `/v1/lora`,
|
|
15379
|
-
method: "GET",
|
|
15380
|
-
params
|
|
15381
|
-
},
|
|
15382
|
-
options
|
|
15383
|
-
);
|
|
15384
|
-
};
|
|
15385
|
-
const loraControllerGetV1 = (id, options) => {
|
|
15386
|
-
return axiosMutator(
|
|
15387
|
-
{
|
|
15388
|
-
url: `/v1/lora/${id}`,
|
|
15389
|
-
method: "GET"
|
|
15390
|
-
},
|
|
15391
|
-
options
|
|
15392
|
-
);
|
|
15393
|
-
};
|
|
15394
|
-
const loraControllerTrainingsWebhookV1 = (loraWebhookDto, options) => {
|
|
15395
|
-
return axiosMutator(
|
|
15396
|
-
{
|
|
15397
|
-
url: `/v1/lora/trainings/webhook`,
|
|
15398
|
-
method: "POST",
|
|
15399
|
-
headers: { "Content-Type": "application/json" },
|
|
15400
|
-
data: loraWebhookDto
|
|
15401
|
-
},
|
|
15402
|
-
options
|
|
15403
|
-
);
|
|
15404
|
-
};
|
|
15405
|
-
return { loraControllerStartFluxV1, loraControllerStartNaomiV1, loraControllerStartGeneralV1, loraControllerListV1, loraControllerGetV1, loraControllerTrainingsWebhookV1 };
|
|
15406
|
-
};
|
|
15407
|
-
|
|
15408
|
-
// src/sdk/api-definitions/lora.ts
|
|
15409
|
-
var waitLoraStatusChange = wrapCustomMethod(async function(lora, timeoutMs = 12e4) {
|
|
15410
|
-
const sdk = this;
|
|
15411
|
-
const initialStatus = lora.status;
|
|
15412
|
-
const deadline = Date.now() + timeoutMs;
|
|
15413
|
-
const delay = 3e3;
|
|
15414
|
-
const sleep = (ms) => new Promise((resolve) => setTimeout(resolve, ms));
|
|
15415
|
-
while (Date.now() < deadline) {
|
|
15416
|
-
const current = await sdk.lora.get(lora.id);
|
|
15417
|
-
if (!current) throw new Error("LoRA not found");
|
|
15418
|
-
if (current.status !== initialStatus || ["succeeded", "failed", "canceled"].includes(current.status)) {
|
|
15419
|
-
return current;
|
|
15420
|
-
}
|
|
15421
|
-
await sleep(delay);
|
|
15422
|
-
}
|
|
15423
|
-
throw new Error("LoRA wait timed out");
|
|
15424
|
-
});
|
|
15425
|
-
var useLoraApi = () => {
|
|
15426
|
-
const hautechApi = getLora();
|
|
15427
|
-
return useApi({
|
|
15428
|
-
start: hautechApi.loraControllerStartGeneralV1,
|
|
15429
|
-
startFlux: hautechApi.loraControllerStartFluxV1,
|
|
15430
|
-
startNaomi: hautechApi.loraControllerStartNaomiV1,
|
|
15431
|
-
list: hautechApi.loraControllerListV1,
|
|
15432
|
-
get: hautechApi.loraControllerGetV1,
|
|
15433
|
-
wait: waitLoraStatusChange
|
|
15434
|
-
});
|
|
15435
|
-
};
|
|
15436
|
-
|
|
15437
15441
|
// src/autogenerated/upload/upload.ts
|
|
15438
15442
|
var getUpload = () => {
|
|
15439
15443
|
const uploadControllerInitUploadV1 = (initializeGenericUploadParamsDto, options) => {
|
|
@@ -15628,7 +15632,6 @@ var apiDefinitions = {
|
|
|
15628
15632
|
balances: useBalancesApi(),
|
|
15629
15633
|
access: useAccessApi(),
|
|
15630
15634
|
pipelines: usePipelinesApi(),
|
|
15631
|
-
lora: useLoraApi(),
|
|
15632
15635
|
upload: useUploadApi()
|
|
15633
15636
|
};
|
|
15634
15637
|
var pipelineDefinitions = usePipelineDefinitions();
|
|
@@ -15917,6 +15920,9 @@ var createTokenSigner = (options) => {
|
|
|
15917
15920
|
LoraControllerListV1OrderBy,
|
|
15918
15921
|
LoraControllerListV1Status,
|
|
15919
15922
|
LoraDtoStatus,
|
|
15923
|
+
LoraTrainingOutputKind,
|
|
15924
|
+
LoraTrainingResponseKind,
|
|
15925
|
+
LoraTrainingResponseStatus,
|
|
15920
15926
|
LoraWebhookDtoStatus,
|
|
15921
15927
|
LumaPhotonV1InputAspectRatio,
|
|
15922
15928
|
LumaPhotonV1ResponseKind,
|
|
@@ -15942,6 +15948,7 @@ var createTokenSigner = (options) => {
|
|
|
15942
15948
|
OperationOutputImageMultipleKind,
|
|
15943
15949
|
OperationOutputImageSingleKind,
|
|
15944
15950
|
OperationOutputJSONKind,
|
|
15951
|
+
OperationOutputNumberKind,
|
|
15945
15952
|
OperationOutputTextSingleKind,
|
|
15946
15953
|
OperationOutputVideoSingleKind,
|
|
15947
15954
|
OperationsControllerListOperationsV1OrderBy,
|
|
@@ -15967,6 +15974,8 @@ var createTokenSigner = (options) => {
|
|
|
15967
15974
|
ResourceEntityKind,
|
|
15968
15975
|
RevokeAccessControllerParamsDtoAccess,
|
|
15969
15976
|
RevokeAccessControllerParamsDtoPrincipalType,
|
|
15977
|
+
SeedV1ResponseKind,
|
|
15978
|
+
SeedV1ResponseStatus,
|
|
15970
15979
|
Seedream3V1InputAspectRatio,
|
|
15971
15980
|
Seedream3V1InputSize,
|
|
15972
15981
|
Seedream3V1ResponseKind,
|
|
@@ -15980,6 +15989,7 @@ var createTokenSigner = (options) => {
|
|
|
15980
15989
|
StacksControllerListStacksV1OrderBy,
|
|
15981
15990
|
StartNaomiTrainingParamsDtoLrScheduler,
|
|
15982
15991
|
StartNaomiTrainingParamsDtoMixedPrecision,
|
|
15992
|
+
StartTrainingParamsDtoModelType,
|
|
15983
15993
|
StorageEntityKind,
|
|
15984
15994
|
StringsTemplateV1ResponseKind,
|
|
15985
15995
|
StringsTemplateV1ResponseStatus,
|