@civitai/client 0.1.9-beta.13 → 0.1.9-beta.14
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.
|
@@ -10,7 +10,7 @@ export function createCivitaiClient(config) {
|
|
|
10
10
|
},
|
|
11
11
|
});
|
|
12
12
|
client.interceptors.response.use(async (response) => {
|
|
13
|
-
if (!response.ok
|
|
13
|
+
if (!response.ok) {
|
|
14
14
|
const error = { status: response.status, detail: response.statusText };
|
|
15
15
|
const newResponse = new Response(JSON.stringify(error), {
|
|
16
16
|
status: response.status,
|
|
@@ -2453,7 +2453,7 @@ export declare const $TextToImageInput: {
|
|
|
2453
2453
|
readonly default: 7.5;
|
|
2454
2454
|
};
|
|
2455
2455
|
readonly width: {
|
|
2456
|
-
readonly maximum:
|
|
2456
|
+
readonly maximum: 4084;
|
|
2457
2457
|
readonly minimum: 64;
|
|
2458
2458
|
readonly type: 'integer';
|
|
2459
2459
|
readonly description: 'The desired image width in pixels.';
|
|
@@ -2461,7 +2461,7 @@ export declare const $TextToImageInput: {
|
|
|
2461
2461
|
readonly default: 512;
|
|
2462
2462
|
};
|
|
2463
2463
|
readonly height: {
|
|
2464
|
-
readonly maximum:
|
|
2464
|
+
readonly maximum: 4084;
|
|
2465
2465
|
readonly minimum: 64;
|
|
2466
2466
|
readonly type: 'integer';
|
|
2467
2467
|
readonly description: 'The desired image height in pixels.';
|
|
@@ -3400,8 +3400,12 @@ export declare const $WorkerImageImageToImageCapabilities: {
|
|
|
3400
3400
|
export declare const $WorkerImageResourceTrainingCapabilities: {
|
|
3401
3401
|
readonly type: 'object';
|
|
3402
3402
|
readonly properties: {
|
|
3403
|
-
readonly
|
|
3404
|
-
readonly
|
|
3403
|
+
readonly engines: {
|
|
3404
|
+
readonly uniqueItems: true;
|
|
3405
|
+
readonly type: 'array';
|
|
3406
|
+
readonly items: {
|
|
3407
|
+
readonly type: 'string';
|
|
3408
|
+
};
|
|
3405
3409
|
};
|
|
3406
3410
|
};
|
|
3407
3411
|
readonly additionalProperties: false;
|
|
@@ -2456,7 +2456,7 @@ export const $TextToImageInput = {
|
|
|
2456
2456
|
default: 7.5,
|
|
2457
2457
|
},
|
|
2458
2458
|
width: {
|
|
2459
|
-
maximum:
|
|
2459
|
+
maximum: 4084,
|
|
2460
2460
|
minimum: 64,
|
|
2461
2461
|
type: 'integer',
|
|
2462
2462
|
description: 'The desired image width in pixels.',
|
|
@@ -2464,7 +2464,7 @@ export const $TextToImageInput = {
|
|
|
2464
2464
|
default: 512,
|
|
2465
2465
|
},
|
|
2466
2466
|
height: {
|
|
2467
|
-
maximum:
|
|
2467
|
+
maximum: 4084,
|
|
2468
2468
|
minimum: 64,
|
|
2469
2469
|
type: 'integer',
|
|
2470
2470
|
description: 'The desired image height in pixels.',
|
|
@@ -3398,8 +3398,12 @@ export const $WorkerImageImageToImageCapabilities = {
|
|
|
3398
3398
|
export const $WorkerImageResourceTrainingCapabilities = {
|
|
3399
3399
|
type: 'object',
|
|
3400
3400
|
properties: {
|
|
3401
|
-
|
|
3402
|
-
|
|
3401
|
+
engines: {
|
|
3402
|
+
uniqueItems: true,
|
|
3403
|
+
type: 'array',
|
|
3404
|
+
items: {
|
|
3405
|
+
type: 'string',
|
|
3406
|
+
},
|
|
3403
3407
|
},
|
|
3404
3408
|
},
|
|
3405
3409
|
additionalProperties: false,
|
|
@@ -1744,7 +1744,7 @@ export type WorkerImageImageToImageCapabilities = {
|
|
|
1744
1744
|
* Details of a worker's image resource training capabilities.
|
|
1745
1745
|
*/
|
|
1746
1746
|
export type WorkerImageResourceTrainingCapabilities = {
|
|
1747
|
-
|
|
1747
|
+
engines?: Array<string>;
|
|
1748
1748
|
};
|
|
1749
1749
|
/**
|
|
1750
1750
|
* Details of a worker's text to image capabilities.
|