@wzyjs/utils 0.3.27 → 0.3.29
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/common/ai/index.d.ts +1 -0
- package/dist/common/ai/keling/video/index.d.ts +1 -1
- package/dist/common/ai/keling/video/utils.d.ts +3 -0
- package/dist/common/ai/openai/index.d.ts +11 -0
- package/dist/node.cjs.js +251 -26192
- package/dist/node.d.ts +1 -0
- package/dist/node.esm.js +156 -26053
- package/dist/web.cjs.js +1288 -832
- package/dist/web.esm.js +1288 -832
- package/package.json +2 -2
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
export declare const setApiAddress: (apiAddress?: string, uploadApiAddress?: string) => void;
|
|
2
|
+
export declare const buildApiUrl: (path: string) => string;
|
|
3
|
+
export declare const buildUploadApiUrl: (path: string) => string;
|
|
1
4
|
export declare const uploadImage: (imageUrl: string) => Promise<any>;
|
|
2
5
|
export declare const sbumit: (imageUrl: string, prompt?: string) => Promise<any>;
|
|
3
6
|
export declare const calculateProgress: (taskData: any) => number;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export interface OpenAIImageGenerateParams {
|
|
2
|
+
apiAddress: string;
|
|
3
|
+
apiKey: string;
|
|
4
|
+
model: string;
|
|
5
|
+
prompt: string;
|
|
6
|
+
}
|
|
7
|
+
export interface OpenAIImageGenerateResult {
|
|
8
|
+
fileBase64: string;
|
|
9
|
+
format: string;
|
|
10
|
+
}
|
|
11
|
+
export declare const generateImage: (params: OpenAIImageGenerateParams) => Promise<OpenAIImageGenerateResult>;
|