@ai-sdk/topaz 0.0.0 → 2.0.0

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.
@@ -0,0 +1,27 @@
1
+ /**
2
+ * Topaz video model ids.
3
+ *
4
+ * The AI SDK exposes readable ids that are mapped onto the short names the
5
+ * Topaz API expects in the `filters[].model` field (see
6
+ * `topazVideoApiModelIds`). Passing a raw Topaz name such as `slp-2.6` also
7
+ * works - unknown ids are forwarded to the API unchanged.
8
+ */
9
+ export type TopazVideoModelId =
10
+ | 'proteus'
11
+ | 'starlight-precise-2.6'
12
+ | (string & {});
13
+
14
+ /**
15
+ * Maps AI SDK video model ids onto Topaz API model names.
16
+ *
17
+ * @see https://developer.topazlabs.com/video-models/proteus/proteus-1
18
+ * @see https://developer.topazlabs.com/video-models/starlight/starlight-precise-2.6
19
+ */
20
+ export const topazVideoApiModelIds: Record<string, string> = {
21
+ proteus: 'prob-4',
22
+ 'starlight-precise-2.6': 'slp-2.6',
23
+ };
24
+
25
+ export function resolveTopazVideoApiModelId(modelId: string): string {
26
+ return topazVideoApiModelIds[modelId] ?? modelId;
27
+ }
package/src/version.ts ADDED
@@ -0,0 +1,6 @@
1
+ // Version string of this package injected at build time.
2
+ declare const __PACKAGE_VERSION__: string | undefined;
3
+ export const VERSION: string =
4
+ typeof __PACKAGE_VERSION__ !== 'undefined'
5
+ ? __PACKAGE_VERSION__
6
+ : '0.0.0-test';
package/index.js DELETED
@@ -1 +0,0 @@
1
- export {};