Support path prefixes in COMFY_LOCAL_URL

Đang mở
#904 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
72/100
Loại issue
Tính năng
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
python
Lĩnh vực
api, cli

Hướng nghiên cứu

Start by locating where COMFY_LOCAL_URL is parsed and where ComfyUI API request URLs are constructed. Verify the existing request tests or exercise representative API calls, then confirm that URLs with and without trailing path slashes preserve the prefix for endpoints such as /api/prompt and /system_stats.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

enhancement

Describe the solution you'd like
Make COMFY_LOCAL_URL accept a full URL including a path prefix, and preserve that prefix when constructing requests to the ComfyUI API. For example, setting COMFY_LOCAL_URL=http://host:8080/comfyui should cause all API calls (e.g., POST /api/prompt, GET /system_stats) to be sent to http://host:8080/comfyui/api/prompt and http://host:8080/comfyui/system_stats, respectively. Currently the path component is ignored, so requests go to the root. The path should be normalized (trailing slash optional) and correctly joined with the existing API endpoints.

Additional context
I tried using llama-swap to automatically switch between AI services, allowing multiple AI services to be started on demand and share a single GPU's VRAM. However, llama-swap exposes services under subdirectories, which makes them unusable from comfy-cli.

Users who like to reverse-proxy various services through nginx onto a single unified port may run into similar issues.

Ngôn ngữ chính
Python
Star
1k
Fork
176
Merge trung bình
1 ngày 11 giờ
Pull request đã merge (30 ngày)
87

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của Comfy-Org/comfy-cli

Tất cả issue của Comfy-Org/comfy-cli

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.