Krish Dholakia
|
d57be47b0f
|
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
|
234185ec13
|
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
|
b6ae2204a8
|
[Feat-Proxy] Slack Alerting - allow using os.environ/ vars for alert to webhook url (#5726)
* allow using os.environ for slack urls
* use env vars for webhook urls
* fix types for get_secret
* fix linting
* fix linting
* fix linting
* linting fixes
* linting fix
* docs alerting slack
* fix get data
|
2024-09-16 18:03:37 -07:00 |
|
Ishaan Jaff
|
08f8f9634f
|
use get async httpx client
|
2024-09-10 13:08:49 -07:00 |
|
Ishaan Jaff
|
421b857714
|
pass llm provider when creating async httpx clients
|
2024-09-10 11:51:42 -07:00 |
|
Ishaan Jaff
|
d4b9a1307d
|
rename get_async_httpx_client
|
2024-09-10 10:38:01 -07:00 |
|
Ishaan Jaff
|
4ab8e52bfa
|
allow init guardrails with output parsing logic
|
2024-09-04 14:40:35 -07:00 |
|
Ishaan Jaff
|
6c30f18f8c
|
docs new presidio language controls
|
2024-09-04 13:04:19 -07:00 |
|
Ishaan Jaff
|
9b5164b38d
|
fix allow setting language per call to presidio
|
2024-09-04 12:46:59 -07:00 |
|
Ishaan Jaff
|
d954413b14
|
fix presidio calling logic
|
2024-09-04 12:14:30 -07:00 |
|
Ishaan Jaff
|
1276c10338
|
migrate presidio to new guardrails
|
2024-09-04 10:12:23 -07:00 |
|
Ishaan Jaff
|
b0178a85cf
|
refactor get_secret
|
2024-09-03 10:42:12 -07:00 |
|
Ishaan Jaff
|
06529f19df
|
Merge pull request #5392 from BerriAI/litellm_add_native_cohere_rerank
[Feat] Add cohere rerank and together ai rerank
|
2024-08-27 17:29:37 -07:00 |
|
Ishaan Jaff
|
fb5be57bb8
|
v0 add rerank on litellm proxy
|
2024-08-27 17:28:39 -07:00 |
|
Krrish Dholakia
|
6431af0678
|
fix(bedrock_httpx.py): support 'Auth' header as extra_header
Fixes https://github.com/BerriAI/litellm/issues/5389#issuecomment-2313677977
|
2024-08-27 16:08:54 -07:00 |
|
Ishaan Jaff
|
a99258440c
|
fix use guardrail for pre call hook
|
2024-08-23 09:34:08 -07:00 |
|
Ishaan Jaff
|
af92cff44d
|
add custom guardrail reference
|
2024-08-23 08:32:07 -07:00 |
|
Ishaan Jaff
|
9e3d573bcb
|
add async_post_call_success_hook
|
2024-08-22 16:34:43 -07:00 |
|
Ishaan Jaff
|
7d55047ab9
|
add bedrock guardrails support
|
2024-08-22 16:09:55 -07:00 |
|
Ishaan Jaff
|
5bd94f64da
|
fix lakera ai tests
|
2024-08-20 17:28:18 -07:00 |
|
Ishaan Jaff
|
8d2c529e55
|
support lakera ai category thresholds
|
2024-08-20 17:19:24 -07:00 |
|
Ishaan Jaff
|
1fdebfb0b7
|
working lakera ai during call hook
|
2024-08-20 14:39:04 -07:00 |
|
Ishaan Jaff
|
1a142053e5
|
fix make lakera ai free guardrail
|
2024-08-20 14:03:22 -07:00 |
|
Ishaan Jaff
|
042350bd74
|
rename Aporia Guardrail
|
2024-08-20 13:42:55 -07:00 |
|
Ishaan Jaff
|
6f12f6dcf8
|
fix importing _ENTERPRISE_Aporia
|
2024-08-19 20:39:24 -07:00 |
|