llama-stack-mirror/tests/unit/providers/utils
Derek Higgins 87b8530e3f fix: handle encoding errors when adding files to vector store
- Add try-catch block around data.decode() to handle UnicodeDecodeError
- Implement UTF-8 fallback when detected encoding fails
- re-raise origional exception if fallback fails
- add unit tests

Fixes #2572: UnicodeDecodeError when uploading files with problematic encodings

Signed-off-by: Derek Higgins <derekh@redhat.com>
2025-07-03 17:36:33 +01:00
..
inference chore: remove nested imports (#2515) 2025-06-26 08:01:05 +05:30
memory fix: handle encoding errors when adding files to vector store 2025-07-03 17:36:33 +01:00
__init__.py fix: add check for interleavedContent (#1973) 2025-05-06 09:55:07 -07:00
test_model_registry.py chore: remove nested imports (#2515) 2025-06-26 08:01:05 +05:30
test_scheduler.py fix: cancel scheduler tasks on shutdown (#2130) 2025-06-19 17:01:33 +02:00