Skip to content

Commit

Permalink
fix: comfy default settings
Browse files Browse the repository at this point in the history
  • Loading branch information
devniel committed Aug 13, 2024
1 parent c01ff04 commit ccd684d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/app/api/resolve/providers/comfyui/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export async function resolveSegment(
// for API doc please see:
// https://github.com/tctien342/comfyui-sdk/blob/main/examples/example-t2i.ts
const api = new ComfyApi(
request.settings.comfyUiApiUrl || 'http://localhost:8189'
request.settings.comfyUiApiUrl || 'http://localhost:8188'
).init()

if (request.segment.category === ClapSegmentCategory.STORYBOARD) {
Expand Down
4 changes: 2 additions & 2 deletions src/components/settings/provider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ export function SettingsSectionProvider() {
label="ComfyUI API URL"
value={comfyUiApiUrl}
defaultValue={defaultSettings.comfyUiApiUrl}
onChange={setComfyIcuApiKey}
onChange={setComfyUiApiUrl}
type="text"
/>

Expand All @@ -132,7 +132,7 @@ export function SettingsSectionProvider() {
value={comfyUiClientId}
defaultValue={defaultSettings.comfyUiClientId}
onChange={setComfyUiClientId}
type={apiKeyType}
type="text"
/>

<FormInput
Expand Down
2 changes: 1 addition & 1 deletion src/services/settings/getDefaultSettingsState.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export function getDefaultSettingsState(): SettingsState {
comfyWorkflowForSound: '{}',
comfyWorkflowForMusic: '{}',

comfyUiApiUrl: 'http://localhost:8189',
comfyUiApiUrl: 'http://localhost:8188',

// those are not designed for Hugging Face specifically,
// but to be compatible with any Gradio API URL that the
Expand Down

0 comments on commit ccd684d

Please sign in to comment.