forked from phoenix/litellm-mirror
(feat) proxy add testing for openai.Completion.create
This commit is contained in:
parent
bc61c81cc6
commit
19737f95c5
1 changed files with 3 additions and 0 deletions
|
@ -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",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue