forked from phoenix/litellm-mirror
(fix) use client for text_completion()
This commit is contained in:
parent
e70f588b87
commit
f4fe2575cc
1 changed files with 2 additions and 0 deletions
|
@ -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]]]]]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue