mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-27 11:43:54 +00:00
fix(utils.py): support caching individual items in embedding input list
https://github.com/BerriAI/litellm/issues/1350
This commit is contained in:
parent
1472dc3f54
commit
66addb1a01
2 changed files with 78 additions and 6 deletions
|
@ -234,7 +234,7 @@ async def acompletion(
|
|||
}
|
||||
try:
|
||||
# Use a partial function to pass your keyword arguments
|
||||
func = partial(completion, **completion_kwargs, **kwargs)
|
||||
func = partial(completion, **completion_kwargs)
|
||||
|
||||
# Add the context to the function
|
||||
ctx = contextvars.copy_context()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue