Krish Dholakia
9b7ebb6a7d
build(pyproject.toml): add new dev dependencies - for type checking ( #9631 )
...
* build(pyproject.toml): add new dev dependencies - for type checking
* build: reformat files to fit black
* ci: reformat to fit black
* ci(test-litellm.yml): make tests run clear
* build(pyproject.toml): add ruff
* fix: fix ruff checks
* build(mypy/): fix mypy linting errors
* fix(hashicorp_secret_manager.py): fix passing cert for tls auth
* build(mypy/): resolve all mypy errors
* test: update test
* fix: fix black formatting
* build(pre-commit-config.yaml): use poetry run black
* fix(proxy_server.py): fix linting error
* fix: fix ruff safe representation error
2025-03-29 11:02:13 -07:00
Ishaan Jaff
c7f14e936a
(code quality) run ruff rule to ban unused imports ( #7313 )
...
* remove unused imports
* fix AmazonConverseConfig
* fix test
* fix import
* ruff check fixes
* test fixes
* fix testing
* fix imports
2024-12-19 12:33:42 -08:00
Krish Dholakia
fac3b2ee42
Add pyright to ci/cd + Fix remaining type-checking errors ( #6082 )
...
* fix: fix type-checking errors
* fix: fix additional type-checking errors
* fix: additional type-checking error fixes
* fix: fix additional type-checking errors
* fix: additional type-check fixes
* fix: fix all type-checking errors + add pyright to ci/cd
* fix: fix incorrect import
* ci(config.yml): use mypy on ci/cd
* fix: fix type-checking errors in utils.py
* fix: fix all type-checking errors on main.py
* fix: fix mypy linting errors
* fix(anthropic/cost_calculator.py): fix linting errors
* fix: fix mypy linting errors
* fix: fix linting errors
2024-10-05 17:04:00 -04:00
Ishaan Jaff
045ecf3ffb
(feat proxy slack alerting) - allow opting in to getting key / internal user alerts ( #5990 )
...
* define all slack alert types
* use correct type hints for alert type
* use correct defaults on slack alerting
* add readme for slack alerting
* fix linting error
* update readme
* docs all alert types
* update slack alerting docs
* fix slack alerting docs
* handle new testing dir structure
* fix config for testing
* fix testing folder related imports
* fix /tests import errors
* fix import stream_chunk_testdata
* docs alert types
* fix test test_langfuse_trace_id
* fix type checks for slack alerting
* fix outage alerting test slack
2024-10-01 10:49:22 -07:00
Ishaan Jaff
d100b32573
[SSO-UI] Set new sso users as internal_view role users ( #5824 )
...
* use /user/list endpoint on admin ui
* sso insert user with role when user does not exist
* add sso sign in test
* linting fix
* rename self serve doc
* add doc for self serve flow
* test - sso sign in default values
* add test for /user/list endpoint
2024-09-21 16:43:52 -07:00
Krish Dholakia
4ac66bd843
LiteLLM Minor Fixes and Improvements (09/07/2024) ( #5580 )
...
* fix(litellm_logging.py): set completion_start_time_float to end_time_float if none
Fixes https://github.com/BerriAI/litellm/issues/5500
* feat(_init_.py): add new 'openai_text_completion_compatible_providers' list
Fixes https://github.com/BerriAI/litellm/issues/5558
Handles correctly routing fireworks ai calls when done via text completions
* fix: fix linting errors
* fix: fix linting errors
* fix(openai.py): fix exception raised
* fix(openai.py): fix error handling
* fix(_redis.py): allow all supported arguments for redis cluster (#5554 )
* Revert "fix(_redis.py): allow all supported arguments for redis cluster (#5554 )" (#5583 )
This reverts commit f2191ef4cb
.
* fix(router.py): return model alias w/ underlying deployment on router.get_model_list()
Fixes https://github.com/BerriAI/litellm/issues/5524#issuecomment-2336410666
* test: handle flaky tests
---------
Co-authored-by: Jonas Dittrich <58814480+Kakadus@users.noreply.github.com>
2024-09-09 18:54:17 -07:00
Krrish Dholakia
18689c25e9
feat(team_endpoints.py): return team member budgets in /team/info call
...
Fixes https://github.com/BerriAI/litellm/issues/5390
2024-08-28 19:14:01 -07:00
Krrish Dholakia
64952ab044
fix: fix tests
2024-08-24 19:32:22 -07:00
Krrish Dholakia
5019e0322f
fix(utils.py): fix linting errors
2024-08-24 17:51:59 -07:00
Ishaan Jaff
20840eaad3
fix linting errors when adding a new team member
2024-08-24 16:38:43 -07:00
Krrish Dholakia
8782ee444d
feat(team_endpoints.py): expose 2 new fields - updated_users and updated_team_memberships, on /team/member_add
...
Fixes https://github.com/BerriAI/litellm/issues/5345#issuecomment-2307863265
Helps user see the stored budget per team member
2024-08-24 09:22:16 -07:00
Ishaan Jaff
f0f1d50734
fix test_master_key_hashing
2024-08-21 17:56:09 -07:00
Ishaan Jaff
a44bd23631
log new_user, delete user
2024-08-12 12:01:26 -07:00
Ishaan Jaff
06eb9c4e39
send slack alert on team events
2024-08-12 11:56:13 -07:00
Ishaan Jaff
4435a23121
send alert on all key events
2024-08-12 11:39:24 -07:00
Ishaan Jaff
65ac139b6b
make send_management_endpoint_alert a premium feature
2024-08-12 11:12:38 -07:00
Ishaan Jaff
1335859e5d
send management endpoint alert
2024-08-12 11:07:48 -07:00
Krrish Dholakia
a0a1feb7da
fix(management/utils.py): fix add_member to team when adding user_email
...
Fixes https://github.com/BerriAI/litellm/issues/5112
2024-08-10 17:12:09 -07:00
Ishaan Jaff
a1fe1d2042
fix linting error
2024-08-09 18:47:23 -07:00
Krrish Dholakia
9f0a05d406
fix(utils.py): only return non-null default values
2024-08-09 16:34:59 -07:00
Krrish Dholakia
1d39c0fb7d
fix(management_helpers/utils.py): use user_default max_budget, budget duration on new user upsert during team member add
...
Fixes https://github.com/BerriAI/litellm/issues/5106
2024-08-08 19:14:43 -07:00
Ishaan Jaff
a447e4dd1a
delete updated / deleted values from cache
2024-07-13 13:16:57 -07:00
Ishaan Jaff
893ed4e5f1
correctly clear cache when updating a user
2024-07-13 12:33:43 -07:00
Ishaan Jaff
670bf1b98d
correctly flush cache when updating user
2024-07-13 12:05:09 -07:00
Andres Guzman
a650160390
fix(utils.py): change update to upsert
2024-07-08 15:49:29 -06:00
Ishaan Jaff
f2570fdf00
feat - refactor team endpoints
2024-06-15 11:40:36 -07:00
Krrish Dholakia
def648ed3f
fix(proxy_server.py): allow passing in a list of team members
...
allows batch adding members to a team by passing in a list. fixes concurrency issue caused by calling team/member_add in parallel
2024-06-08 19:03:45 -07:00