Commit graph

24 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
Ishaan Jaff
c8fe600dbf fix case when gemini is used 2024-09-10 17:06:45 -07:00
Ishaan Jaff
7891b3742c fix vertex use async func to set auth creds 2024-09-10 16:12:18 -07:00
Krrish Dholakia
882ae8ac2c fix: initial commit 2024-08-27 17:35:56 -07:00
Krrish Dholakia
074e30fa10 feat(vertex_ai_context_caching.py): support making context caching calls to vertex ai in a normal chat completion call (anthropic caching format)
Closes https://github.com/BerriAI/litellm/issues/5213
2024-08-26 22:19:01 -07:00
Ishaan Jaff
ca74d84196 auto update the model in cachedContents request 2024-08-08 15:56:46 -07:00
Ishaan Jaff
b9e1d60357 add native cachedContents endpoint 2024-08-08 15:32:07 -07:00
Ishaan Jaff
5afb55576e docs default vertex 2024-08-03 18:09:48 -07:00
Ishaan Jaff
e6e539fc4a add vertex ai countTokens endpoint 2024-08-03 17:34:10 -07:00
Ishaan Jaff
01cd07fa75 add vertex embeddings endpoints 2024-08-03 17:26:49 -07:00
Ishaan Jaff
beb7f1b2c6 add vertex generateContent 2024-08-03 17:17:54 -07:00
Ishaan Jaff
a293bebdb1 working code for vertex ai routes 2024-08-03 16:56:33 -07:00
Ishaan Jaff
568fd8aa63 use native endpoints 2024-08-03 16:52:43 -07:00
Ishaan Jaff
41d114f60a add support for pass through vertex ai ft jobs 2024-08-03 11:47:43 -07:00
Ishaan Jaff
37790ef418 fix vertex ai 2024-08-03 08:56:54 -07:00
Ishaan Jaff
9405b40242 fix linting errors 2024-08-03 08:55:36 -07:00
Ishaan Jaff
31c31950a0 test translating to vertex ai params 2024-08-03 08:44:54 -07:00
Ishaan Jaff
f6d9c12ec5 fix typing 2024-08-02 18:49:16 -07:00
Ishaan Jaff
4baf0d691c fix typing 2024-08-02 18:46:43 -07:00
Ishaan Jaff
59464d9d0f add support for sync vertex ft 2024-08-02 18:16:14 -07:00
Ishaan Jaff
0055816f48 fix translating response 2024-08-02 18:13:59 -07:00
Ishaan Jaff
945c719ed9 convert response obj from vertex ai 2024-08-02 18:13:25 -07:00
Ishaan Jaff
264639fb25 translate response from vertex to openai 2024-08-02 18:02:24 -07:00
Ishaan Jaff
b463a290a9 add fine tuning for vertex 2024-08-02 17:23:58 -07:00