Skip to content

Commit

Permalink
add loop
Browse files Browse the repository at this point in the history
  • Loading branch information
aboutphilippe committed Sep 30, 2024
1 parent 459f598 commit b29c121
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions lumaai/functions/generate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,17 @@ import { lumaaiClient } from "../utils/client";
export async function lumaaiGenerate({
prompt,
aspectRatio,
apiKey,
loop = false,
extendGenerationId,
fromImageUrl,
apiKey,
}: {
prompt: string;
aspectRatio: "1:1" | "16:9" | "9:16" | "4:3" | "3:4" | "21:9" | "9:21";
apiKey?: string;
loop?: boolean;
extendGenerationId?: string;
fromImageUrl?: string;
apiKey?: string;
}) {
try {
const client = lumaaiClient({
Expand Down Expand Up @@ -44,6 +46,7 @@ export async function lumaaiGenerate({
},
}
: {}),
loop,
})
.catch(async (err) => {
if (err instanceof LumaAI.APIError) {
Expand Down
2 changes: 1 addition & 1 deletion lumaai/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@restackio/integrations-lumaai",
"version": "0.0.7",
"version": "0.0.8",
"main": "dist/service.js",
"types": "dist/service.d.ts",
"scripts": {
Expand Down

0 comments on commit b29c121

Please sign in to comment.