mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 18:54:30 +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
df9df7b040
commit
2cd5f0fbe9
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