Publish current ComfyUI O1Key code baseline
Replace the prior release tree with the current plugin, frontend, tests, and documentation. Document retired node IDs and the public Gitea update source.
This commit is contained in:
+31
-13
@@ -1,16 +1,34 @@
|
||||
"""
|
||||
API 客户端模块
|
||||
包含与外部 API 通信的客户端实现
|
||||
"""API clients exposed through lazy imports.
|
||||
|
||||
Importing one client submodule no longer imports every provider client. This
|
||||
keeps plugin startup lightweight and isolates optional provider dependencies.
|
||||
"""
|
||||
|
||||
from .base_client import BaseAPIClient
|
||||
from .gemini_client import GeminiAPIClient
|
||||
from .gemini_flash_client import GeminiFlashClient
|
||||
from .sora_client import SoraClient
|
||||
from .kling_client import KlingClient
|
||||
from .veo_client import VeoClient
|
||||
from .newapi_veo_client import NewAPIVeoClient
|
||||
from .grok_video_client import GrokVideoClient
|
||||
from .openai_client import OpenAIAPIClient
|
||||
from importlib import import_module
|
||||
|
||||
__all__ = ['BaseAPIClient', 'GeminiAPIClient', 'GeminiFlashClient', 'SoraClient', 'KlingClient', 'VeoClient', 'NewAPIVeoClient', 'GrokVideoClient', 'OpenAIAPIClient']
|
||||
|
||||
_EXPORTS = {
|
||||
"BaseAPIClient": ("base_client", "BaseAPIClient"),
|
||||
"GeminiAPIClient": ("gemini_client", "GeminiAPIClient"),
|
||||
"GeminiFlashClient": ("gemini_flash_client", "GeminiFlashClient"),
|
||||
"SoraClient": ("sora_client", "SoraClient"),
|
||||
"VeoClient": ("veo_client", "VeoClient"),
|
||||
"NewAPIVeoClient": ("newapi_veo_client", "NewAPIVeoClient"),
|
||||
"MiniMaxH3Client": ("minimax_h3_client", "MiniMaxH3Client"),
|
||||
"GrokVideoClient": ("grok_video_client", "GrokVideoClient"),
|
||||
"OmniFlashClient": ("omni_flash_client", "OmniFlashClient"),
|
||||
"SeedreamImageClient": ("seedream_image_client", "SeedreamImageClient"),
|
||||
}
|
||||
|
||||
__all__ = list(_EXPORTS)
|
||||
|
||||
|
||||
def __getattr__(name):
|
||||
try:
|
||||
module_name, attribute_name = _EXPORTS[name]
|
||||
except KeyError as exc:
|
||||
raise AttributeError(f"module {__name__!r} has no attribute {name!r}") from exc
|
||||
|
||||
value = getattr(import_module(f".{module_name}", __name__), attribute_name)
|
||||
globals()[name] = value
|
||||
return value
|
||||
|
||||
Reference in New Issue
Block a user