- 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>
|
||
|---|---|---|
| .. | ||
| test_crawl.py | ||
| test_decorators.py | ||
| test_python_repl.py | ||
| test_search.py | ||
| test_search_postprocessor.py | ||
| test_tavily_search_api_wrapper.py | ||
| test_tavily_search_results_with_images.py | ||
| test_tools_retriever.py | ||