From 1a09bbd4a9c08d77d0cc6150561aa5e71e3be834 Mon Sep 17 00:00:00 2001 From: Krrish Dholakia Date: Mon, 16 Oct 2023 07:31:39 -0700 Subject: [PATCH] docs(main.py): adding docstring for text_completion --- litellm/main.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/litellm/main.py b/litellm/main.py index 7525b254e..cc018e9fe 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