Commit graph

30 commits

Author SHA1 Message Date
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
0b249278bb Refactor 'check_view_exists' logic (#5659)
* fix(proxy/utils.py): comment out auto-upsert logic in check_view_exists

Prevents proxy from failing on startup due to faulty logic

* fix(db/migration_scripts/create_views.py): fix 'DailyTagSpend' quotation on check

* fix(create_views.py): mongly global spend time period should be 30d not 20d

* fix(schema.prisma): index on startTime and endUser for efficient UI querying
2024-09-12 13:39:50 -07:00
Ishaan Jaff
09519b74db refactor get_secret 2024-09-03 10:42:12 -07:00
Ishaan Jaff
2c01457a4b (feat) stop eagerly evaluating fstring 2024-03-25 09:01:42 -07:00
ishaan-jaff
0102a2b198 (fix) dynamo db test - new model_spend params 2024-02-17 16:00:08 -08:00
Krrish Dholakia
55b37789d6 fix: dynamo_db.py
handle permissions row
2024-02-15 20:36:59 -08:00
Ishaan Jaff
8b1ee3499e Merge branch 'main' into litellm_dynamo_use_arn 2024-02-13 21:27:38 -08:00
ishaan-jaff
79a069ad3a (fix) dyanmo fixes 2024-02-12 19:54:39 -08:00
Krrish Dholakia
2537b74716 fix(dynamo_db.py): eliminating unneccessary params 2024-02-07 22:52:15 -08:00
ishaan-jaff
63ddba34b2 (dynamo) use assume_role_with_web_identity 2024-02-02 10:57:06 -08:00
ishaan-jaff
95fde4a307 (fix) patch -For DynamoDB Backwards Compatibility 2024-01-29 16:52:31 -08:00
ishaan-jaff
e672e5b928 (fix) dynamoDB + hashed tokens bug 2024-01-29 11:17:27 -08:00
ishaan-jaff
10721684f0 (fix) dynamo - use hashed_api keys in table 2024-01-26 14:32:00 -08:00
Krrish Dholakia
e57f40ea26 fix(dynamo_db.py): fix update bug 2024-01-24 21:29:56 -08:00
ishaan-jaff
5fb136ab5f v0 set arn number on dynamoDB /key/gen 2024-01-24 10:29:28 -08:00
ishaan-jaff
d42db904f6 (feat) spendLogs table DynamoDB 2024-01-18 12:39:11 -08:00
Krrish Dholakia
7a80df83b2 fix(proxy_server.py): handle empty insert_data response 2024-01-17 17:28:23 -08:00
Krrish Dholakia
5242200243 feat(proxy_server.py): support model access groups 2024-01-17 15:45:31 -08:00
ishaan-jaff
a05857734d (fix) proxy, dynamo - allow users to set ssl_verify False 2024-01-16 16:13:55 -08:00
ishaan-jaff
fd997d2f09 Revert "Revert "(fix) dynamoDB import issues""
This reverts commit 6181b95ab3.
2024-01-15 16:48:10 -08:00
ishaan-jaff
2194b2fef1 Revert "(fix) dynamoDB import issues"
This reverts commit b931841e60.
2024-01-15 12:04:13 -08:00
ishaan-jaff
ed2287e966 (fix) proxy + dynamo - add some debugging 2024-01-15 12:03:10 -08:00
ishaan-jaff
a3d84ad2e3 (fix) dynamoDB import issues 2024-01-13 11:38:42 -08:00
Krrish Dholakia
57198db38e fix(dynamo_db.py): allow user to specify table names 2024-01-13 18:35:19 +05:30
Krrish Dholakia
ff0daf3daf fix(dynamo_db.py): don't auto-create tables, allow database_type == 'dynamodb' 2024-01-12 11:33:40 +05:30
Krrish Dholakia
135e4b6ac4 fix(dynamo_db.py): add cost tracking support for key + user 2024-01-11 23:56:41 +05:30
Krrish Dholakia
c68753d560 fix(dynamo_db.py): if table create fails, tell user what the table + hash key needs to be 2024-01-11 23:01:28 +05:30
Krrish Dholakia
3b829284f6 fix: fix linting issues 2024-01-09 22:55:18 +05:30
Krrish Dholakia
53f0169c39 fix: fix linting errors 2024-01-09 22:16:16 +05:30
Krrish Dholakia
00c258c165 feat(proxy_server.py): adds working dynamo db support for key gen 2024-01-09 18:23:34 +05:30