@hautechai/sdk 2.8.0 → 2.9.1
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 +120 -4
- package/dist/index.d.ts +120 -4
- package/dist/index.js +54 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +51 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -10467,6 +10467,7 @@ __export(index_exports, {
|
|
|
10467
10467
|
GPTV3WebSearchToolDtoType: () => GPTV3WebSearchToolDtoType,
|
|
10468
10468
|
GetImageRepresentationParamsDtoType: () => GetImageRepresentationParamsDtoType,
|
|
10469
10469
|
GiseleVtonV1InputCategory: () => GiseleVtonV1InputCategory,
|
|
10470
|
+
GoogleNanoBananaV1InputOutputFormat: () => GoogleNanoBananaV1InputOutputFormat,
|
|
10470
10471
|
GoogleNanoBananaV1ResponseKind: () => GoogleNanoBananaV1ResponseKind,
|
|
10471
10472
|
GoogleNanoBananaV1ResponseStatus: () => GoogleNanoBananaV1ResponseStatus,
|
|
10472
10473
|
GptV1ResponseKind: () => GptV1ResponseKind,
|
|
@@ -10569,6 +10570,8 @@ __export(index_exports, {
|
|
|
10569
10570
|
SelfAccountDtoType: () => SelfAccountDtoType,
|
|
10570
10571
|
StackEntityKind: () => StackEntityKind,
|
|
10571
10572
|
StacksControllerListStacksV1OrderBy: () => StacksControllerListStacksV1OrderBy,
|
|
10573
|
+
StartNaomiTrainingParamsDtoLrScheduler: () => StartNaomiTrainingParamsDtoLrScheduler,
|
|
10574
|
+
StartNaomiTrainingParamsDtoMixedPrecision: () => StartNaomiTrainingParamsDtoMixedPrecision,
|
|
10572
10575
|
StorageEntityKind: () => StorageEntityKind,
|
|
10573
10576
|
StringsTemplateV1ResponseKind: () => StringsTemplateV1ResponseKind,
|
|
10574
10577
|
StringsTemplateV1ResponseStatus: () => StringsTemplateV1ResponseStatus,
|
|
@@ -13206,6 +13209,12 @@ var GiseleVtonV1InputCategory = {
|
|
|
13206
13209
|
upper_body: "upper_body"
|
|
13207
13210
|
};
|
|
13208
13211
|
|
|
13212
|
+
// src/autogenerated/schemas/googleNanoBananaV1InputOutputFormat.ts
|
|
13213
|
+
var GoogleNanoBananaV1InputOutputFormat = {
|
|
13214
|
+
jpg: "jpg",
|
|
13215
|
+
png: "png"
|
|
13216
|
+
};
|
|
13217
|
+
|
|
13209
13218
|
// src/autogenerated/schemas/googleNanoBananaV1ResponseKind.ts
|
|
13210
13219
|
var GoogleNanoBananaV1ResponseKind = {
|
|
13211
13220
|
operation: "operation"
|
|
@@ -13944,6 +13953,20 @@ var StacksControllerListStacksV1OrderBy = {
|
|
|
13944
13953
|
updatedAt_DESC: "updatedAt_DESC"
|
|
13945
13954
|
};
|
|
13946
13955
|
|
|
13956
|
+
// src/autogenerated/schemas/startNaomiTrainingParamsDtoLrScheduler.ts
|
|
13957
|
+
var StartNaomiTrainingParamsDtoLrScheduler = {
|
|
13958
|
+
linear: "linear",
|
|
13959
|
+
cosine: "cosine",
|
|
13960
|
+
polynomial: "polynomial"
|
|
13961
|
+
};
|
|
13962
|
+
|
|
13963
|
+
// src/autogenerated/schemas/startNaomiTrainingParamsDtoMixedPrecision.ts
|
|
13964
|
+
var StartNaomiTrainingParamsDtoMixedPrecision = {
|
|
13965
|
+
no: "no",
|
|
13966
|
+
fp16: "fp16",
|
|
13967
|
+
bf16: "bf16"
|
|
13968
|
+
};
|
|
13969
|
+
|
|
13947
13970
|
// src/autogenerated/schemas/storageEntityKind.ts
|
|
13948
13971
|
var StorageEntityKind = {
|
|
13949
13972
|
storage: "storage"
|
|
@@ -15316,13 +15339,35 @@ var usePipelinesApi = () => {
|
|
|
15316
15339
|
|
|
15317
15340
|
// src/autogenerated/lora/lora.ts
|
|
15318
15341
|
var getLora = () => {
|
|
15319
|
-
const
|
|
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) => {
|
|
15320
15365
|
return axiosMutator(
|
|
15321
15366
|
{
|
|
15322
15367
|
url: `/v1/lora/train`,
|
|
15323
15368
|
method: "POST",
|
|
15324
15369
|
headers: { "Content-Type": "application/json" },
|
|
15325
|
-
data:
|
|
15370
|
+
data: startTrainingParamsDto
|
|
15326
15371
|
},
|
|
15327
15372
|
options
|
|
15328
15373
|
);
|
|
@@ -15357,7 +15402,7 @@ var getLora = () => {
|
|
|
15357
15402
|
options
|
|
15358
15403
|
);
|
|
15359
15404
|
};
|
|
15360
|
-
return {
|
|
15405
|
+
return { loraControllerStartFluxV1, loraControllerStartNaomiV1, loraControllerStartGeneralV1, loraControllerListV1, loraControllerGetV1, loraControllerTrainingsWebhookV1 };
|
|
15361
15406
|
};
|
|
15362
15407
|
|
|
15363
15408
|
// src/sdk/api-definitions/lora.ts
|
|
@@ -15380,7 +15425,9 @@ var waitLoraStatusChange = wrapCustomMethod(async function(lora, timeoutMs = 12e
|
|
|
15380
15425
|
var useLoraApi = () => {
|
|
15381
15426
|
const hautechApi = getLora();
|
|
15382
15427
|
return useApi({
|
|
15383
|
-
start: hautechApi.
|
|
15428
|
+
start: hautechApi.loraControllerStartGeneralV1,
|
|
15429
|
+
startFlux: hautechApi.loraControllerStartFluxV1,
|
|
15430
|
+
startNaomi: hautechApi.loraControllerStartNaomiV1,
|
|
15384
15431
|
list: hautechApi.loraControllerListV1,
|
|
15385
15432
|
get: hautechApi.loraControllerGetV1,
|
|
15386
15433
|
wait: waitLoraStatusChange
|
|
@@ -15828,6 +15875,7 @@ var createTokenSigner = (options) => {
|
|
|
15828
15875
|
GPTV3WebSearchToolDtoType,
|
|
15829
15876
|
GetImageRepresentationParamsDtoType,
|
|
15830
15877
|
GiseleVtonV1InputCategory,
|
|
15878
|
+
GoogleNanoBananaV1InputOutputFormat,
|
|
15831
15879
|
GoogleNanoBananaV1ResponseKind,
|
|
15832
15880
|
GoogleNanoBananaV1ResponseStatus,
|
|
15833
15881
|
GptV1ResponseKind,
|
|
@@ -15930,6 +15978,8 @@ var createTokenSigner = (options) => {
|
|
|
15930
15978
|
SelfAccountDtoType,
|
|
15931
15979
|
StackEntityKind,
|
|
15932
15980
|
StacksControllerListStacksV1OrderBy,
|
|
15981
|
+
StartNaomiTrainingParamsDtoLrScheduler,
|
|
15982
|
+
StartNaomiTrainingParamsDtoMixedPrecision,
|
|
15933
15983
|
StorageEntityKind,
|
|
15934
15984
|
StringsTemplateV1ResponseKind,
|
|
15935
15985
|
StringsTemplateV1ResponseStatus,
|