Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LiteLLM Minor Fixes & Improvements (09/23/2024) (#5842) #5858

Merged
merged 5 commits into from
Sep 24, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
test: fix tests
  • Loading branch information
krrishdholakia committed Sep 24, 2024
commit a38d0346b98c27ddf756706e9a9b3700c32609c2
9 changes: 6 additions & 3 deletions litellm/tests/test_proxy_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -322,8 +322,10 @@ def test_is_request_body_safe_global_enabled(
"allow_client_side_credentials": allow_client_side_credentials
},
llm_router=llm_router,
model="gpt-3.5-turbo",
)
except Exception:
except Exception as e:
print(e)
error_raised = True

assert expect_error == error_raised
Expand All @@ -346,7 +348,7 @@ def test_is_request_body_safe_model_enabled(
"litellm_params": {
"model": "fireworks_ai/*",
"api_key": os.getenv("FIREWORKS_API_KEY"),
"configurable_clientside_auth_parameters": (
"configurable_clientside_auth_params": (
["api_base"] if allow_client_side_credentials else []
),
},
Expand All @@ -360,7 +362,8 @@ def test_is_request_body_safe_model_enabled(
llm_router=llm_router,
model="fireworks_ai/my-new-model",
)
except Exception:
except Exception as e:
print(e)
error_raised = True

assert expect_error == error_raised