[Bugfix][Frontend] Support Responses text types in DeepSeek V4.1 (#56299)
Signed-off-by: CedricHuang <38417461+CedricHwong@users.noreply.github.com> Co-authored-by: OpenAI Codex <codex@openai.com>
This commit is contained in:
co-authored by
OpenAI Codex
parent
dfa1984e58
commit
eb42686a30
@@ -32,7 +32,7 @@ def _normalize_messages(
|
||||
parts = []
|
||||
for block in content:
|
||||
part_type = block.get("type")
|
||||
if part_type == "text":
|
||||
if part_type in ("text", "input_text", "output_text"):
|
||||
parts.append(block.get("text", ""))
|
||||
elif part_type in ("image_url", "input_image", "image_pil"):
|
||||
parts.append(IMAGE_PLACEHOLDER)
|
||||
|
||||
Reference in New Issue
Block a user