Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
d4ff91e
🔧 (image.py): refactor create_image_content_dict function to return a…
Cristhianzl Sep 8, 2025
f2f708a
✅ (test_image_utils.py): update image content dict format for better …
Cristhianzl Sep 8, 2025
6f641dc
[autofix.ci] apply automated fixes
autofix-ci[bot] Sep 8, 2025
289c5bd
Merge branch 'release-1.6.0' into cz/fix-image-send-llms
carlosrcoelho Sep 8, 2025
574f1ad
Merge branch 'release-1.6.0' into cz/fix-image-send-llms
carlosrcoelho Sep 9, 2025
890f7ec
✨ (test_image_providers.py): add integration tests for image content …
Cristhianzl Sep 9, 2025
eda3ee2
Merge branch 'cz/fix-image-send-llms' of github.com:langflow-ai/langf…
Cristhianzl Sep 9, 2025
5c95f0d
[autofix.ci] apply automated fixes
autofix-ci[bot] Sep 9, 2025
eea5a6f
📝 (general-bugs-agent-images-playground.spec.ts): update file path fo…
Cristhianzl Sep 9, 2025
f175450
Merge branch 'cz/fix-image-send-llms' of github.com:langflow-ai/langf…
Cristhianzl Sep 9, 2025
f6a5070
🐛 (general-bugs-agent-images-playground.spec.ts): Fix bug in test cas…
Cristhianzl Sep 9, 2025
93b7d8e
🐛 (general-bugs-agent-images-playground.spec.ts): fix file path for i…
Cristhianzl Sep 9, 2025
625c842
Merge branch 'release-1.6.0' into cz/fix-image-send-llms
Cristhianzl Sep 9, 2025
57a4e53
[autofix.ci] apply automated fixes
autofix-ci[bot] Sep 9, 2025
0029c54
Merge branch 'release-1.6.0' into cz/fix-image-send-llms
Cristhianzl Sep 9, 2025
1cb099a
✅ (test_image_utils.py): update test_image_content_dict_format_compat…
Cristhianzl Sep 9, 2025
af73684
Merge branch 'cz/fix-image-send-llms' of github.com:langflow-ai/langf…
Cristhianzl Sep 9, 2025
b07b0dc
Merge branch 'release-1.6.0' into cz/fix-image-send-llms
Cristhianzl Sep 9, 2025
1aaded2
Merge branch 'release-1.6.0' into cz/fix-image-send-llms
jordanrfrazier Sep 11, 2025
74dde8b
Merge branch 'release-1.6.0' into cz/fix-image-send-llms
lucaseduoli Sep 11, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
✅ (test_image_utils.py): update test_image_content_dict_format_compat…
…ibility to use content_dict directly for key checks

♻️ (test_image_utils.py): refactor test_image_content_dict_multiple_formats to remove unnecessary sample_image parameter
  • Loading branch information
Cristhianzl committed Sep 9, 2025
commit 1cb099a1eee6b7b95a0d52a3f21a17e2190a3c36
6 changes: 3 additions & 3 deletions src/backend/tests/unit/utils/test_image_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,8 @@ def test_create_image_content_dict_format_compatibility(sample_image):

# Verify the structure matches OpenAI's expected format
# OpenAI expects: {"type": "image_url", "image_url": {"url": "data:..."}}
assert all(key in ["type", "image_url"] for key in content_dict.keys())
assert all(key in ["url"] for key in content_dict["image_url"].keys())
assert all(key in ["type", "image_url"] for key in content_dict)
assert all(key in ["url"] for key in content_dict["image_url"])


def test_image_content_dict_google_gemini_compatibility(sample_image):
Expand Down Expand Up @@ -210,7 +210,7 @@ def test_image_content_dict_no_legacy_fields(sample_image):
assert field not in content_dict.get("image_url", {}), f"Legacy field '{field}' should not be in image_url"


def test_image_content_dict_multiple_formats(sample_image, tmp_path):
def test_image_content_dict_multiple_formats(tmp_path):
"""Test that the format works consistently across different image types."""
# Test with different image formats
formats_to_test = [
Expand Down