@ai-sdk/luma 1.0.23 → 1.0.25
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 +17 -4
- package/README.md +2 -0
- package/dist/index.js +4 -4
- package/dist/index.mjs +1 -1
- package/package.json +2 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @ai-sdk/luma
|
|
2
2
|
|
|
3
|
+
## 1.0.25
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 5543cd1: Add AI Gateway hint to provider READMEs
|
|
8
|
+
|
|
9
|
+
## 1.0.24
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Updated dependencies [a27a978]
|
|
14
|
+
- @ai-sdk/provider-utils@3.0.23
|
|
15
|
+
|
|
3
16
|
## 1.0.23
|
|
4
17
|
|
|
5
18
|
### Patch Changes
|
|
@@ -181,7 +194,7 @@
|
|
|
181
194
|
|
|
182
195
|
```js
|
|
183
196
|
await generateImage({
|
|
184
|
-
model: luma.image(
|
|
197
|
+
model: luma.image("photon-flash-1", {
|
|
185
198
|
maxImagesPerCall: 5,
|
|
186
199
|
pollIntervalMillis: 500,
|
|
187
200
|
}),
|
|
@@ -194,7 +207,7 @@
|
|
|
194
207
|
|
|
195
208
|
```js
|
|
196
209
|
await generateImage({
|
|
197
|
-
model: luma.image(
|
|
210
|
+
model: luma.image("photon-flash-1"),
|
|
198
211
|
prompt,
|
|
199
212
|
n: 10,
|
|
200
213
|
maxImagesPerCall: 5,
|
|
@@ -554,7 +567,7 @@
|
|
|
554
567
|
|
|
555
568
|
```js
|
|
556
569
|
await generateImage({
|
|
557
|
-
model: luma.image(
|
|
570
|
+
model: luma.image("photon-flash-1", {
|
|
558
571
|
maxImagesPerCall: 5,
|
|
559
572
|
pollIntervalMillis: 500,
|
|
560
573
|
}),
|
|
@@ -567,7 +580,7 @@
|
|
|
567
580
|
|
|
568
581
|
```js
|
|
569
582
|
await generateImage({
|
|
570
|
-
model: luma.image(
|
|
583
|
+
model: luma.image("photon-flash-1"),
|
|
571
584
|
prompt,
|
|
572
585
|
n: 10,
|
|
573
586
|
maxImagesPerCall: 5,
|
package/README.md
CHANGED
|
@@ -14,6 +14,8 @@ Luma Photon and Photon Flash are groundbreaking image generation models that del
|
|
|
14
14
|
|
|
15
15
|
For more detailed information about the Luma models and their capabilities, please visit [Luma AI](https://lumalabs.ai/).
|
|
16
16
|
|
|
17
|
+
> **Deploying to Vercel?** With Vercel's AI Gateway you can access Luma (and hundreds of models from other providers) — no additional packages, API keys, or extra cost. [Get started with AI Gateway](https://vercel.com/ai-gateway).
|
|
18
|
+
|
|
17
19
|
## Setup
|
|
18
20
|
|
|
19
21
|
The Luma provider is available in the `@ai-sdk/luma` module. You can install it with:
|
package/dist/index.js
CHANGED
|
@@ -18,13 +18,13 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
18
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
19
|
|
|
20
20
|
// src/index.ts
|
|
21
|
-
var
|
|
22
|
-
__export(
|
|
21
|
+
var index_exports = {};
|
|
22
|
+
__export(index_exports, {
|
|
23
23
|
VERSION: () => VERSION,
|
|
24
24
|
createLuma: () => createLuma,
|
|
25
25
|
luma: () => luma
|
|
26
26
|
});
|
|
27
|
-
module.exports = __toCommonJS(
|
|
27
|
+
module.exports = __toCommonJS(index_exports);
|
|
28
28
|
|
|
29
29
|
// src/luma-provider.ts
|
|
30
30
|
var import_provider2 = require("@ai-sdk/provider");
|
|
@@ -196,7 +196,7 @@ var lumaErrorSchema = import_v4.z.object({
|
|
|
196
196
|
});
|
|
197
197
|
|
|
198
198
|
// src/version.ts
|
|
199
|
-
var VERSION = true ? "1.0.
|
|
199
|
+
var VERSION = true ? "1.0.25" : "0.0.0-test";
|
|
200
200
|
|
|
201
201
|
// src/luma-provider.ts
|
|
202
202
|
var defaultBaseURL = "https://api.lumalabs.ai";
|
package/dist/index.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ai-sdk/luma",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.25",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@ai-sdk/provider": "2.0.1",
|
|
23
|
-
"@ai-sdk/provider-utils": "3.0.
|
|
23
|
+
"@ai-sdk/provider-utils": "3.0.23"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
26
|
"@types/node": "20.17.24",
|
|
@@ -54,9 +54,7 @@
|
|
|
54
54
|
"build": "pnpm clean && tsup --tsconfig tsconfig.build.json",
|
|
55
55
|
"build:watch": "pnpm clean && tsup --watch",
|
|
56
56
|
"clean": "del-cli dist *.tsbuildinfo",
|
|
57
|
-
"lint": "eslint \"./**/*.ts*\"",
|
|
58
57
|
"type-check": "tsc --build",
|
|
59
|
-
"prettier-check": "prettier --check \"./**/*.ts*\"",
|
|
60
58
|
"test": "pnpm test:node && pnpm test:edge",
|
|
61
59
|
"test:update": "pnpm test:node -u",
|
|
62
60
|
"test:watch": "vitest --config vitest.node.config.js",
|