This commit is contained in:
zjt 2024-05-21 22:08:51 +08:00
parent bfbed61780
commit 927577c201
3 changed files with 12 additions and 12 deletions

View File

@ -3,10 +3,10 @@ import { txt23dApiFormatJSON } from "../comfyJson/txt23d";
import axios from "axios";
import { selectNodeFromApiJSONbyID } from "../utils/editComfyJson";
import WebSocket from "ws";
// const baseUrl = "http://47.108.92.176:20000";
// const baseWsUrl = "ws://47.108.92.176:20000";
const baseUrl = "http://localhost:8188";
const baseWsUrl = "ws://localhost:8188";
const baseUrl = "http://47.108.92.176:20000";
const baseWsUrl = "ws://47.108.92.176:20000";
// const baseUrl = "http://localhost:8188";
// const baseWsUrl = "ws://localhost:8188";
axios.defaults.baseURL = baseUrl;
const Txt23DHandler: RequestHandler<Txt2ImgRequest, any> = async (ctx) => {
ctx.set('Access-Control-Allow-Origin', '*')

View File

@ -3,10 +3,10 @@ import { txt2imgAPIformatJSON, txt2imgAPIformatExtraData } from "../comfyJson/tx
import axios from "axios";
import { selectNodeFromApiJSONbyID } from "../utils/editComfyJson";
import WebSocket from "ws";
// const baseUrl = "http://47.108.92.176:20000";
// const baseWsUrl = "ws://47.108.92.176:20000";
const baseUrl = "http://localhost:8188";
const baseWsUrl = "ws://localhost:8188";
const baseUrl = "http://47.108.92.176:20000";
const baseWsUrl = "ws://47.108.92.176:20000";
// const baseUrl = "http://localhost:8188";
// const baseWsUrl = "ws://localhost:8188";
axios.defaults.baseURL = baseUrl;
const Txt2ImgHandler: RequestHandler<Txt2ImgRequest, any> = async (ctx, next) => {
console.log(ctx.method);

View File

@ -3,10 +3,10 @@ import { upScaleAPIFormatJSON } from "../comfyJson/upscale";
import axios from "axios";
import { selectNodeFromApiJSONbyID } from "../utils/editComfyJson";
import WebSocket from "ws";
// const baseUrl = "http://47.108.92.176:20000";
// const baseWsUrl = "ws://47.108.92.176:20000";
const baseUrl = "http://localhost:8188";
const baseWsUrl = "ws://localhost:8188";
const baseUrl = "http://47.108.92.176:20000";
const baseWsUrl = "ws://47.108.92.176:20000";
// const baseUrl = "http://localhost:8188";
// const baseWsUrl = "ws://localhost:8188";
axios.defaults.baseURL = baseUrl;
const UpscaleHandler: RequestHandler<any ,any> = async (ctx) => {
ctx.set('Access-Control-Allow-Origin', '*')