| | |
| | | from tool.image_gpt import ImageGPT |
| | | from tool.image_processor import ImageProcessor |
| | | except ImportError: |
| | | from image_dashscope import DashScopeClient |
| | | from image_jimeng import JiMengClient |
| | | from image_seedream import SeedreamClient |
| | | from image_gpt import ImageGPT |
| | | from image_processor import ImageProcessor |
| | | from .image_dashscope import DashScopeClient |
| | | from .image_jimeng import JiMengClient |
| | | from .image_seedream import SeedreamClient |
| | | from .image_gpt import ImageGPT |
| | | from .image_processor import ImageProcessor |
| | | |
| | | class ImageClient: |
| | | def __init__(self, |
| | |
| | | if image_paths: |
| | | print(f"Refs: {len(image_paths)}") |
| | | for p in image_paths: |
| | | print(f" - {p}") |
| | | if str(p).startswith("data:"): |
| | | print(f" - [Base64图片]") |
| | | else: |
| | | print(f" - {p}") |
| | | print(f"Model: {model}") |
| | | if session_id: |
| | | print(f"Session ID: {session_id}") |