(fix) acompletion typehints - pass kwargs

This commit is contained in:
ishaan-jaff 2024-01-11 11:49:55 +05:30
parent cf86af46a8
commit bd5a14daf6

View file

@ -234,7 +234,7 @@ async def acompletion(
}
try:
# Use a partial function to pass your keyword arguments
func = partial(completion, **completion_kwargs)
func = partial(completion, **completion_kwargs, **kwargs)
# Add the context to the function
ctx = contextvars.copy_context()