Commit graph

21 commits

Author SHA1 Message Date
Ishaan Jaff
62a1cdec47 (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
3766d5dc6f LiteLLM Minor Fixes & Improvements (11/29/2024) (#6965)
* fix(factory.py): ensure tool call converts image url

Fixes https://github.com/BerriAI/litellm/issues/6953

* fix(transformation.py): support mp4 + pdf url's for vertex ai

Fixes https://github.com/BerriAI/litellm/issues/6936

* fix(http_handler.py): mask gemini api key in error logs

Fixes https://github.com/BerriAI/litellm/issues/6963

* docs(prometheus.md): update prometheus FAQs

* feat(auth_checks.py): ensure specific model access > wildcard model access

if wildcard model is in access group, but specific model is not - deny access

* fix(auth_checks.py): handle auth checks for team based model access groups

handles scenario where model access group used for wildcard models

* fix(internal_user_endpoints.py): support adding guardrails on `/user/update`

Fixes https://github.com/BerriAI/litellm/issues/6942

* fix(key_management_endpoints.py): fix prepare_metadata_fields helper

* fix: fix tests

* build(requirements.txt): bump openai dep version

fixes proxies argument

* test: fix tests

* fix(http_handler.py): fix error message masking

* fix(bedrock_guardrails.py): pass in prepped data

* test: fix test

* test: fix nvidia nim test

* fix(http_handler.py): return original response headers

* fix: revert maskedhttpstatuserror

* test: update tests

* test: cleanup test

* fix(key_management_endpoints.py): fix metadata field update logic

* fix(key_management_endpoints.py): maintain initial order of guardrails in key update

* fix(key_management_endpoints.py): handle prepare metadata

* fix: fix linting errors

* fix: fix linting errors

* fix: fix linting errors

* fix: fix key management errors

* fix(key_management_endpoints.py): update metadata

* test: update test

* refactor: add more debug statements

* test: skip flaky test

* test: fix test

* fix: fix test

* fix: fix update metadata logic

* fix: fix test

* ci(config.yml): change db url for e2e ui testing
2024-12-01 05:24:11 -08:00
Krish Dholakia
f7e896bdc5 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
970c61996e use view for getting tag usage on ui 2024-09-06 16:28:05 -07:00
Ishaan Jaff
39ca66f46d fix - remove deprecated clickhouse utils 2024-06-15 15:33:26 -07:00
Ishaan Jaff
74c8522067 fix - working filter by tag query 2024-06-03 15:12:09 -07:00
Ishaan Jaff
afcbf552bd fix type hints on main 2024-05-13 20:21:23 -07:00
Ishaan Jaff
f9385532eb ui - round up spend per tag 2024-05-13 17:31:29 -07:00
Ishaan Jaff
a3b2285c95 ui - filter tags by starttime and endtime 2024-05-13 17:15:25 -07:00
Krrish Dholakia
5f93cae3ff feat(proxy_server.py): return litellm version in response headers 2024-05-08 16:00:08 -07:00
Ishaan Jaff
f1ea4dc0e5 ui - view spend per tag 2024-04-04 17:18:01 -07:00
Ishaan Jaff
1c51e17205 ui show spend per tag 2024-04-04 16:57:45 -07:00
Ishaan Jaff
c4090a8e17 (fix) check size of data to predict 2024-03-30 11:34:20 -07:00
ishaan-jaff
64fd9106e3 (feat) show monthly predicted spend 2024-03-01 09:54:12 -08:00
ishaan-jaff
3580fdb08e (feat) predict spend 2024-03-01 09:28:22 -08:00
ishaan-jaff
be53e27c50 (feat) /predict/spend endpoint 2024-03-01 08:20:35 -08:00
ishaan-jaff
4ba0e36827 (feat) predict spend 2024-03-01 07:54:09 -08:00
ishaan-jaff
af90e508d9 (chore) move clickhouse to correct directory 2024-02-27 19:41:01 -08:00
ishaan-jaff
198159afff (feat) enable viewing /spend/logs for clickhouse 2024-02-26 18:05:21 -08:00
ishaan-jaff
27262b82b9 (feat) use clickhouse for viewing data on Admin UI 2024-02-26 17:53:21 -08:00
Krrish Dholakia
67cd9b1c63 feat(llama_guard.py): add llama guard support for content moderation + new async_moderation_hook endpoint 2024-02-16 18:45:25 -08:00
Renamed from litellm/proxy/enterprise/utils.py (Browse further)