mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-02 02:11:58 +00:00
fix: also normalise index for cache-hit items in embedding merge
This commit is contained in:
parent
169221e717
commit
d9a92227a5
1 changed files with 2 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue