mirror of
https://github.com/tiennm99/litellm.git
synced 2026-08-09 00:26:01 +00:00
(fix) use client for text_completion()
This commit is contained in:
@@ -2362,6 +2362,7 @@ def embedding(
|
||||
|
||||
|
||||
###### Text Completion ################
|
||||
@client
|
||||
async def atext_completion(*args, **kwargs):
|
||||
"""
|
||||
Implemented to handle async streaming for the text completion endpoint
|
||||
@@ -2426,6 +2427,7 @@ async def atext_completion(*args, **kwargs):
|
||||
)
|
||||
|
||||
|
||||
@client
|
||||
def text_completion(
|
||||
prompt: Union[
|
||||
str, List[Union[str, List[Union[str, List[int]]]]]
|
||||
|
||||
Reference in New Issue
Block a user