Commit graph

31 commits

Author SHA1 Message Date
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
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
c76d2c6ade
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
b0178a85cf refactor get_secret 2024-09-03 10:42:12 -07:00
Ishaan Jaff
dad4bd58bc (feat) stop eagerly evaluating fstring 2024-03-25 09:01:42 -07:00
ishaan-jaff
44202aa25b (fix) dynamo db test - new model_spend params 2024-02-17 16:00:08 -08:00
Krrish Dholakia
34fce00960 fix: dynamo_db.py
handle permissions row
2024-02-15 20:36:59 -08:00
Ishaan Jaff
003feda33f
Merge branch 'main' into litellm_dynamo_use_arn 2024-02-13 21:27:38 -08:00
ishaan-jaff
c4038e38e5 (fix) dyanmo fixes 2024-02-12 19:54:39 -08:00
Krrish Dholakia
551a4c60a7 fix(dynamo_db.py): eliminating unneccessary params 2024-02-07 22:52:15 -08:00
ishaan-jaff
9c13c65ce2 (dynamo) use assume_role_with_web_identity 2024-02-02 10:57:06 -08:00
ishaan-jaff
96c9fd3f02 (fix) patch -For DynamoDB Backwards Compatibility 2024-01-29 16:52:31 -08:00
ishaan-jaff
2e64ca9057 (fix) dynamoDB + hashed tokens bug 2024-01-29 11:17:27 -08:00
ishaan-jaff
2c79585e18 (fix) dynamo - use hashed_api keys in table 2024-01-26 14:32:00 -08:00
Krrish Dholakia
0752048b81 fix(dynamo_db.py): fix update bug 2024-01-24 21:29:56 -08:00
ishaan-jaff
9b39893980 v0 set arn number on dynamoDB /key/gen 2024-01-24 10:29:28 -08:00
ishaan-jaff
5b54bcc712 (feat) spendLogs table DynamoDB 2024-01-18 12:39:11 -08:00
Krrish Dholakia
cff9f7fee6 fix(proxy_server.py): handle empty insert_data response 2024-01-17 17:28:23 -08:00
Krrish Dholakia
98b83fa780 feat(proxy_server.py): support model access groups 2024-01-17 15:45:31 -08:00
ishaan-jaff
d59ac23e82 (fix) proxy, dynamo - allow users to set ssl_verify False 2024-01-16 16:13:55 -08:00
ishaan-jaff
340cca5ac3 Revert "Revert "(fix) dynamoDB import issues""
This reverts commit 6181b95ab3.
2024-01-15 16:48:10 -08:00
ishaan-jaff
6181b95ab3 Revert "(fix) dynamoDB import issues"
This reverts commit b931841e60.
2024-01-15 12:04:13 -08:00
ishaan-jaff
1f62637197 (fix) proxy + dynamo - add some debugging 2024-01-15 12:03:10 -08:00
ishaan-jaff
b931841e60 (fix) dynamoDB import issues 2024-01-13 11:38:42 -08:00
Krrish Dholakia
be1ebe36a1 fix(dynamo_db.py): allow user to specify table names 2024-01-13 18:35:19 +05:30
Krrish Dholakia
352f943dcf fix(dynamo_db.py): don't auto-create tables, allow database_type == 'dynamodb' 2024-01-12 11:33:40 +05:30
Krrish Dholakia
f94a37a836 fix(dynamo_db.py): add cost tracking support for key + user 2024-01-11 23:56:41 +05:30
Krrish Dholakia
9b3d78c4f3 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
befbcbb7ac fix: fix linting issues 2024-01-09 22:55:18 +05:30
Krrish Dholakia
ba7026639d fix: fix linting errors 2024-01-09 22:16:16 +05:30
Krrish Dholakia
35f9666dc2 feat(proxy_server.py): adds working dynamo db support for key gen 2024-01-09 18:23:34 +05:30