@ai-sdk/prodia 2.0.51 → 2.0.53

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/CHANGELOG.md CHANGED
@@ -1,5 +1,22 @@
1
1
  # @ai-sdk/prodia
2
2
 
3
+ ## 2.0.53
4
+
5
+ ### Patch Changes
6
+
7
+ - ede5b89: chore: migrate package builds from tsup to tsdown
8
+ - Updated dependencies [ede5b89]
9
+ - @ai-sdk/provider@4.0.20
10
+ - @ai-sdk/provider-utils@5.0.52
11
+
12
+ ## 2.0.52
13
+
14
+ ### Patch Changes
15
+
16
+ - c2511c1: fix: use standards-compliant User-Agent header
17
+ - Updated dependencies [c2511c1]
18
+ - @ai-sdk/provider-utils@5.0.51
19
+
3
20
  ## 2.0.51
4
21
 
5
22
  ### Patch Changes
package/dist/index.d.ts CHANGED
@@ -1,90 +1,97 @@
1
- import * as _ai_sdk_provider_utils from '@ai-sdk/provider-utils';
2
- import { InferSchema, FetchFunction } from '@ai-sdk/provider-utils';
3
- import { ProviderV4, LanguageModelV4, ImageModelV4, Experimental_VideoModelV4 } from '@ai-sdk/provider';
4
-
5
- declare const prodiaImageModelOptionsSchema: _ai_sdk_provider_utils.LazySchema<{
6
- steps?: number | undefined;
7
- width?: number | undefined;
8
- height?: number | undefined;
9
- stylePreset?: "3d-model" | "analog-film" | "anime" | "cinematic" | "comic-book" | "digital-art" | "enhance" | "fantasy-art" | "isometric" | "line-art" | "low-poly" | "neon-punk" | "origami" | "photographic" | "pixel-art" | "texture" | "craft-clay" | undefined;
10
- loras?: string[] | undefined;
11
- progressive?: boolean | undefined;
1
+ import { Experimental_VideoModelV4, ImageModelV4, LanguageModelV4, ProviderV4 } from "@ai-sdk/provider";
2
+ import { FetchFunction, InferSchema } from "@ai-sdk/provider-utils";
3
+ //#region src/prodia-image-model-options.d.ts
4
+ declare const prodiaImageModelOptionsSchema: import("@ai-sdk/provider-utils").LazySchema<{
5
+ steps?: number | undefined;
6
+ width?: number | undefined;
7
+ height?: number | undefined;
8
+ stylePreset?: "3d-model" | "analog-film" | "anime" | "cinematic" | "comic-book" | "digital-art" | "enhance" | "fantasy-art" | "isometric" | "line-art" | "low-poly" | "neon-punk" | "origami" | "photographic" | "pixel-art" | "texture" | "craft-clay" | undefined;
9
+ loras?: string[] | undefined;
10
+ progressive?: boolean | undefined;
12
11
  }>;
13
12
  type ProdiaImageModelOptions = InferSchema<typeof prodiaImageModelOptionsSchema>;
14
-
13
+ //#endregion
14
+ //#region src/prodia-image-settings.d.ts
15
15
  /**
16
16
  * Prodia job types for image generation.
17
17
  */
18
18
  type ProdiaImageModelId = 'inference.flux-fast.schnell.txt2img.v2' | 'inference.flux.schnell.txt2img.v2' | (string & {});
19
-
20
- declare const prodiaLanguageModelOptionsSchema: _ai_sdk_provider_utils.LazySchema<{
21
- aspectRatio?: "1:1" | "2:3" | "3:2" | "4:5" | "5:4" | "4:7" | "7:4" | "9:16" | "16:9" | "9:21" | "21:9" | undefined;
19
+ //#endregion
20
+ //#region src/prodia-language-model-options.d.ts
21
+ declare const prodiaLanguageModelOptionsSchema: import("@ai-sdk/provider-utils").LazySchema<{
22
+ aspectRatio?: "1:1" | "2:3" | "3:2" | "4:5" | "5:4" | "4:7" | "7:4" | "9:16" | "16:9" | "9:21" | "21:9" | undefined;
22
23
  }>;
23
24
  type ProdiaLanguageModelOptions = InferSchema<typeof prodiaLanguageModelOptionsSchema>;
24
-
25
+ //#endregion
26
+ //#region src/prodia-language-model-settings.d.ts
25
27
  /**
26
28
  * Prodia job types for language model (multimodal img2img).
27
29
  */
28
30
  type ProdiaLanguageModelId = 'inference.nano-banana.img2img.v2' | (string & {});
29
-
30
- declare const prodiaVideoModelOptionsSchema: _ai_sdk_provider_utils.LazySchema<{
31
- resolution?: string | undefined;
31
+ //#endregion
32
+ //#region src/prodia-video-model-options.d.ts
33
+ declare const prodiaVideoModelOptionsSchema: import("@ai-sdk/provider-utils").LazySchema<{
34
+ resolution?: string | undefined;
32
35
  }>;
33
36
  type ProdiaVideoModelOptions = InferSchema<typeof prodiaVideoModelOptionsSchema>;
34
-
37
+ //#endregion
38
+ //#region src/prodia-video-model-settings.d.ts
35
39
  /**
36
40
  * Prodia job types for video generation.
37
41
  */
38
42
  type ProdiaVideoModelId = 'inference.wan2-2.lightning.txt2vid.v0' | 'inference.wan2-2.lightning.img2vid.v0' | (string & {});
39
-
43
+ //#endregion
44
+ //#region src/prodia-provider.d.ts
40
45
  interface ProdiaProviderSettings {
41
- /**
42
- * Prodia API key. Default value is taken from the `PRODIA_TOKEN` environment variable.
43
- */
44
- apiKey?: string;
45
- /**
46
- * Base URL for the API calls. Defaults to `https://inference.prodia.com/v2`.
47
- */
48
- baseURL?: string;
49
- /**
50
- * Custom headers to include in the requests.
51
- */
52
- headers?: Record<string, string>;
53
- /**
54
- * Custom fetch implementation. You can use it as a middleware to intercept
55
- * requests, or to provide a custom fetch implementation for e.g. testing.
56
- */
57
- fetch?: FetchFunction;
46
+ /**
47
+ * Prodia API key. Default value is taken from the `PRODIA_TOKEN` environment variable.
48
+ */
49
+ apiKey?: string;
50
+ /**
51
+ * Base URL for the API calls. Defaults to `https://inference.prodia.com/v2`.
52
+ */
53
+ baseURL?: string;
54
+ /**
55
+ * Custom headers to include in the requests.
56
+ */
57
+ headers?: Record<string, string>;
58
+ /**
59
+ * Custom fetch implementation. You can use it as a middleware to intercept
60
+ * requests, or to provide a custom fetch implementation for e.g. testing.
61
+ */
62
+ fetch?: FetchFunction;
58
63
  }
59
64
  interface ProdiaProvider extends ProviderV4 {
60
- /**
61
- * Creates a language model for multimodal generation (img2img with text+image output).
62
- */
63
- languageModel(modelId: ProdiaLanguageModelId): LanguageModelV4;
64
- /**
65
- * Creates a model for image generation.
66
- */
67
- image(modelId: ProdiaImageModelId): ImageModelV4;
68
- /**
69
- * Creates a model for image generation.
70
- */
71
- imageModel(modelId: ProdiaImageModelId): ImageModelV4;
72
- /**
73
- * Creates a model for video generation.
74
- */
75
- video(modelId: ProdiaVideoModelId): Experimental_VideoModelV4;
76
- /**
77
- * Creates a model for video generation.
78
- */
79
- videoModel(modelId: ProdiaVideoModelId): Experimental_VideoModelV4;
80
- /**
81
- * @deprecated Use `embeddingModel` instead.
82
- */
83
- textEmbeddingModel(modelId: string): never;
65
+ /**
66
+ * Creates a language model for multimodal generation (img2img with text+image output).
67
+ */
68
+ languageModel(modelId: ProdiaLanguageModelId): LanguageModelV4;
69
+ /**
70
+ * Creates a model for image generation.
71
+ */
72
+ image(modelId: ProdiaImageModelId): ImageModelV4;
73
+ /**
74
+ * Creates a model for image generation.
75
+ */
76
+ imageModel(modelId: ProdiaImageModelId): ImageModelV4;
77
+ /**
78
+ * Creates a model for video generation.
79
+ */
80
+ video(modelId: ProdiaVideoModelId): Experimental_VideoModelV4;
81
+ /**
82
+ * Creates a model for video generation.
83
+ */
84
+ videoModel(modelId: ProdiaVideoModelId): Experimental_VideoModelV4;
85
+ /**
86
+ * @deprecated Use `embeddingModel` instead.
87
+ */
88
+ textEmbeddingModel(modelId: string): never;
84
89
  }
85
- declare function createProdia(options?: ProdiaProviderSettings): ProdiaProvider;
86
- declare const prodia: ProdiaProvider;
87
-
88
- declare const VERSION: string;
89
-
90
- export { type ProdiaImageModelId, type ProdiaImageModelOptions, type ProdiaImageModelOptions as ProdiaImageProviderOptions, type ProdiaLanguageModelId, type ProdiaLanguageModelOptions, type ProdiaProvider, type ProdiaProviderSettings, type ProdiaVideoModelId, type ProdiaVideoModelOptions, VERSION, createProdia, prodia };
90
+ export declare function createProdia(options?: ProdiaProviderSettings): ProdiaProvider;
91
+ export declare const prodia: ProdiaProvider;
92
+ //#endregion
93
+ //#region src/version.d.ts
94
+ export declare const VERSION: string;
95
+ //#endregion
96
+ export type { ProdiaImageModelId, ProdiaImageModelOptions, ProdiaImageModelOptions as ProdiaImageProviderOptions, ProdiaLanguageModelId, ProdiaLanguageModelOptions, ProdiaProvider, ProdiaProviderSettings, ProdiaVideoModelId, ProdiaVideoModelOptions };
97
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","names":[],"sources":["../src/prodia-image-model-options.ts","../src/prodia-image-settings.ts","../src/prodia-language-model-options.ts","../src/prodia-language-model-settings.ts","../src/prodia-video-model-options.ts","../src/prodia-video-model-settings.ts","../src/prodia-provider.ts","../src/version.ts"],"mappings":";;;cA2Ba,gEAA6B;;;;;;;;KA+B9B,0BAA0B,mBAC7B;;;;;;KCxDG;;;cCIC,mEAAgC;EAAA;;KAyBjC,6BAA6B,mBAChC;;;;;;KC9BG;;;cCIC,gEAA6B;EAAA;;KAW9B,0BAA0B,mBAC7B;;;;;;KChBG;;;UCkBK;;;;EAIf;;;;EAKA;;;;EAKA,UAAU;;;;;EAMV,QAAQ;;UAGO,uBAAuB;;;;EAItC,cAAc,SAAS,wBAAwB;;;;EAK/C,MAAM,SAAS,qBAAqB;;;;EAKpC,WAAW,SAAS,qBAAqB;;;;EAKzC,MAAM,SAAS,qBAAqB;;;;EAKpC,WAAW,SAAS,qBAAqB;;;;EAKzC,mBAAmB;;wBAKL,aACd,UAAS,yBACR;qBA0DU,QAAM;;;qBCxIN"}