# api/typing.py | |
from typing import AsyncGenerator, Union, List, Dict | |
from .image import ImageResponse | |
Messages = List[Dict[str, Union[str, list]]] | |
AsyncResult = AsyncGenerator[Union[str, ImageResponse], None] | |
# api/typing.py | |
from typing import AsyncGenerator, Union, List, Dict | |
from .image import ImageResponse | |
Messages = List[Dict[str, Union[str, list]]] | |
AsyncResult = AsyncGenerator[Union[str, ImageResponse], None] | |