mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 18:54:30 +00:00
refactor(openai.py): moving openai chat completion calls to http
This commit is contained in:
parent
da1451e493
commit
c57ed0a9d7
6 changed files with 158 additions and 127 deletions
|
@ -897,8 +897,9 @@ def ai21_completion_call_bad_key():
|
|||
# test on openai completion call
|
||||
def test_openai_chat_completion_call():
|
||||
try:
|
||||
litellm.set_verbose = True
|
||||
response = completion(
|
||||
model="gpt-3.5-turbo", messages=messages, stream=True, logger_fn=logger_fn, max_tokens=10
|
||||
model="gpt-3.5-turbo", messages=messages, stream=True
|
||||
)
|
||||
complete_response = ""
|
||||
start_time = time.time()
|
||||
|
@ -915,7 +916,7 @@ def test_openai_chat_completion_call():
|
|||
print(f"error occurred: {traceback.format_exc()}")
|
||||
pass
|
||||
|
||||
# test_openai_chat_completion_call()
|
||||
test_openai_chat_completion_call()
|
||||
|
||||
# # test on together ai completion call - starcoder
|
||||
def test_together_ai_completion_call_starcoder():
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue