fix: also normalise index for cache-hit items in embedding merge

This commit is contained in:
Andreas Frings 2026-06-01 12:36:41 +02:00
parent 169221e717
commit d9a92227a5

View file

@ -631,6 +631,8 @@ class LLMCachingHandler:
final_data_list.append(api_item)
idx += 1
else:
if item is not None:
item["index"] = pos
final_data_list.append(item)
_caching_handler_response.final_embedding_cached_response.data = final_data_list