diff --git a/custom_components/llmvision/request_handlers.py b/custom_components/llmvision/request_handlers.py index 74f0660..05ad0b2 100644 --- a/custom_components/llmvision/request_handlers.py +++ b/custom_components/llmvision/request_handlers.py @@ -39,7 +39,7 @@ def sanitize_data(data): return {key: sanitize_data(value) for key, value in data.items()} elif isinstance(data, list): return [sanitize_data(item) for item in data] - elif isinstance(data, str) and len(data) > 200: + elif isinstance(data, str) and len(data) > 400 and data.count(' ') < 50: return '' else: return data