Skip to content

Commit

Permalink
add api key setting for luma
Browse files Browse the repository at this point in the history
  • Loading branch information
jbilcke-hf committed Sep 17, 2024
1 parent a279eb8 commit a884ff5
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 27 deletions.
11 changes: 11 additions & 0 deletions packages/app/src/components/settings/provider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,9 @@ export function SettingsSectionProvider() {

const letzAiApiKey = useSettings((s) => s.letzAiApiKey)
const setLetzAiApiKey = useSettings((s) => s.setLetzAiApiKey)

const lumaLabsApiKey = useSettings((s) => s.lumaLabsApiKey)
const setLumaLabsApiKey = useSettings((s) => s.setLumaLabsApiKey)

const bigModelApiKey = useSettings((s) => s.bigModelApiKey)
const setBigModelApiKey = useSettings((s) => s.setBigModelApiKey)
Expand Down Expand Up @@ -337,6 +340,14 @@ export function SettingsSectionProvider() {
type={apiKeyType}
/>

<FormInput
label="Luma AI API Key"
value={lumaLabsApiKey}
defaultValue={defaultSettings.lumaLabsApiKey}
onChange={setLumaLabsApiKey}
type={apiKeyType}
/>

<FormInput
label="BigModel API Key"
value={bigModelApiKey}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,38 +3,13 @@ import {
ClapWorkflowEngine,
ClapWorkflowCategory,
ClapWorkflowProvider,
ClapInputCategory,
} from '@aitube/clap'

import {
genericAspectRatio,
genericAudio,
genericBaseImageUrl,
genericDrivingVideo,
genericFaceImage,
genericGuidanceScale,
genericHeight1024,
genericHeight2048,
genericIdWeight,
genericImage,
genericImageUrl,
genericInferenceSteps,
genericKeyframes,
genericLora,
genericNegativePrompt,
genericPrompt,
genericReferenceImages,
genericSeed,
genericStartStep,
genericSwapImage,
genericSwapImageUrl,
genericTargetImage,
genericTrueCFG,
genericVideo,
genericWidth1024,
genericWidth2048,
} from '../common/defaultValues'
import { sampleDrivingVideo } from '@/lib/core/constants'

// ------------------------------------------------------------------------------
// if a user is already using one of those workflows and you change its settings,
Expand All @@ -54,7 +29,7 @@ export const lumalabsWorkflows: ClapWorkflow[] = [
engine: ClapWorkflowEngine.REST_API,
provider: ClapWorkflowProvider.LUMALABS,
category: ClapWorkflowCategory.VIDEO_GENERATION,
data: '',
data: 'dream-machine/v1',
schema: '',
/**
* Inputs of the workflow (this is used to build an UI for the workflow automatically)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export const piApiWorkflows: ClapWorkflow[] = [
},
{
id: 'piapi://luma/v1/video',
label: 'Luma Labs Dream Machine',
label: 'Luma AI Dream Machine',
description: '',
tags: ['Dream Machine'],
author: '',
Expand Down

0 comments on commit a884ff5

Please sign in to comment.