diff --git a/litellm/main.py b/litellm/main.py index 7525b254e2..cc018e9fe2 100644 --- a/litellm/main.py +++ b/litellm/main.py @@ -1551,6 +1551,9 @@ def embedding( ###### Text Completion ################ def text_completion(*args, **kwargs): + """ + This maps to the Openai.Completion.create format, which has a different I/O (accepts prompt, returning ["choices"]["text"]. + """ if "prompt" in kwargs: messages = [{"role": "system", "content": kwargs["prompt"]}] kwargs["messages"] = messages