mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-24 18:24:20 +00:00
refactor(openai.py): moving openai text completion calls to http
This commit is contained in:
parent
db0e032d53
commit
c2cbdb23fd
6 changed files with 211 additions and 66 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue