From 19737f95c5f1714eacc19488f88cd956629fe537 Mon Sep 17 00:00:00 2001 From: ishaan-jaff Date: Wed, 1 Nov 2023 17:15:33 -0700 Subject: [PATCH] (feat) proxy add testing for openai.Completion.create --- litellm/proxy/proxy_cli.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/litellm/proxy/proxy_cli.py b/litellm/proxy/proxy_cli.py index 2e2359b1377..59b90348773 100644 --- a/litellm/proxy/proxy_cli.py +++ b/litellm/proxy/proxy_cli.py @@ -176,6 +176,9 @@ def run_server(host, port, api_base, api_version, model, alias, add_key, headers openai.api_key = "temp-key" print(openai.api_base) + response = openai.Completion.create(model="gpt-3.5-turbo", prompt='hello who are you') + print(response) + response = openai.ChatCompletion.create(model="gpt-3.5-turbo", messages = [ { "role": "user",