deerflow2/tests/unit
Willem Jiang e2ff765460
fix: correct image result format for OpenAI compatibility to fix #632 (#634)
- Change image result type from 'image' to 'image_url' to match OpenAI API expectations
- Wrap image URL in dict structure: {"url": "..."} instead of plain string
- Update SearchResultPostProcessor to handle dict-based image_url during duplicate removal
- Update tests to validate new image format

This fixes the 400 error: Invalid value: 'image'. Supported values are: 'text', 'image_url'...

Co-authored-by: Willem Jiang <143703838+willem-bd@users.noreply.github.com>
2025-10-20 23:14:09 +08:00
..
checkpoint feat: support dify in rag module (#550) 2025-09-16 20:30:45 +08:00
config feat: 1. replace black with ruff for fomatting and sort import (#489) 2025-08-17 22:57:23 +08:00
crawler fix: fix the lint check errors of the main branch (#403) 2025-07-12 14:43:25 +08:00
graph feat: Add intelligent clarification feature in coordinate step for research queries (#613) 2025-10-14 13:35:57 +08:00
llms feat: support dify in rag module (#550) 2025-09-16 20:30:45 +08:00
prompt_enhancer feat: 1. replace black with ruff for fomatting and sort import (#489) 2025-08-17 22:57:23 +08:00
rag feat: Add intelligent clarification feature in coordinate step for research queries (#613) 2025-10-14 13:35:57 +08:00
server feat: Add intelligent clarification feature in coordinate step for research queries (#613) 2025-10-14 13:35:57 +08:00
tools fix: correct image result format for OpenAI compatibility to fix #632 (#634) 2025-10-20 23:14:09 +08:00
utils feat: Add intelligent clarification feature in coordinate step for research queries (#613) 2025-10-14 13:35:57 +08:00