(fix) use client for text_completion()

This commit is contained in:
ishaan-jaff 2023-12-27 15:19:59 +05:30
parent e70f588b87
commit f4fe2575cc

View file

@ -2362,6 +2362,7 @@ def embedding(
###### Text Completion ################ ###### Text Completion ################
@client
async def atext_completion(*args, **kwargs): async def atext_completion(*args, **kwargs):
""" """
Implemented to handle async streaming for the text completion endpoint Implemented to handle async streaming for the text completion endpoint
@ -2426,6 +2427,7 @@ async def atext_completion(*args, **kwargs):
) )
@client
def text_completion( def text_completion(
prompt: Union[ prompt: Union[
str, List[Union[str, List[Union[str, List[int]]]]] str, List[Union[str, List[Union[str, List[int]]]]]