Krish Dholakia
|
94a05ca5d0
|
Litellm ruff linting enforcement (#5992)
* ci(config.yml): add a 'check_code_quality' step
Addresses https://github.com/BerriAI/litellm/issues/5991
* ci(config.yml): check why circle ci doesn't pick up this test
* ci(config.yml): fix to run 'check_code_quality' tests
* fix(__init__.py): fix unprotected import
* fix(__init__.py): don't remove unused imports
* build(ruff.toml): update ruff.toml to ignore unused imports
* fix: fix: ruff + pyright - fix linting + type-checking errors
* fix: fix linting errors
* fix(lago.py): fix module init error
* fix: fix linting errors
* ci(config.yml): cd into correct dir for checks
* fix(proxy_server.py): fix linting error
* fix(utils.py): fix bare except
causes ruff linting errors
* fix: ruff - fix remaining linting errors
* fix(clickhouse.py): use standard logging object
* fix(__init__.py): fix unprotected import
* fix: ruff - fix linting errors
* fix: fix linting errors
* ci(config.yml): cleanup code qa step (formatting handled in local_testing)
* fix(_health_endpoints.py): fix ruff linting errors
* ci(config.yml): just use ruff in check_code_quality pipeline for now
* build(custom_guardrail.py): include missing file
* style(embedding_handler.py): fix ruff check
|
2024-10-01 19:44:20 -04:00 |
|
Krish Dholakia
|
c23d1e6ddc
|
feat(prometheus_api.py): support querying prometheus metrics for all-up + key-level spend on UI (#5782)
enables getting aggregated view from prometheus api
Makes proxy UI reliable in prod
|
2024-09-18 22:39:15 -07:00 |
|
Krish Dholakia
|
82b542df8f
|
LiteLLM Minor Fixes & Improvements (09/16/2024) (#5723) (#5731)
* LiteLLM Minor Fixes & Improvements (09/16/2024) (#5723)
* coverage (#5713)
Signed-off-by: dbczumar <corey.zumar@databricks.com>
* Move (#5714)
Signed-off-by: dbczumar <corey.zumar@databricks.com>
* fix(litellm_logging.py): fix logging client re-init (#5710)
Fixes https://github.com/BerriAI/litellm/issues/5695
* fix(presidio.py): Fix logging_hook response and add support for additional presidio variables in guardrails config
Fixes https://github.com/BerriAI/litellm/issues/5682
* feat(o1_handler.py): fake streaming for openai o1 models
Fixes https://github.com/BerriAI/litellm/issues/5694
* docs: deprecated traceloop integration in favor of native otel (#5249)
* fix: fix linting errors
* fix: fix linting errors
* fix(main.py): fix o1 import
---------
Signed-off-by: dbczumar <corey.zumar@databricks.com>
Co-authored-by: Corey Zumar <39497902+dbczumar@users.noreply.github.com>
Co-authored-by: Nir Gazit <nirga@users.noreply.github.com>
* feat(spend_management_endpoints.py): expose `/global/spend/refresh` endpoint for updating material view (#5730)
* feat(spend_management_endpoints.py): expose `/global/spend/refresh` endpoint for updating material view
Supports having `MonthlyGlobalSpend` view be a material view, and exposes an endpoint to refresh it
* fix(custom_logger.py): reset calltype
* fix: fix linting errors
* fix: fix linting error
* fix: fix import
* test(test_databricks.py): fix databricks tests
---------
Signed-off-by: dbczumar <corey.zumar@databricks.com>
Co-authored-by: Corey Zumar <39497902+dbczumar@users.noreply.github.com>
Co-authored-by: Nir Gazit <nirga@users.noreply.github.com>
|
2024-09-17 08:05:52 -07:00 |
|
Ishaan Jaff
|
7ef1ac7996
|
fix allow internal user to view their own usage
|
2024-09-05 12:53:44 -07:00 |
|
Ishaan Jaff
|
b4d6efd454
|
add global/spend/provider
|
2024-09-05 12:44:44 -07:00 |
|
Ishaan Jaff
|
6d656983c6
|
allow internal user to view global/spend/models
|
2024-09-05 12:38:48 -07:00 |
|
Ishaan Jaff
|
bb0fc2504b
|
allow internal user to view their own spend
|
2024-09-05 12:35:04 -07:00 |
|
Ishaan Jaff
|
6ab47703b8
|
show /spend/logs for internal users
|
2024-09-05 12:14:03 -07:00 |
|
Ishaan Jaff
|
3e1ff425de
|
return error from /global/spend endpoint
|
2024-09-04 17:26:34 -07:00 |
|
Ishaan Jaff
|
8426d0e3e0
|
return error client side from spend endpoints
|
2024-09-04 17:20:47 -07:00 |
|
Ishaan Jaff
|
94ecb4e480
|
show error from /spend/tags
|
2024-09-04 17:14:49 -07:00 |
|
Ishaan Jaff
|
37108765eb
|
get spend per internal user / api_key
|
2024-07-06 14:45:58 -07:00 |
|
Ishaan Jaff
|
ae19965ea8
|
/spend/report view spend for a specific key
|
2024-07-06 14:24:29 -07:00 |
|
Ishaan Jaff
|
d55c6b9b07
|
add better debugging on /spend/report
|
2024-06-29 18:01:25 -07:00 |
|
Ishaan Jaff
|
869819f8a9
|
raise error on /spend/report endpoint
|
2024-06-29 12:00:19 -07:00 |
|
Ishaan Jaff
|
8f661e972a
|
feat - add spend report grouped by api key
|
2024-06-29 11:33:02 -07:00 |
|
Ishaan Jaff
|
759bcbd4db
|
/spend/calculate use model aliases on this endpoint
|
2024-06-24 21:14:00 -07:00 |
|
Ishaan Jaff
|
9acab3dac5
|
test - spend/calculate endpoints
|
2024-06-24 19:32:52 -07:00 |
|
Ishaan Jaff
|
ff543e3e45
|
feat - refactor /spend/calculate
|
2024-06-24 19:05:34 -07:00 |
|
Ishaan Jaff
|
aa3f2b3cf9
|
fix cost tracking by tags
|
2024-06-21 16:49:57 -07:00 |
|