fix(caching.py): only add unique kwargs for transcription_only_kwargs in caching

This commit is contained in:
Krrish Dholakia 2024-03-09 16:09:12 -08:00
parent fa45c569fd
commit 9b7c8880c0

View file

@ -897,12 +897,8 @@ class Cache:
"encoding_format",
] # embedding kwargs = model, input, user, encoding_format. Model, user are checked in completion_kwargs
transcription_only_kwargs = [
"model",
"file",
"language",
"prompt",
"response_format",
"temperature",
]
# combined_kwargs - NEEDS to be ordered across get_cache_key(). Do not use a set()
combined_kwargs = (