[Entrypoint][Refactor] Make field type hint more concrete (#3139)

Signed-off-by: wuhang <wuhang6@huawei.com>
This commit is contained in:
wuhang authored and GitHub committed 2026-05-14 11:25:55 +08:00
1 parent 51b4b1131e
commit 0d9d57acd9
20 files changed
+908 -543

No files matched your search

+3
View File
@@ -9,6 +9,9 @@ from __future__ import annotations
import re
from enum import Enum, Flag, StrEnum, auto
from typing import Literal, TypeAlias
FinalOutputModalityType: TypeAlias = Literal["text", "image", "audio", "video"]
_MODALITY_ALIASES: dict[str, str] = {
"speech": "audio",