@civitai/client 0.2.0-beta.33 → 0.2.0-beta.35
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.
|
@@ -94,6 +94,9 @@ import type {
|
|
|
94
94
|
GetResourceData,
|
|
95
95
|
GetResourceResponses,
|
|
96
96
|
GetResourceErrors,
|
|
97
|
+
GetStreamingBlobData,
|
|
98
|
+
GetStreamingBlobResponses,
|
|
99
|
+
GetStreamingBlobErrors,
|
|
97
100
|
QueryWorkflowsData,
|
|
98
101
|
QueryWorkflowsResponses,
|
|
99
102
|
QueryWorkflowsErrors,
|
|
@@ -504,6 +507,14 @@ export declare const getResource: <ThrowOnError extends boolean = false>(
|
|
|
504
507
|
ThrowOnError,
|
|
505
508
|
'fields'
|
|
506
509
|
>;
|
|
510
|
+
export declare const getStreamingBlob: <ThrowOnError extends boolean = false>(
|
|
511
|
+
options: Options<GetStreamingBlobData, ThrowOnError>
|
|
512
|
+
) => import('./client').RequestResult<
|
|
513
|
+
GetStreamingBlobResponses,
|
|
514
|
+
GetStreamingBlobErrors,
|
|
515
|
+
ThrowOnError,
|
|
516
|
+
'fields'
|
|
517
|
+
>;
|
|
507
518
|
/**
|
|
508
519
|
* Query workflows
|
|
509
520
|
*/
|
|
@@ -626,6 +626,19 @@ export const getResource = (options) => {
|
|
|
626
626
|
...options,
|
|
627
627
|
});
|
|
628
628
|
};
|
|
629
|
+
export const getStreamingBlob = (options) => {
|
|
630
|
+
var _a;
|
|
631
|
+
return ((_a = options.client) !== null && _a !== void 0 ? _a : _heyApiClient).get({
|
|
632
|
+
security: [
|
|
633
|
+
{
|
|
634
|
+
scheme: 'bearer',
|
|
635
|
+
type: 'http',
|
|
636
|
+
},
|
|
637
|
+
],
|
|
638
|
+
url: '/v2/consumer/streaming-blobs/{blobKey}',
|
|
639
|
+
...options,
|
|
640
|
+
});
|
|
641
|
+
};
|
|
629
642
|
/**
|
|
630
643
|
* Query workflows
|
|
631
644
|
*/
|
|
@@ -24,6 +24,10 @@ export type AiToolkitTrainingInput = TrainingInput & {
|
|
|
24
24
|
* Note: ai-toolkit uses steps internally, calculated based on epochs, image count, and internal parameters.
|
|
25
25
|
*/
|
|
26
26
|
epochs?: number;
|
|
27
|
+
/**
|
|
28
|
+
* Number of repeats per image. This is used to calculate the total number of steps for training and can affect the training time and cost.
|
|
29
|
+
*/
|
|
30
|
+
numberOfRepeats?: number | null;
|
|
27
31
|
/**
|
|
28
32
|
* Sets the learning rate for the model. This is the learning rate when performing additional learning on each attention block (and other blocks depending on the setting).
|
|
29
33
|
*/
|
|
@@ -242,6 +246,9 @@ export type AgeClassifierLabel = {
|
|
|
242
246
|
age: string;
|
|
243
247
|
isMinor: boolean;
|
|
244
248
|
boundingBox: Array<number>;
|
|
249
|
+
topK?: {
|
|
250
|
+
[key: string]: number;
|
|
251
|
+
} | null;
|
|
245
252
|
};
|
|
246
253
|
/**
|
|
247
254
|
* Represents a single age detection in an image.
|
|
@@ -2642,7 +2649,9 @@ export type Qwen20bVariantImageGenInput = Qwen20bImageGenInput & {
|
|
|
2642
2649
|
/**
|
|
2643
2650
|
* AI Toolkit training for Qwen Image models
|
|
2644
2651
|
*/
|
|
2645
|
-
export type QwenAiToolkitTrainingInput = AiToolkitTrainingInput & {
|
|
2652
|
+
export type QwenAiToolkitTrainingInput = AiToolkitTrainingInput & {
|
|
2653
|
+
version?: 'latest' | '2509' | '2512';
|
|
2654
|
+
} & {
|
|
2646
2655
|
ecosystem: 'qwen';
|
|
2647
2656
|
};
|
|
2648
2657
|
export type QwenImageGenInput = SdCppImageGenInput & {
|
|
@@ -2901,6 +2910,7 @@ export declare const SeedreamVersion: {
|
|
|
2901
2910
|
readonly V3: 'v3';
|
|
2902
2911
|
readonly V4: 'v4';
|
|
2903
2912
|
readonly V4_5: 'v4.5';
|
|
2913
|
+
readonly V5_0_LITE: 'v5.0-lite';
|
|
2904
2914
|
};
|
|
2905
2915
|
export type SeedreamVersion = (typeof SeedreamVersion)[keyof typeof SeedreamVersion];
|
|
2906
2916
|
/**
|
|
@@ -5519,6 +5529,31 @@ export type GetResourceResponses = {
|
|
|
5519
5529
|
200: ResourceInfo;
|
|
5520
5530
|
};
|
|
5521
5531
|
export type GetResourceResponse = GetResourceResponses[keyof GetResourceResponses];
|
|
5532
|
+
export type GetStreamingBlobData = {
|
|
5533
|
+
body?: never;
|
|
5534
|
+
path: {
|
|
5535
|
+
blobKey: string;
|
|
5536
|
+
};
|
|
5537
|
+
query?: never;
|
|
5538
|
+
url: '/v2/consumer/streaming-blobs/{blobKey}';
|
|
5539
|
+
};
|
|
5540
|
+
export type GetStreamingBlobErrors = {
|
|
5541
|
+
/**
|
|
5542
|
+
* Unauthorized
|
|
5543
|
+
*/
|
|
5544
|
+
401: ProblemDetails;
|
|
5545
|
+
/**
|
|
5546
|
+
* Not Found
|
|
5547
|
+
*/
|
|
5548
|
+
404: ProblemDetails;
|
|
5549
|
+
};
|
|
5550
|
+
export type GetStreamingBlobError = GetStreamingBlobErrors[keyof GetStreamingBlobErrors];
|
|
5551
|
+
export type GetStreamingBlobResponses = {
|
|
5552
|
+
/**
|
|
5553
|
+
* OK
|
|
5554
|
+
*/
|
|
5555
|
+
200: unknown;
|
|
5556
|
+
};
|
|
5522
5557
|
export type QueryWorkflowsData = {
|
|
5523
5558
|
body?: never;
|
|
5524
5559
|
headers?: {
|