refactor(openai.py): moving openai text completion calls to http

This commit is contained in:
Krrish Dholakia 2023-11-08 18:39:56 -08:00
parent db0e032d53
commit c2cbdb23fd
6 changed files with 211 additions and 66 deletions

View file

@ -391,11 +391,12 @@ def test_completion_openai():
def test_completion_text_openai():
try:
litellm.set_verbose = True
response = completion(model="gpt-3.5-turbo-instruct", messages=messages)
print(response)
except Exception as e:
pytest.fail(f"Error occurred: {e}")
# test_completion_text_openai()
test_completion_text_openai()
def test_completion_openai_with_optional_params():
try: