mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-27 03:34:10 +00:00
refactor(openai.py): moving openai chat completion calls to http
This commit is contained in:
parent
3d014ac354
commit
decf86b145
6 changed files with 158 additions and 127 deletions
|
@ -62,7 +62,7 @@ def test_context_window_with_fallbacks(model):
|
|||
|
||||
# for model in litellm.models_by_provider["bedrock"]:
|
||||
# test_context_window(model=model)
|
||||
# test_context_window(model="azure/chatgpt-v-2")
|
||||
# test_context_window(model="gpt-3.5-turbo")
|
||||
# test_context_window_with_fallbacks(model="command-nightly")
|
||||
# Test 2: InvalidAuth Errors
|
||||
@pytest.mark.parametrize("model", models)
|
||||
|
@ -158,7 +158,7 @@ def invalid_auth(model): # set the model key to an invalid key, depending on th
|
|||
|
||||
# for model in litellm.models_by_provider["bedrock"]:
|
||||
# invalid_auth(model=model)
|
||||
# invalid_auth(model="azure/chatgpt-v-2")
|
||||
# invalid_auth(model="gpt-3.5-turbo")
|
||||
|
||||
# Test 3: Invalid Request Error
|
||||
@pytest.mark.parametrize("model", models)
|
||||
|
@ -168,7 +168,7 @@ def test_invalid_request_error(model):
|
|||
with pytest.raises(InvalidRequestError):
|
||||
completion(model=model, messages=messages, max_tokens="hello world")
|
||||
|
||||
test_invalid_request_error(model="azure/chatgpt-v-2")
|
||||
# test_invalid_request_error(model="gpt-3.5-turbo")
|
||||
# Test 3: Rate Limit Errors
|
||||
# def test_model_call(model):
|
||||
# try:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue