@squidcloud/client 1.0.206 → 1.0.207
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.
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/** The supported AI model names. */
|
|
2
2
|
export declare const AI_MODEL_NAMES: readonly ["gpt-3.5-turbo", "gpt-3.5-turbo-1106", "gpt-4", "claude-3-opus-20240229", "claude-3-sonnet-20240229", "claude-3-haiku-20240307", "gpt-4-turbo-preview"];
|
|
3
3
|
/** The supported AI image generation model names. */
|
|
4
|
-
export declare const AI_IMAGE_GENERATION_MODEL_NAMES: readonly ["dall-e-3"];
|
|
4
|
+
export declare const AI_IMAGE_GENERATION_MODEL_NAMES: readonly ["dall-e-3", "stable-diffusion-core"];
|
|
5
5
|
export type AiModelName = (typeof AI_MODEL_NAMES)[number];
|
|
6
6
|
export type AiImageGenerationModelName = (typeof AI_IMAGE_GENERATION_MODEL_NAMES)[number];
|
|
7
|
-
export type AiGenerateImageOptions = DallEOptions;
|
|
7
|
+
export type AiGenerateImageOptions = DallEOptions | StableDiffusionCoreOptions;
|
|
8
8
|
export interface BaseAiGenerateImageOptions {
|
|
9
9
|
modelName: AiImageGenerationModelName;
|
|
10
10
|
}
|
|
@@ -14,6 +14,14 @@ export interface DallEOptions extends BaseAiGenerateImageOptions {
|
|
|
14
14
|
size?: '1024x1024' | '1792x1024' | '1024x1792';
|
|
15
15
|
numberOfImagesToGenerate?: 1;
|
|
16
16
|
}
|
|
17
|
+
export interface StableDiffusionCoreOptions extends BaseAiGenerateImageOptions {
|
|
18
|
+
modelName: 'stable-diffusion-core';
|
|
19
|
+
aspectRatio?: '16:9' | '1:1' | '21:9' | '2:3' | '3:2' | '4:5' | '5:4' | '9:16' | '9:21';
|
|
20
|
+
negativePrompt?: string;
|
|
21
|
+
seed?: number;
|
|
22
|
+
stylePreset?: 'analog-film' | 'anime' | 'cinematic' | 'comic-book' | 'digital-art' | 'enhance' | 'fantasy-art' | 'isometric' | 'line-art' | 'low-poly' | 'modeling-compound' | 'neon-punk' | 'origami' | 'photographic' | 'pixel-art' | 'tile-texture';
|
|
23
|
+
outputFormat?: 'jpeg' | 'png' | 'webp';
|
|
24
|
+
}
|
|
17
25
|
/** The possible sources for the LLM provider API key. */
|
|
18
26
|
export type ApiKeySource = 'user' | 'system';
|
|
19
27
|
export type OpenAiResponseFormat = 'text' | 'json_object';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { HttpStatus } from '../public-types/http-status.enum';
|
|
2
|
-
export type StatusCode = HttpStatus.BAD_REQUEST | HttpStatus.NOT_FOUND | HttpStatus.FORBIDDEN | HttpStatus.UNAUTHORIZED | HttpStatus.CONFLICT;
|
|
2
|
+
export type StatusCode = HttpStatus.BAD_REQUEST | HttpStatus.NOT_FOUND | HttpStatus.FORBIDDEN | HttpStatus.UNAUTHORIZED | HttpStatus.CONFLICT | HttpStatus.INTERNAL_SERVER_ERROR;
|
|
3
3
|
export declare class ValidationError extends Error {
|
|
4
4
|
readonly statusCode: StatusCode;
|
|
5
5
|
readonly details?: any;
|