Commit graph

25 commits

Author SHA1 Message Date
Krish Dholakia
03e711e3e4 LITELLM: Remove requests library usage (#7235)
* fix(generic_api_callback.py): remove requests lib usage

* fix(budget_manager.py): remove requests lib usgae

* fix(main.py): cleanup requests lib usage

* fix(utils.py): remove requests lib usage

* fix(argilla.py): fix argilla test

* fix(athina.py): replace 'requests' lib usage with litellm module

* fix(greenscale.py): replace 'requests' lib usage with httpx

* fix: remove unused 'requests' lib import + replace usage in some places

* fix(prompt_layer.py): remove 'requests' lib usage from prompt layer

* fix(ollama_chat.py): remove 'requests' lib usage

* fix(baseten.py): replace 'requests' lib usage

* fix(codestral/): replace 'requests' lib usage

* fix(predibase/): replace 'requests' lib usage

* refactor: cleanup unused 'requests' lib imports

* fix(oobabooga.py): cleanup 'requests' lib usage

* fix(invoke_handler.py): remove unused 'requests' lib usage

* refactor: cleanup unused 'requests' lib import

* fix: fix linting errors

* refactor(ollama/): move ollama to using base llm http handler

removes 'requests' lib dep for ollama integration

* fix(ollama_chat.py): fix linting errors

* fix(ollama/completion/transformation.py): convert non-jpeg/png image to jpeg/png before passing to ollama
2024-12-17 12:50:04 -08:00
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
Krrish Dholakia
5f93cae3ff feat(proxy_server.py): return litellm version in response headers 2024-05-08 16:00:08 -07:00
Krrish Dholakia
e1beaf0945 feat(utils.py): support region based pricing for bedrock + use bedrock's token counts if given 2024-01-26 14:53:58 -08:00
Jakob
cbe22b2b49 add headers to budget manager 2024-01-18 16:10:45 -08:00
Krrish Dholakia
79978c44ba refactor: add black formatting 2023-12-25 14:11:20 +05:30
ishaan-jaff
f744445db4 (fix) make print_verbose non blocking 2023-12-07 17:31:32 -08:00
Krrish Dholakia
d0b23a2722 refactor(all-files): removing all print statements; adding pre-commit + flake8 to prevent future regressions 2023-11-04 12:50:15 -07:00
Krrish Dholakia
af0f191f44 remove budget manager 2023-09-30 11:42:56 -07:00
Krrish Dholakia
7c257efb9d update budget manager 2023-09-18 15:48:29 -07:00
Krrish Dholakia
9b71bfb2b5 allow updating budget manager cost by passing in text 2023-09-13 15:12:47 -07:00
Krrish Dholakia
2f9fcfeae1 fix testing 2023-09-12 22:03:51 -07:00
Krrish Dholakia
e32f1073fc update budget manager docs 2023-09-12 20:25:59 -07:00
Krrish Dholakia
7ebf97637c add reset budget on duration end to budget manager 2023-09-12 13:01:55 -07:00
Krrish Dholakia
3c1901216d save budget manager data threaded 2023-09-11 15:53:34 -07:00
Krrish Dholakia
3fa749fbf6 updates to budget manager naming schema 2023-09-11 15:22:52 -07:00
Krrish Dholakia
310adb6874 adding budget manager to docs 2023-09-11 14:51:01 -07:00
Krrish Dholakia
4ebcb033bb return user list from budget manager 2023-09-11 14:15:00 -07:00
Krrish Dholakia
70c539e952 fix linting issues 2023-09-11 13:54:03 -07:00
Krrish Dholakia
e8e6580542 update budget manager with hosted client 2023-09-11 13:46:27 -07:00
Krrish Dholakia
2564bb8fb3 updating budget manager 2023-09-11 10:58:09 -07:00
Krrish Dholakia
7514f7d401 fix linting issues 2023-09-09 20:23:18 -07:00
Krrish Dholakia
88263faf76 update budget manager 2023-09-09 20:06:09 -07:00
ishaan-jaff
6594983ade store llm costs in budget manager 2023-09-09 19:11:35 -07:00
Krrish Dholakia
9c715deb57 rename apimanager to budget manager 2023-09-09 16:10:41 -07:00
Renamed from litellm/apimanager.py (Browse further)