Skip to content

Commit

Permalink
fix: use comfy_url from from api
Browse files Browse the repository at this point in the history
  • Loading branch information
AbdullahAlfaraj committed Nov 30, 2023
1 parent 5d413ec commit 881000a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion typescripts/comfyui/comfyapi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ class ComfyAPI {

async getHistory(prompt_id: string = '') {
try {
const url = `http://127.0.0.1:8188/history/${prompt_id}`
const url = `${this.comfy_url}/history/${prompt_id}`
const res = await requestGet(`${this.comfy_url}/history`)
return res
} catch (e) {
Expand Down
7 changes: 5 additions & 2 deletions typescripts/comfyui/comfyui.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ export async function workflowEntries() {
}
export async function postPrompt(prompt: any) {
try {
const url = 'http://127.0.0.1:8188/prompt'
const url = `${comfyapi.comfy_api.comfy_url}/prompt`
const payload = {
prompt: prompt,
}
Expand Down Expand Up @@ -1666,7 +1666,10 @@ root.render(
//<React.StrictMode>
<ErrorBoundary>
<div style={{ border: '2px solid #6d6c6c', padding: '3px' }}>
<Collapsible defaultIsOpen={true} label={Locale('Custom ComfyUI Workflow')}>
<Collapsible
defaultIsOpen={true}
label={Locale('Custom ComfyUI Workflow')}
>
{/* <ComfyNodeComponent></ComfyNodeComponent> */}

<ComfyWorkflowComponent />
Expand Down

0 comments on commit 881000a

Please sign in to comment.