mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-26 03:04:13 +00:00
(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"
|
openai.api_key = "temp-key"
|
||||||
print(openai.api_base)
|
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 = [
|
response = openai.ChatCompletion.create(model="gpt-3.5-turbo", messages = [
|
||||||
{
|
{
|
||||||
"role": "user",
|
"role": "user",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue