Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1956 commits
Select commit Hold shift + click to select a range
2449d25
(docs) add 1k rps load test doc (#6059)
ishaan-jaff Oct 4, 2024
e394ed1
(fixes) docs + qa - gcs key based logging (#6061)
ishaan-jaff Oct 4, 2024
69c96d9
bump: version 1.48.12 → 1.48.13
ishaan-jaff Oct 4, 2024
3c59d18
ci/cd run again
ishaan-jaff Oct 4, 2024
45a981a
bump: version 1.48.13 → 1.48.14
ishaan-jaff Oct 4, 2024
0c9c429
update load test doc
ishaan-jaff Oct 4, 2024
6d1de8e
(docs) router settings - on litellm config (#6037)
ishaan-jaff Oct 4, 2024
fc6e0dd
(feat) OpenAI prompt caching models to model cost map (#6063)
ishaan-jaff Oct 4, 2024
2e5c46e
LiteLLM Minor Fixes & Improvements (10/04/2024) (#6064)
Oct 5, 2024
4c9dea9
bump: version 1.48.14 → 1.48.15
Oct 5, 2024
4e921be
fix(gcs_bucket.py): show error response text in exception (#6072)
Oct 5, 2024
c84cfe9
(feat) add /key/health endpoint to test key based logging (#6073)
ishaan-jaff Oct 5, 2024
930606a
add azure o1 models to model cost map (#6075)
ishaan-jaff Oct 5, 2024
3682f66
(feat) add cost tracking for OpenAI prompt caching (#6055)
ishaan-jaff Oct 5, 2024
530915d
add o-1 to Azure docs
ishaan-jaff Oct 5, 2024
d2f17cf
docs routing config table
ishaan-jaff Oct 5, 2024
5ee1342
(docs) reference router settings general settings etc (#6078)
ishaan-jaff Oct 5, 2024
7267852
linting error fix
ishaan-jaff Oct 5, 2024
ab0b536
(feat) add azure openai cost tracking for prompt caching (#6077)
ishaan-jaff Oct 5, 2024
d533acd
openrouter/openai's litellm_provider should be openrouter, not openai…
GTonehour Oct 5, 2024
6e6d388
docs fix
ishaan-jaff Oct 5, 2024
3cb0448
(code clean up) use a folder for gcs bucket logging + add readme in f…
ishaan-jaff Oct 5, 2024
f7ce117
bump: version 1.48.15 → 1.48.16
ishaan-jaff Oct 5, 2024
fac3b2e
Add pyright to ci/cd + Fix remaining type-checking errors (#6082)
Oct 5, 2024
f2c0a31
LiteLLM Minor Fixes & Improvements (10/05/2024) (#6083)
Oct 5, 2024
04e5963
Litellm expose disable schema update flag (#6085)
Oct 6, 2024
29da2d4
bump: version 1.48.16 → 1.48.17
Oct 6, 2024
49d8b2b
fix(utils.py): fix fix pydantic obj to schema creation for vertex en…
Oct 6, 2024
fd7014a
correct use of healthy / unhealthy
ishaan-jaff Oct 6, 2024
b2fbee3
docs key logging
ishaan-jaff Oct 6, 2024
e007bb6
Proxy: include customer budget in responses (#5977)
kvadros Oct 7, 2024
abe8059
ui - fix view user pagination
ishaan-jaff Oct 7, 2024
a762831
(proxy ui) - fix view user pagination (#6094)
ishaan-jaff Oct 7, 2024
51af0d5
(proxy ui sso flow) - fix invite user sso flow (#6093)
ishaan-jaff Oct 7, 2024
285b589
ui new build
ishaan-jaff Oct 7, 2024
2c8bba2
(bug fix) TTL not being set for embedding caching requests (#6095)
ishaan-jaff Oct 7, 2024
1bafbf8
(feat proxy) add v2 maintained LiteLLM grafana dashboard (#6098)
ishaan-jaff Oct 7, 2024
a0cbf31
Update readme.md
ishaan-jaff Oct 7, 2024
b1e9d34
Update readme.md
ishaan-jaff Oct 7, 2024
5afc45d
bump: version 1.48.17 → 1.48.18
ishaan-jaff Oct 7, 2024
b7ba558
fix links due to broken list (#6103)
pradhyumna85 Oct 7, 2024
2b370f8
(docs) key based callbacks (#6107)
ishaan-jaff Oct 8, 2024
ef815f3
(docs) add remaining litellm settings on configs.md doc (#6108)
ishaan-jaff Oct 8, 2024
d742e8c
(clean up) move docker files from root to `docker` folder (#6109)
ishaan-jaff Oct 8, 2024
59b247a
fix config.yml
ishaan-jaff Oct 8, 2024
5de69cb
fix using Dockerfile
ishaan-jaff Oct 8, 2024
6729c9c
LiteLLM Minor Fixes & Improvements (10/07/2024) (#6101)
Oct 8, 2024
9ee1a3f
bump: version 1.48.18 → 1.48.19
Oct 8, 2024
cc960da
docs(azure.md): add o1 model support to config
Oct 8, 2024
d1760b1
(fix) clean up root repo - move entrypoint.sh and build_admin_ui to /…
ishaan-jaff Oct 8, 2024
92a1924
trigger ci/cd run
ishaan-jaff Oct 8, 2024
b68fee4
(fix) Fix Groq pricing for llama3.1 (#6114)
kiriloman Oct 8, 2024
ac6fb0c
Fix: Literal AI llm completion logging (#6096)
willydouhard Oct 8, 2024
9695c1a
LiteLLM Minor Fixes & Improvements (10/08/2024) (#6119)
Oct 9, 2024
945267a
build: bump version
Oct 9, 2024
1fd437e
(feat proxy) [beta] add support for organization role based access co…
ishaan-jaff Oct 9, 2024
a0bebc3
fix literal ai typing errors
ishaan-jaff Oct 9, 2024
8a9bb51
fix schema.prisma change
ishaan-jaff Oct 9, 2024
0e83a68
doc - move rbac under auth
ishaan-jaff Oct 9, 2024
54d8d46
remove unused file from root
ishaan-jaff Oct 9, 2024
0058463
fix get_all_team_memberships
ishaan-jaff Oct 9, 2024
4b4bb92
bump: version 1.48.20 → 1.49.0
ishaan-jaff Oct 9, 2024
74ae7de
uo fixes for default team (#6134)
ishaan-jaff Oct 9, 2024
fa1451a
ui new build
ishaan-jaff Oct 9, 2024
399f50d
fix rbac doc
ishaan-jaff Oct 9, 2024
5da6863
docs rbac
ishaan-jaff Oct 9, 2024
b35da50
doc onboarding orgs
ishaan-jaff Oct 9, 2024
60baa65
docs(configs.md): add litellm config / s3 bucket object info in confi…
Oct 9, 2024
6005450
LiteLLM Minor Fixes & Improvements (10/09/2024) (#6139)
Oct 10, 2024
8950605
(feat) use regex pattern matching for wildcard routing (#6150)
ishaan-jaff Oct 10, 2024
4064bfc
[Feat] Observability integration - Opik by Comet (#6062)
jverre Oct 10, 2024
fbf7568
fix opik types
ishaan-jaff Oct 10, 2024
aadbbe9
fix _opik logger
ishaan-jaff Oct 10, 2024
1a9d9e1
fix typing on opik.py
ishaan-jaff Oct 10, 2024
98b1abb
drop imghdr (#5736) (#6153)
ishaan-jaff Oct 10, 2024
63c6361
bump: version 1.49.0 → 1.49.1
ishaan-jaff Oct 10, 2024
d28c6b3
fix pattern match router
ishaan-jaff Oct 11, 2024
8b00d2a
Add literalai in the sidebar observability category (#6163)
willydouhard Oct 11, 2024
42174fd
update (#6160)
yujonglee Oct 11, 2024
7ec414a
Feat: Add Langtrace integration (#5341)
alizenhom Oct 11, 2024
4e1c892
docs fix
ishaan-jaff Oct 11, 2024
2a5624a
(perf) move s3 logging to Batch logging + async [94% faster perf unde…
ishaan-jaff Oct 11, 2024
91ecb36
Revert "(perf) move s3 logging to Batch logging + async [94% faster p…
ishaan-jaff Oct 12, 2024
9db4ccc
add azure/gpt-4o-2024-05-13 (#6174)
ishaan-jaff Oct 12, 2024
11f9df9
LiteLLM Minor Fixes & Improvements (10/10/2024) (#6158)
Oct 12, 2024
b032e89
(fix) batch_completion fails with bedrock due to extraneous [max_work…
ishaan-jaff Oct 12, 2024
80ecf08
(fix) provider wildcard routing - when models specificed without prov…
ishaan-jaff Oct 12, 2024
2cb65b4
bump: version 1.49.1 → 1.49.2
ishaan-jaff Oct 12, 2024
2acb0c0
Litellm Minor Fixes & Improvements (10/12/2024) (#6179)
Oct 12, 2024
fc13c02
build(config.yml): add codecov to repo (#6172)
Oct 12, 2024
a208c27
ci(config.yml): run all router tests
Oct 12, 2024
d350733
ci(config.yml): add local_testing tests to codecov coverage check (#6…
Oct 13, 2024
9f50686
ci(config.yml): add further testing coverage to codecov (#6184)
Oct 13, 2024
15b44c3
docs(configs.md): document all environment variables (#6185)
Oct 13, 2024
806a1c4
docs: make it easier to find anthropic/openai prompt caching doc
Oct 14, 2024
99cf295
aded codecov yml (#6207)
ishaan-jaff Oct 14, 2024
7cb75f2
fix codecov.yaml
ishaan-jaff Oct 14, 2024
20e50d7
run ci/cd again
ishaan-jaff Oct 14, 2024
4d1b4be
(refactor) caching use LLMCachingHandler for async_get_cache and set_…
ishaan-jaff Oct 14, 2024
603299e
(feat) prometheus have well defined latency buckets (#6211)
ishaan-jaff Oct 14, 2024
c677fea
fix prom testing
ishaan-jaff Oct 14, 2024
78f3228
fix config.yml
ishaan-jaff Oct 14, 2024
d1bef4a
(refactor caching) use LLMCachingHandler for caching streaming respon…
ishaan-jaff Oct 14, 2024
4132a97
bump (#6187)
yujonglee Oct 14, 2024
fac1bb4
update code cov yaml
ishaan-jaff Oct 14, 2024
23b4ded
fix config.yml
ishaan-jaff Oct 14, 2024
045a029
add caching component to code cov
ishaan-jaff Oct 14, 2024
ef2b8b0
fix config.yml ci/cd
ishaan-jaff Oct 14, 2024
284deaf
add coverage for proxy auth
ishaan-jaff Oct 14, 2024
4ebe681
(refactor caching) use common `_retrieve_from_cache` helper (#6212)
ishaan-jaff Oct 14, 2024
cc6f34e
bump: version 1.49.2 → 1.49.3
ishaan-jaff Oct 14, 2024
0761a03
fix code cov components
ishaan-jaff Oct 14, 2024
d0a3052
(refactor router.py ) - PR 3 - Ensure all functions under 100 lines (…
ishaan-jaff Oct 14, 2024
cda0a99
fix importing Cache from litellm (#6219)
ishaan-jaff Oct 15, 2024
39486e2
Litellm dev 10 14 2024 (#6221)
Oct 15, 2024
1eb435e
test(router_code_coverage.py): check if all router functions are dire…
Oct 15, 2024
e9a46b9
bump: version 1.49.3 → 1.49.4
Oct 15, 2024
a69c670
(refactor) use helper function `_assemble_complete_response_from_stre…
ishaan-jaff Oct 15, 2024
846bb4c
(refactor) OTEL - use safe_set_attribute for setting attributes (#6226)
ishaan-jaff Oct 15, 2024
1994100
(fix) prompt caching cost calculation OpenAI, Azure OpenAI (#6231)
ishaan-jaff Oct 15, 2024
6909d8e
fix arize handle optional params (#6243)
ishaan-jaff Oct 16, 2024
b8d4973
Bump hono from 4.5.8 to 4.6.5 in /litellm-js/spend-logs (#6245)
dependabot[bot] Oct 16, 2024
da6a7c3
(refactor) caching - use _sync_set_cache (#6224)
ishaan-jaff Oct 16, 2024
c1657ef
bump: version 1.49.4 → 1.49.5
ishaan-jaff Oct 16, 2024
c390b07
fix RerankResponse make meta optional (#6248)
ishaan-jaff Oct 16, 2024
183bd5d
(testing - litellm.Router ) add unit test coverage for pattern matchi…
ishaan-jaff Oct 16, 2024
97ba4ee
(refactor) sync caching - use `LLMCachingHandler` class for get_cache…
ishaan-jaff Oct 16, 2024
d9a7165
(refactor) - caching use separate files for each cache class (#6251)
ishaan-jaff Oct 16, 2024
fc5b75d
(router testing) Add testing coverage for `run_async_fallback` and `r…
ishaan-jaff Oct 16, 2024
54ebdbf
LiteLLM Minor Fixes & Improvements (10/15/2024) (#6242)
Oct 16, 2024
8530000
(testing) Router add testing coverage (#6253)
ishaan-jaff Oct 16, 2024
891e900
(testing) add router unit testing for `send_llm_exception_alert` , `r…
ishaan-jaff Oct 16, 2024
e22e8d2
Litellm router code coverage 3 (#6274)
Oct 17, 2024
43878bd
remove ask mode (#6271)
yujonglee Oct 17, 2024
38a9a10
LiteLLM Minor Fixes & Improvements (10/16/2024) (#6265)
Oct 17, 2024
81766e7
bump: version 1.49.5 → 1.49.6
Oct 17, 2024
dd4f01a
Revert "(perf) move s3 logging to Batch logging + async [94% faster p…
ishaan-jaff Oct 17, 2024
5bada7c
fix otel tests
ishaan-jaff Oct 17, 2024
4554bf7
(testing) add test coverage for LLM OTEL logging (#6227)
ishaan-jaff Oct 17, 2024
202b5cc
test_awesome_otel_with_message_logging_off
ishaan-jaff Oct 17, 2024
f724f31
(testing) add unit tests for LLMCachingHandler Class (#6279)
ishaan-jaff Oct 17, 2024
22d95c9
fix(ui_sso.py): fix faulty admin check
Oct 17, 2024
5e381ca
Revert "fix(ui_sso.py): fix faulty admin check"
Oct 17, 2024
f252350
LiteLLM Minor Fixes & Improvements (10/17/2024) (#6293)
Oct 18, 2024
87f256b
docs(user_keys.md): add regex doc for clientside auth params
Oct 18, 2024
4f5ff65
docs(argilla.md): add doc on argilla logging
Oct 18, 2024
6e7e962
docs(argilla.md): add sampling rate to argilla calls
Oct 18, 2024
c298535
bump: version 1.49.6 → 1.49.7
Oct 18, 2024
7724d58
add gpt-4o-audio models to model cost map (#6306)
ishaan-jaff Oct 18, 2024
610974b
(code quality) add ruff check PLR0915 for `too-many-statements` (#6309)
ishaan-jaff Oct 18, 2024
e35fc32
doc fix Turn on / off caching per Key. (#6297)
ishaan-jaff Oct 18, 2024
13e0b3f
(feat) Support `audio`, `modalities` params (#6304)
ishaan-jaff Oct 18, 2024
a0d45ba
(feat) Support audio param in responses streaming (#6312)
ishaan-jaff Oct 18, 2024
19eff1a
(feat) - allow using os.environ/ vars for any value on config.yaml (…
ishaan-jaff Oct 19, 2024
89c71f1
bump: version 1.49.7 → 1.50.0
ishaan-jaff Oct 19, 2024
4cbdad9
doc - using gpt-4o-audio-preview (#6326)
ishaan-jaff Oct 19, 2024
979e8ea
(refactor) `get_cache_key` to be under 100 LOC function (#6327)
ishaan-jaff Oct 19, 2024
c58d542
Litellm openai audio streaming (#6325)
Oct 19, 2024
7cc12bd
LiteLLM Minor Fixes & Improvements (10/18/2024) (#6320)
Oct 20, 2024
905ebeb
feat(custom_logger.py): expose new `async_dataset_hook` for modifying…
Oct 20, 2024
f4630a0
fix - unhandled jsonDecodeError in `convert_to_model_response_object`…
ishaan-jaff Oct 21, 2024
11adc12
add unit tests for init callbacks
ishaan-jaff Oct 21, 2024
24a3090
fix init logger tests
ishaan-jaff Oct 21, 2024
bd9e29b
working test for init custom logger
ishaan-jaff Oct 21, 2024
d1f457d
(testing) add test coverage for init custom logger class (#6341)
ishaan-jaff Oct 21, 2024
fb523b7
bump: version 1.50.0 → 1.50.1
ishaan-jaff Oct 21, 2024
274bf3e
(fix) get_response_headers for Azure OpenAI (#6344)
ishaan-jaff Oct 21, 2024
c7bf693
fix(litellm-helm): correctly use dbReadyImage and dbReadyTag values (…
Hexoplon Oct 21, 2024
199896f
fix(proxy_server.py): add 'admin' user to db (#6223)
Oct 21, 2024
7338b24
refactor(redis_cache.py): use a default cache value when writing to r…
Oct 21, 2024
2b9db05
feat(proxy_cli.py): add new 'log_config' cli param (#6352)
Oct 22, 2024
e30a274
docs(sidebars.js): add jina ai embedding to docs
Oct 22, 2024
e6e518a
docs(sidebars.js): add jina ai to left nav
Oct 22, 2024
a5fe87d
bump: version 1.50.1 → 1.50.2
Oct 22, 2024
eca09ad
langfuse use helper for get_langfuse_logging_config
ishaan-jaff Oct 22, 2024
a0c5fee
Refactor: apply early return (#6369)
Haknt Oct 22, 2024
7a5f997
(refactor) remove berrispendLogger - unused logging integration (#6363)
ishaan-jaff Oct 22, 2024
666741d
Merge remote-tracking branch 'origin/main'
ishaan-jaff Oct 22, 2024
7853cb7
fix docs configs.md
ishaan-jaff Oct 22, 2024
8359cb6
(fix) standard logging metadata + add unit testing (#6366)
ishaan-jaff Oct 22, 2024
400cbff
Revert "(fix) standard logging metadata + add unit testing (#6366)" …
ishaan-jaff Oct 22, 2024
21ace6d
add new 35 mode lcard (#6378)
lowjiansheng Oct 22, 2024
7939e93
Add claude 3 5 sonnet 20241022 models for all provides (#6380)
Manouchehri Oct 22, 2024
24a0d26
test(skip-flaky-google-context-caching-test): google is not reliable.…
Oct 22, 2024
f943410
test(test_alangfuse.py): handle flaky langfuse test better
Oct 22, 2024
b75019c
(feat) Arize - Allow using Arize HTTP endpoint (#6364)
ishaan-jaff Oct 23, 2024
cb2563e
Litellm dev 10 22 2024 (#6384)
Oct 23, 2024
0a92923
bump: version 1.50.2 → 1.50.3
Oct 23, 2024
64c3d32
build(deps): bump http-proxy-middleware in /docs/my-website (#6395)
dependabot[bot] Oct 23, 2024
807e9dc
(docs + testing) Correctly document the timeout value used by litellm…
ishaan-jaff Oct 23, 2024
ae01de0
add code cov checks
ishaan-jaff Oct 23, 2024
85f1e5c
fix comment
ishaan-jaff Oct 23, 2024
3991d75
(refactor) move convert dict to model response to llm_response_utils/…
ishaan-jaff Oct 23, 2024
b70147f
(refactor) litellm.Router client initialization utils (#6394)
ishaan-jaff Oct 23, 2024
72a91ea
(fix) Langfuse key based logging (#6372)
ishaan-jaff Oct 23, 2024
d063086
Revert "(refactor) litellm.Router client initialization utils (#6394…
ishaan-jaff Oct 23, 2024
182adec
def test_text_completion_with_echo(stream): (#6401)
ishaan-jaff Oct 23, 2024
bcce21a
fix linting - remove # noqa PLR0915 from fixed function
ishaan-jaff Oct 23, 2024
ca09f4a
test: cleanup codestral tests - backend api unavailable
Oct 24, 2024
cdda7c2
(refactor) prometheus async_log_success_event to be under 100 LOC (#…
ishaan-jaff Oct 24, 2024
17e81d8
(refactor) router - use static methods for client init utils (#6420)
ishaan-jaff Oct 24, 2024
c731ba4
(code cleanup) remove unused and undocumented logging integrations - …
ishaan-jaff Oct 24, 2024
0f0470f
bump: version 1.50.3 → 1.50.4
ishaan-jaff Oct 24, 2024
d59f8f9
perf: remove 'always_read_redis' - adding +830ms on each llm call (#6…
Oct 25, 2024
c04c4a8
feat(litellm_logging.py): refactor standard_logging_payload function …
Oct 25, 2024
1cd1d23
LiteLLM Minor Fixes & Improvements (10/23/2024) (#6407)
Oct 25, 2024
cce118e
track created, updated at virtual keys
ishaan-jaff Oct 25, 2024
8cd8d47
add created_at, updated_at for verification token
ishaan-jaff Oct 25, 2024
cc8dd80
allow configuring httpx hooks for AsyncHTTPHandler (#6290) (#6415)
Oct 25, 2024
4e31005
feat(proxy_server.py): check if views exist on proxy server startup +…
Oct 25, 2024
9fccf82
feat(litellm_pre_call_utils.py): support 'add_user_information_to_llm…
Oct 25, 2024
2d2a2c3
ui show created at date
ishaan-jaff Oct 25, 2024
c4cab88
add key/{token_id}/regenerate to internal user routes
ishaan-jaff Oct 25, 2024
2e0f501
use static methods for Routechecks
ishaan-jaff Oct 25, 2024
cdb94ff
use helper for _route_matches_pattern
ishaan-jaff Oct 25, 2024
574f07d
test_is_ui_route_allowed
ishaan-jaff Oct 25, 2024
c42ec81
fix name of tests on config
ishaan-jaff Oct 25, 2024
7db8d8b
unit test route checks
ishaan-jaff Oct 25, 2024
99c7211
fix RouteChecks test
ishaan-jaff Oct 25, 2024
5485a2a
Merge pull request #6429 from BerriAI/litellm_ui_show_created_at_for_key
ishaan-jaff Oct 25, 2024
7c4c3a2
fix typing on StandardLoggingMetadata
ishaan-jaff Oct 25, 2024
646f4c4
add unit testing for non_proxy_admin_allowed_routes_check
ishaan-jaff Oct 25, 2024
ab15028
use separate file for create_audit_log_for_update
ishaan-jaff Oct 25, 2024
b0bf182
fix LitellmTableNames type
ishaan-jaff Oct 25, 2024
61e28eb
fix StandardLoggingMetadata with user_api_key_org_id
ishaan-jaff Oct 25, 2024
eb24ce2
fix create_audit_log_for_update
ishaan-jaff Oct 25, 2024
c275556
fix code quality
ishaan-jaff Oct 25, 2024
8cf0191
unit testing test_create_audit_log_in_db
ishaan-jaff Oct 25, 2024
a047fd1
Merge pull request #6436 from BerriAI/litellm_code_cov_2
ishaan-jaff Oct 25, 2024
6f1c06f
fix test audit logs
ishaan-jaff Oct 25, 2024
dbf8b8d
fix type error
ishaan-jaff Oct 25, 2024
6c21d09
Merge pull request #6430 from BerriAI/litellm_allow_internal_user_to_…
ishaan-jaff Oct 25, 2024
81157aa
fix linting
ishaan-jaff Oct 25, 2024
b8d91b3
ui new build
ishaan-jaff Oct 25, 2024
38708a3
bump: version 1.50.4 → 1.51.0
ishaan-jaff Oct 25, 2024
c03e5da
LiteLLM Minor Fixes & Improvements (10/24/2024) (#6421)
Oct 25, 2024
b3141e1
Merge pull request #6433 from BerriAI/litellm_fix_audit_logs
ishaan-jaff Oct 26, 2024
fb9fb34
(UI) Delete Internal Users on Admin UI (#6442)
ishaan-jaff Oct 26, 2024
151991c
(testing) increase prometheus.py test coverage to 90% (#6466)
ishaan-jaff Oct 28, 2024
030ece8
(Feat) New Logging integration - add Datadog LLM Observability suppor…
ishaan-jaff Oct 28, 2024
828631d
add pricing for amazon.titan-embed-image-v1 (#6444)
ishaan-jaff Oct 28, 2024
f44ab00
LiteLLM Minor Fixes & Improvements (10/24/2024) (#6441)
Oct 28, 2024
70111a7
Litellm dev 10 26 2024 (#6472)
Oct 28, 2024
d9e7818
(Testing) Add unit testing for DualCache - ensure in memory cache is …
ishaan-jaff Oct 29, 2024
4f8a3fd
redis otel tracing + async support for latency routing (#6452)
Oct 29, 2024
69b1bc1
(fix) Prometheus - Log Postgres DB latency, status on prometheus (#6…
ishaan-jaff Oct 29, 2024
f9ba74e
docs clarify vertex vs gemini
ishaan-jaff Oct 29, 2024
0033d23
Update utils.py
mrT23 Oct 29, 2024
acc5e48
Update pyproject.toml
mrT23 Oct 29, 2024
8ed6769
Update utils.py
mrT23 Oct 29, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
705 changes: 675 additions & 30 deletions .circleci/config.yml

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion .circleci/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# used by CI/CD testing
openai==1.34.0
openai==1.52.0
python-dotenv
tiktoken
importlib_metadata
Expand Down
3 changes: 2 additions & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@
"ms-python.python",
"ms-python.vscode-pylance",
"GitHub.copilot",
"GitHub.copilot-chat"
"GitHub.copilot-chat",
"ms-python.autopep8"
]
}
},
Expand Down
6 changes: 6 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,9 @@ cookbook
.circleci
.github
tests
.git
.github
.circleci
.devcontainer
*.tgz
log.txt
59 changes: 54 additions & 5 deletions .github/workflows/ghcr_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ jobs:
with:
context: .
push: true
file: Dockerfile.database
file: ./docker/Dockerfile.database
tags: litellm/litellm-database:${{ github.event.inputs.tag || 'latest' }}
-
name: Build and push litellm-spend-logs image
Expand Down Expand Up @@ -149,11 +149,50 @@ jobs:
uses: docker/build-push-action@f2a1d5e99d037542a71f64918e516c093c6f3fc4
with:
context: .
file: Dockerfile.database
file: ./docker/Dockerfile.database
push: true
tags: ${{ steps.meta-database.outputs.tags }}-${{ github.event.inputs.tag || 'latest' }}, ${{ steps.meta-database.outputs.tags }}-${{ github.event.inputs.release_type }}
labels: ${{ steps.meta-database.outputs.labels }}
platforms: local,linux/amd64,linux/arm64,linux/arm64/v8

build-and-push-image-non_root:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
ref: ${{ github.event.inputs.commit_hash }}

- name: Log in to the Container registry
uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Extract metadata (tags, labels) for non_root Dockerfile
id: meta-non_root
uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}-non_root
# Configure multi platform Docker builds
- name: Set up QEMU
uses: docker/setup-qemu-action@e0e4588fad221d38ee467c0bffd91115366dc0c5
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@edfb0fe6204400c56fbfd3feba3fe9ad1adfa345

- name: Build and push non_root Docker image
uses: docker/build-push-action@f2a1d5e99d037542a71f64918e516c093c6f3fc4
with:
context: .
file: ./docker/Dockerfile.non_root
push: true
tags: ${{ steps.meta-non_root.outputs.tags }}-${{ github.event.inputs.tag || 'latest' }}, ${{ steps.meta-non_root.outputs.tags }}-${{ github.event.inputs.release_type }}
labels: ${{ steps.meta-non_root.outputs.labels }}
platforms: local,linux/amd64,linux/arm64,linux/arm64/v8

build-and-push-image-spend-logs:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -194,12 +233,14 @@ jobs:
platforms: local,linux/amd64,linux/arm64,linux/arm64/v8

build-and-push-helm-chart:
if: github.event.inputs.release_type != 'dev'
needs: [docker-hub-deploy, build-and-push-image, build-and-push-image-database]
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
ref: ${{ github.event.inputs.commit_hash }}
fetch-depth: 0

- name: Log in to the Container registry
uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1
Expand All @@ -211,9 +252,17 @@ jobs:
- name: lowercase github.repository_owner
run: |
echo "REPO_OWNER=`echo ${{github.repository_owner}} | tr '[:upper:]' '[:lower:]'`" >>${GITHUB_ENV}

- name: Get LiteLLM Latest Tag
id: current_app_tag
uses: WyriHaximus/github-action-get-previous-tag@v1.3.0
shell: bash
run: |
LATEST_TAG=$(git describe --tags --exclude "*dev*" --abbrev=0)
if [ -z "${LATEST_TAG}" ]; then
echo "latest_tag=latest" | tee -a $GITHUB_OUTPUT
else
echo "latest_tag=${LATEST_TAG}" | tee -a $GITHUB_OUTPUT
fi

- name: Get last published chart version
id: current_version
Expand Down Expand Up @@ -241,7 +290,7 @@ jobs:
name: ${{ env.CHART_NAME }}
repository: ${{ env.REPO_OWNER }}
tag: ${{ github.event.inputs.chartVersion || steps.bump_version.outputs.next-version || '0.1.0' }}
app_version: ${{ steps.current_app_tag.outputs.tag || 'latest' }}
app_version: ${{ steps.current_app_tag.outputs.latest_tag }}
path: deploy/charts/${{ env.CHART_NAME }}
registry: ${{ env.REGISTRY }}
registry_username: ${{ github.actor }}
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/ghcr_helm_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ jobs:
current-version: ${{ steps.current_version.outputs.current-version || '0.1.0' }}
version-fragment: 'bug'

- name: Lint helm chart
run: helm lint deploy/charts/litellm-helm

- uses: ./.github/actions/helm-oci-chart-releaser
with:
name: litellm-helm
Expand All @@ -61,4 +64,4 @@ jobs:
registry_username: ${{ github.actor }}
registry_password: ${{ secrets.GITHUB_TOKEN }}
update_dependencies: true


1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -64,3 +64,4 @@ litellm/proxy/_experimental/out/onboarding/index.html
litellm/tests/log.txt
litellm/tests/langfuse.log
litellm/tests/langfuse.log
litellm/proxy/google-cloud-sdk/*
11 changes: 8 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
repos:
- repo: local
hooks:
- id: mypy
name: mypy
entry: python3 -m mypy --ignore-missing-imports
- id: pyright
name: pyright
entry: pyright
language: system
types: [python]
files: ^litellm/
Expand All @@ -25,6 +25,11 @@ repos:
exclude: ^litellm/tests/|^litellm/proxy/tests/
additional_dependencies: [flake8-print]
files: litellm/.*\.py
# - id: flake8
# name: flake8 (router.py function length)
# files: ^litellm/router\.py$
# args: [--max-function-length=40]
# # additional_dependencies: [flake8-functions]
- repo: https://github.com/python-poetry/poetry
rev: 1.8.0
hooks:
Expand Down
15 changes: 9 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ ARG LITELLM_BUILD_IMAGE=python:3.11.8-slim
# Runtime image
ARG LITELLM_RUNTIME_IMAGE=python:3.11.8-slim
# Builder stage
FROM $LITELLM_BUILD_IMAGE as builder
FROM $LITELLM_BUILD_IMAGE AS builder

# Set the working directory to /app
WORKDIR /app
Expand All @@ -21,7 +21,7 @@ RUN pip install --upgrade pip && \
COPY . .

# Build Admin UI
RUN chmod +x build_admin_ui.sh && ./build_admin_ui.sh
RUN chmod +x docker/build_admin_ui.sh && ./docker/build_admin_ui.sh

# Build the package
RUN rm -rf dist/* && python -m build
Expand All @@ -41,13 +41,16 @@ RUN pip install redisvl==0.0.7 --no-deps
# ensure pyjwt is used, not jwt
RUN pip uninstall jwt -y
RUN pip uninstall PyJWT -y
RUN pip install PyJWT --no-cache-dir
RUN pip install PyJWT==2.9.0 --no-cache-dir

# Build Admin UI
RUN chmod +x build_admin_ui.sh && ./build_admin_ui.sh
RUN chmod +x docker/build_admin_ui.sh && ./docker/build_admin_ui.sh

# Runtime stage
FROM $LITELLM_RUNTIME_IMAGE as runtime
FROM $LITELLM_RUNTIME_IMAGE AS runtime

# Update dependencies and clean up - handles debian security issue
RUN apt-get update && apt-get upgrade -y && rm -rf /var/lib/apt/lists/*

WORKDIR /app
# Copy the current directory contents into the container at /app
Expand All @@ -63,7 +66,7 @@ RUN pip install *.whl /wheels/* --no-index --find-links=/wheels/ && rm -f *.whl

# Generate prisma client
RUN prisma generate
RUN chmod +x entrypoint.sh
RUN chmod +x docker/entrypoint.sh

EXPOSE 4000/tcp

Expand Down
File renamed without changes.
32 changes: 32 additions & 0 deletions codecov.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
component_management:
individual_components:
- component_id: "Router"
paths:
- "router"
- component_id: "LLMs"
paths:
- "*/llms/*"
- component_id: "Caching"
paths:
- "*/caching/*"
- ".*redis.*"
- component_id: "litellm_logging"
paths:
- "*/integrations/*"
- ".*litellm_logging.*"
- component_id: "Proxy_Authentication"
paths:
- "*/proxy/auth/**"
comment:
layout: "header, diff, flags, components" # show component info in the PR comment

coverage:
status:
project:
default:
target: auto
threshold: 1% # at maximum allow project coverage to drop by 1%
patch:
default:
target: auto
threshold: 0% # patch coverage should be 100%
Loading