mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2025-07-27 16:26:39 +00:00
19 lines
663 B
Python
19 lines
663 B
Python
from comfy_api.v0_0_2 import ComfyAPIAdapter_v0_0_2
|
|
from typing import Type, TYPE_CHECKING
|
|
from comfy_api.internal.async_to_sync import create_sync_class
|
|
|
|
# This version only exists to serve as a template for future version adapters.
|
|
# There is no reason anyone should ever use it.
|
|
class ComfyAPIAdapter_v0_0_1(ComfyAPIAdapter_v0_0_2):
|
|
VERSION = "0.0.1"
|
|
STABLE = True
|
|
|
|
ComfyAPI = ComfyAPIAdapter_v0_0_1
|
|
|
|
# Create a synchronous version of the API
|
|
if TYPE_CHECKING:
|
|
from comfy_api.v0_0_1.generated.ComfyAPISyncStub import ComfyAPISyncStub # type: ignore
|
|
ComfyAPISync: Type[ComfyAPISyncStub]
|
|
|
|
ComfyAPISync = create_sync_class(ComfyAPIAdapter_v0_0_1)
|