BlogDocs

fix: remove use of ImagePromptTemplate in image handling and adds image utils(#4467)

Merged
Comparing
fix-imageprompt
(
5399c4a
) with
main
(
7114cc4
)
+1%
IMPROVEMENTS
0
REGRESSIONS
0
UNTOUCHED
15
NEW
0
DROPPED
0
IGNORED
0

Benchmarks

Passed

test_successful_run_with_input_type_any
src/backend/tests/unit/test_endpoints.py::test_successful_run_with_input_type_any
+6%
451.2 ms
425.8 ms
test_successful_run_with_output_type_debug
src/backend/tests/unit/test_endpoints.py::test_successful_run_with_output_type_debug
+2%
451.1 ms
443 ms
test_invalid_run_with_input_type_chat
src/backend/tests/unit/test_endpoints.py::test_invalid_run_with_input_type_chat
+1%
18.9 ms
18.7 ms
test_build_flow
src/backend/tests/unit/test_chat_endpoint.py::test_build_flow
0%
690.5 ms
688.3 ms
test_load_flows
src/backend/tests/performance/test_server_init.py::test_load_flows
0%
1.3 ms
1.3 ms
test_get_and_cache_all_types_dict
src/backend/tests/performance/test_server_init.py::test_get_and_cache_all_types_dict
0%
1.1 ms
1.1 ms
test_initialize_services
src/backend/tests/performance/test_server_init.py::test_initialize_services
0%
139.7 ms
139.6 ms
test_starter_projects
src/backend/tests/unit/test_endpoints.py::test_starter_projects
0%
1.2 s
1.2 s
test_create_starter_projects
src/backend/tests/performance/test_server_init.py::test_create_starter_projects
0%
402.5 ms
402.4 ms
test_setup_llm_caching
src/backend/tests/performance/test_server_init.py::test_setup_llm_caching
0%
1.6 ms
1.6 ms
test_successful_run_with_input_type_text
src/backend/tests/unit/test_endpoints.py::test_successful_run_with_input_type_text
0%
450.3 ms
450.6 ms
test_initialize_super_user
src/backend/tests/performance/test_server_init.py::test_initialize_super_user
0%
142.2 ms
142.4 ms
test_build_flow_from_request_data
src/backend/tests/unit/test_chat_endpoint.py::test_build_flow_from_request_data
0%
696.7 ms
698.9 ms
test_get_all
src/backend/tests/unit/test_endpoints.py::test_get_all
0%
514 ms
515.7 ms
test_successful_run_with_output_type_any
src/backend/tests/unit/test_endpoints.py::test_successful_run_with_output_type_any
-1%
459.3 ms
462.1 ms

Commits

Click on a commit to change the comparison range
base
main
7114cc4
-21%
Add unit tests for message handling and image processing in schema module - Introduce fixtures for temporary cache directory and sample image creation. - Add tests for message creation from human and AI text. - Implement tests for messages with single and multiple images. - Include tests for invalid image paths and messages without sender. - Add message serialization and conversion tests. - Ensure cleanup of cache directory after tests.
8e3c06b
16 days ago
by ogabrielluiz
+22%
Use platformdirs to determine cache directory paths in test_schema_message.py
5399c4a
16 days ago
by ogabrielluiz
ResourcesHomePricingDocsBlogGitHubChangelog
Copyright © 2024 CodSpeed Technology SAS. All rights reserved.