fix: use comfy_url from from api

master v1.4.0
Abdullah Alfaraj 2023-11-30 20:23:33 +03:00
parent 5d413ecd5d
commit 881000aa67
2 changed files with 6 additions and 3 deletions

View File

@ -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) {

View File

@ -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,
}
@ -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 />