litellm/docs/my-website/img
Krish Dholakia 3beecfb0d4
LiteLLM Minor Fixes & Improvements (11/13/2024) (#6729)
* fix(utils.py): add logprobs support for together ai

Fixes

https://github.com/BerriAI/litellm/issues/6724

* feat(pass_through_endpoints/): add anthropic/ pass-through endpoint

adds new `anthropic/` pass-through endpoint + refactors docs

* feat(spend_management_endpoints.py): allow /global/spend/report to query team + customer id

enables seeing spend for a customer in a team

* Add integration with MLflow Tracing (#6147)

* Add MLflow logger

Signed-off-by: B-Step62 <yuki.watanabe@databricks.com>

* Streaming handling

Signed-off-by: B-Step62 <yuki.watanabe@databricks.com>

* lint

Signed-off-by: B-Step62 <yuki.watanabe@databricks.com>

* address comments and fix issues

Signed-off-by: B-Step62 <yuki.watanabe@databricks.com>

* address comments and fix issues

Signed-off-by: B-Step62 <yuki.watanabe@databricks.com>

* Move logger construction code

Signed-off-by: B-Step62 <yuki.watanabe@databricks.com>

* Add docs

Signed-off-by: B-Step62 <yuki.watanabe@databricks.com>

* async handlers

Signed-off-by: B-Step62 <yuki.watanabe@databricks.com>

* new picture

Signed-off-by: B-Step62 <yuki.watanabe@databricks.com>

---------

Signed-off-by: B-Step62 <yuki.watanabe@databricks.com>

* fix(mlflow.py): fix ruff linting errors

* ci(config.yml): add mlflow to ci testing

* fix: fix test

* test: fix test

* Litellm key update fix (#6710)

* fix(caching): convert arg to equivalent kwargs in llm caching handler

prevent unexpected errors

* fix(caching_handler.py): don't pass args to caching

* fix(caching): remove all *args from caching.py

* fix(caching): consistent function signatures + abc method

* test(caching_unit_tests.py): add unit tests for llm caching

ensures coverage for common caching scenarios across different implementations

* refactor(litellm_logging.py): move to using cache key from hidden params instead of regenerating one

* fix(router.py): drop redis password requirement

* fix(proxy_server.py): fix faulty slack alerting check

* fix(langfuse.py): avoid copying functions/thread lock objects in metadata

fixes metadata copy error when parent otel span in metadata

* test: update test

* fix(key_management_endpoints.py): fix /key/update with metadata update

* fix(key_management_endpoints.py): fix key_prepare_update helper

* fix(key_management_endpoints.py): reset value to none if set in key update

* fix: update test

'

* Litellm dev 11 11 2024 (#6693)

* fix(__init__.py): add 'watsonx_text' as mapped llm api route

Fixes https://github.com/BerriAI/litellm/issues/6663

* fix(opentelemetry.py): fix passing parallel tool calls to otel

Fixes https://github.com/BerriAI/litellm/issues/6677

* refactor(test_opentelemetry_unit_tests.py): create a base set of unit tests for all logging integrations - test for parallel tool call handling

reduces bugs in repo

* fix(__init__.py): update provider-model mapping to include all known provider-model mappings

Fixes https://github.com/BerriAI/litellm/issues/6669

* feat(anthropic): support passing document in llm api call

* docs(anthropic.md): add pdf anthropic call to docs + expose new 'supports_pdf_input' function

* fix(factory.py): fix linting error

* add clear doc string for GCS bucket logging

* Add docs to export logs to Laminar (#6674)

* Add docs to export logs to Laminar

* minor fix: newline at end of file

* place laminar after http and grpc

* (Feat) Add langsmith key based logging (#6682)

* add langsmith_api_key to StandardCallbackDynamicParams

* create a file for langsmith types

* langsmith add key / team based logging

* add key based logging for langsmith

* fix langsmith key based logging

* fix linting langsmith

* remove NOQA violation

* add unit test coverage for all helpers in test langsmith

* test_langsmith_key_based_logging

* docs langsmith key based logging

* run langsmith tests in logging callback tests

* fix logging testing

* test_langsmith_key_based_logging

* test_add_callback_via_key_litellm_pre_call_utils_langsmith

* add debug statement langsmith key based logging

* test_langsmith_key_based_logging

* (fix) OpenAI's optional messages[].name  does not work with Mistral API  (#6701)

* use helper for _transform_messages mistral

* add test_message_with_name to base LLMChat test

* fix linting

* add xAI on Admin UI (#6680)

* (docs) add benchmarks on 1K RPS  (#6704)

* docs litellm proxy benchmarks

* docs GCS bucket

* doc fix - reduce clutter on logging doc title

* (feat) add cost tracking stable diffusion 3 on Bedrock  (#6676)

* add cost tracking for sd3

* test_image_generation_bedrock

* fix get model info for image cost

* add cost_calculator for stability 1 models

* add unit testing for bedrock image cost calc

* test_cost_calculator_with_no_optional_params

* add test_cost_calculator_basic

* correctly allow size Optional

* fix cost_calculator

* sd3 unit tests cost calc

* fix raise correct error 404 when /key/info is called on non-existent key  (#6653)

* fix raise correct error on /key/info

* add not_found_error error

* fix key not found in DB error

* use 1 helper for checking token hash

* fix error code on key info

* fix test key gen prisma

* test_generate_and_call_key_info

* test fix test_call_with_valid_model_using_all_models

* fix key info tests

* bump: version 1.52.4 → 1.52.5

* add defaults used for GCS logging

* LiteLLM Minor Fixes & Improvements (11/12/2024)  (#6705)

* fix(caching): convert arg to equivalent kwargs in llm caching handler

prevent unexpected errors

* fix(caching_handler.py): don't pass args to caching

* fix(caching): remove all *args from caching.py

* fix(caching): consistent function signatures + abc method

* test(caching_unit_tests.py): add unit tests for llm caching

ensures coverage for common caching scenarios across different implementations

* refactor(litellm_logging.py): move to using cache key from hidden params instead of regenerating one

* fix(router.py): drop redis password requirement

* fix(proxy_server.py): fix faulty slack alerting check

* fix(langfuse.py): avoid copying functions/thread lock objects in metadata

fixes metadata copy error when parent otel span in metadata

* test: update test

* bump: version 1.52.5 → 1.52.6

* (feat) helm hook to sync db schema  (#6715)

* v0 migration job

* fix job

* fix migrations job.yml

* handle standalone DB on helm hook

* fix argo cd annotations

* fix db migration helm hook

* fix migration job

* doc fix Using Http/2 with Hypercorn

* (fix proxy redis) Add redis sentinel support  (#6154)

* add sentinel_password support

* add doc for setting redis sentinel password

* fix redis sentinel - use sentinel password

* Fix: Update gpt-4o costs to that of gpt-4o-2024-08-06 (#6714)

Fixes #6713

* (fix) using Anthropic `response_format={"type": "json_object"}`  (#6721)

* add support for response_format=json anthropic

* add test_json_response_format to baseLLM ChatTest

* fix test_litellm_anthropic_prompt_caching_tools

* fix test_anthropic_function_call_with_no_schema

* test test_create_json_tool_call_for_response_format

* (feat) Add cost tracking for Azure Dall-e-3 Image Generation  + use base class to ensure basic image generation tests pass  (#6716)

* add BaseImageGenTest

* use 1 class for unit testing

* add debugging to BaseImageGenTest

* TestAzureOpenAIDalle3

* fix response_cost_calculator

* test_basic_image_generation

* fix img gen basic test

* fix _select_model_name_for_cost_calc

* fix test_aimage_generation_bedrock_with_optional_params

* fix undo changes cost tracking

* fix response_cost_calculator

* fix test_cost_azure_gpt_35

* fix remove dup test (#6718)

* (build) update db helm hook

* (build) helm db pre sync hook

* (build) helm db sync hook

* test: run test_team_logging firdst

---------

Co-authored-by: Ishaan Jaff <ishaanjaffer0324@gmail.com>
Co-authored-by: Dinmukhamed Mailibay <47117969+dinmukhamedm@users.noreply.github.com>
Co-authored-by: Kilian Lieret <kilian.lieret@posteo.de>

* test: update test

* test: skip anthropic overloaded error

* test: cleanup test

* test: update tests

* test: fix test

* test: handle gemini overloaded model error

* test: handle internal server error

* test: handle anthropic overloaded error

* test: handle claude instability

---------

Signed-off-by: B-Step62 <yuki.watanabe@databricks.com>
Co-authored-by: Yuki Watanabe <31463517+B-Step62@users.noreply.github.com>
Co-authored-by: Ishaan Jaff <ishaanjaffer0324@gmail.com>
Co-authored-by: Dinmukhamed Mailibay <47117969+dinmukhamedm@users.noreply.github.com>
Co-authored-by: Kilian Lieret <kilian.lieret@posteo.de>
2024-11-15 11:18:31 +05:30
..
add_internal_user.png docs(self_serve.md): cleanup images 2024-06-05 17:20:57 -07:00
admin_ui_2.png (docs) hosted ui litellm 2024-01-29 09:43:55 -08:00
admin_ui_disabled.png LiteLLM Minor Fixes & Improvements (09/17/2024) (#5742) 2024-09-17 23:00:04 -07:00
admin_ui_spend.png doc - spend tracking with litellm 2024-06-03 13:39:38 -07:00
admin_ui_viewer.png docs(ui.md): update 2024-02-28 21:25:39 -08:00
alerting_metadata.png docs(alerting.md): add alerting metadata to docs 2024-06-14 19:04:16 -07:00
alt_dashboard.png update dashboard tutorial 2023-08-24 15:39:41 -07:00
aporia_post.png doc aporia_w_litellm 2024-08-19 14:36:55 -07:00
aporia_pre.png doc aporia_w_litellm 2024-08-19 14:36:55 -07:00
aporia_projs.png doc aporia_w_litellm 2024-08-19 14:36:55 -07:00
argilla.png docs(argilla.md): add doc on argilla logging 2024-10-17 22:51:55 -07:00
athina_dashboard.png Support for Athina logging 2024-02-23 21:49:40 +05:30
bench_llm.png update tutorial 2023-09-08 06:35:02 -07:00
cloud_run0.png (docs) proxy server instructions 2023-10-23 10:10:55 -07:00
cloud_run1.png (docs) set env variables on google cloud run 2023-10-23 09:36:11 -07:00
cloud_run2.png (docs) set env variables on google cloud run 2023-10-23 09:36:11 -07:00
cloud_run3.png (docs) set env variables on google cloud run 2023-10-23 09:36:11 -07:00
codellama_formatted_input.png fix(proxy_server): cleaning up print statements 2023-10-13 20:16:31 -07:00
codellama_input.png fix(proxy_server): cleaning up print statements 2023-10-13 20:16:31 -07:00
compare_llms.png docs update 2023-08-31 17:23:46 -07:00
create_budget_modal.png docs(customers.md): tutorial for setting customer budgets on proxy 2024-05-29 17:46:47 -07:00
create_key_in_team.gif docs - setting team budgets on ui 2024-06-19 15:04:01 -07:00
create_service_account.png docs service accounts (#5900) 2024-09-25 15:46:13 -07:00
create_team_gif_good.gif docs - setting team budgets on ui 2024-06-19 15:04:01 -07:00
custom_root_path.png docs - run custom path 2024-06-12 14:16:31 -07:00
custom_swagger.png docs(enterprise.md): add swagger - custom routes + branding to docs 2024-05-17 15:31:02 -07:00
dash_output.png docs 2023-08-24 09:34:41 -07:00
dashboard_log.png update dashboard tutorial 2023-08-24 15:39:41 -07:00
dd_small1.png (docs) litellm + datadog 2024-03-18 17:06:00 -07:00
debug_langfuse.png docs - show langfuse debug on docs 2024-06-03 12:40:22 -07:00
deploy-to-aws.png (docs) proxy server deploy to AWS 2023-10-25 17:07:53 -07:00
elastic_otel.png (docs) OTEL simple proxy 2023-12-01 21:28:46 -08:00
email_notifs.png docs- email notifs 2024-05-25 18:07:36 -07:00
end_user_enforcement.png docs(call_hooks.md): show result in docs 2024-03-27 21:04:51 -07:00
favicon.png Updated the favicon 2023-08-22 14:50:17 +03:00
gcp_acc_1.png docs(vertex.md): add tutorial for using vertex ai with gcp service account 2024-04-04 21:28:28 -07:00
gcp_acc_2.png docs(vertex.md): add tutorial for using vertex ai with gcp service account 2024-04-04 21:28:28 -07:00
gcp_acc_3.png docs(vertex.md): add tutorial for using vertex ai with gcp service account 2024-04-04 21:28:28 -07:00
gcs_bucket.png docs using gcs 2024-08-01 15:23:17 -07:00
google_oauth2.png (docs) hosted ui litellm 2024-01-29 09:43:55 -08:00
google_redirect.png (docs) hosted ui litellm 2024-01-29 09:43:55 -08:00
grafana_1.png (feat proxy) add v2 maintained LiteLLM grafana dashboard (#6098) 2024-10-07 18:11:20 +05:30
grafana_2.png (feat proxy) add v2 maintained LiteLLM grafana dashboard (#6098) 2024-10-07 18:11:20 +05:30
grafana_3.png (feat proxy) add v2 maintained LiteLLM grafana dashboard (#6098) 2024-10-07 18:11:20 +05:30
hf_inference_endpoint.png add huggingface 2023-08-30 16:05:33 -07:00
hosted_debugger_usage_page.png add to hosted debugger back to docs 2023-09-07 21:11:37 -07:00
invitation_link.png docs(self_serve.md): cleanup images 2024-06-05 17:20:57 -07:00
lago.jpeg docs(lago.md): add lago usage-based billing quick-start to docs 2024-05-16 13:24:04 -07:00
lago_2.png docs(billing.md): update lago screenshot 2024-05-16 15:30:33 -07:00
langfuse-example-trace-multiple-models-min.png [docs] updated langfuse integration guide (#5921) 2024-09-27 07:49:47 -07:00
langfuse-litellm-ui.png [docs] updated langfuse integration guide (#5921) 2024-09-27 07:49:47 -07:00
langfuse.png fix img langfuse 2023-08-31 12:18:39 -07:00
langfuse_small.png (docs) using litellm proxy + langfuse 2023-11-15 14:29:14 -08:00
langsmith.png (docs) add langsmith callback docs 2023-10-18 12:13:39 -07:00
langsmith_new.png langsmith logs 2024-07-17 16:37:24 -07:00
latency.png (docs) proxy 2023-11-24 17:09:38 -08:00
litellm_custom_ai.png (docs) custom ui branding 2024-02-21 22:07:40 -08:00
litellm_gateway.png add arch diagram 2024-09-07 15:49:51 -07:00
litellm_hosted_ui_add_models.png docs(hosted.md): add hosted proxy info to docs 2024-04-20 09:30:28 -07:00
litellm_hosted_ui_create_key.png docs(hosted.md): add hosted proxy info to docs 2024-04-20 09:30:28 -07:00
litellm_hosted_ui_router.png docs(hosted.md): add hosted proxy info to docs 2024-04-20 09:30:28 -07:00
litellm_hosted_usage_dashboard.png docs(hosted.md): add hosted proxy info to docs 2024-04-20 09:30:28 -07:00
litellm_load_test.png (docs) how to run a locust load test 2024-03-15 07:37:50 -07:00
litellm_streamlit_playground.png completed tutorial 2023-08-25 19:20:35 -07:00
litellm_ui_3.gif docs(ui.md): update ui docs 2024-02-10 17:26:04 -08:00
litellm_ui_admin.png docs(ui.md): add proxy admin view to docs 2024-02-07 11:38:27 -08:00
litellm_ui_copy_id.png docs(ui.md): add proxy admin view to docs 2024-02-07 11:38:27 -08:00
litellm_ui_create_key.png docs(ui.md): add proxy admin view to docs 2024-02-07 11:38:27 -08:00
litellm_ui_login.png docs(ui.md): ui doc updates 2024-02-07 11:38:27 -08:00
literalai.png Litellm Minor Fixes & Improvements (10/03/2024) (#6049) 2024-10-03 18:02:28 -04:00
locust.png (docs) load test litellm 2024-03-08 15:18:06 -08:00
locust_load_test.png (docs) how to run a locust load test 2024-03-15 07:37:50 -07:00
locust_load_test1.png (docs) add 1k rps load test doc (#6059) 2024-10-04 16:56:34 +05:30
locust_load_test2.png (docs) add 1k rps load test doc (#6059) 2024-10-04 16:56:34 +05:30
locust_load_test2_setup.png (docs) add 1k rps load test doc (#6059) 2024-10-04 16:56:34 +05:30
logfire.png Revert "Revert "Logfire Integration"" 2024-05-21 11:07:40 +04:00
max_budget_for_internal_users.png docs(self_serve.md): cleanup docs on how to onboard new users + teams 2024-08-07 19:58:36 -07:00
mlflow_tracing.png LiteLLM Minor Fixes & Improvements (11/13/2024) (#6729) 2024-11-15 11:18:31 +05:30
model_hub.png docs(enterprise.md): update enterprise docs with public model hub and custom email branding information 2024-06-01 09:01:05 -07:00
ms_teams_alerting.png docs(alerting.md): add expected response teams alerting image to docs 2024-06-13 14:28:43 -07:00
multiple_deployments.png docs(routing.md): adding comparison to docs 2023-11-06 18:57:50 -08:00
okta_callback_url.png docs(ui.md): add okta sso support to docs 2024-06-11 13:17:41 -07:00
openmeter.png docs(openmeter.md): add openmeter to docs 2024-05-01 18:31:45 -07:00
openmeter_img_2.png docs(openmeter.md): add openmeter to docs 2024-05-01 18:31:45 -07:00
opik.png [Feat] Observability integration - Opik by Comet (#6062) 2024-10-10 18:27:50 +05:30
otel_parent.png doc - OTEL trace propogation 2024-06-11 14:25:33 -07:00
presidio_screenshot.png docs(pii_masking.md): add pii masking to proxy docs 2024-02-12 21:40:34 -08:00
promptlayer.png update docs 2023-08-26 12:33:47 -07:00
proxy_langfuse.png docs - pass through langfuse requests on proxy 2024-06-28 17:53:13 -07:00
raw_request_log.png fix(utils.py): allow user to opt in to raw request logging to langfuse 2024-06-11 13:35:22 -07:00
raw_response_headers.png docs(raw_request_response.md): show how to get openai headers from response 2024-07-23 11:40:26 -07:00
render1.png (docs) on deploying render 2023-10-24 21:28:37 -07:00
render2.png (docs) on deploying render 2023-10-24 21:28:37 -07:00
response_cost_img.png fix cost tracking img 2024-06-29 11:35:57 -07:00
sagemaker_deploy.png add sagemaker to docs 2023-09-04 21:53:52 -07:00
sagemaker_domain.png add sagemaker to docs 2023-09-04 21:53:52 -07:00
sagemaker_endpoint.png add sagemaker to docs 2023-09-04 21:53:52 -07:00
sagemaker_jumpstart.png add sagemaker to docs 2023-09-04 21:53:52 -07:00
sentry.png (docs) improve sentry callback 2023-10-27 16:33:12 -07:00
slack.png (docs) add slack callback for litellm 2023-10-19 09:32:29 -07:00
spend_logs_table.png docs(sidebars.js): add custom pricing to docs 2024-01-22 15:15:34 -08:00
spend_per_user.png (docs) spend per user 2024-01-24 12:17:23 -08:00
swagger.png (docs) proxy server instructions 2023-10-23 10:10:55 -07:00
test_key_budget.gif docs - setting team budgets on ui 2024-06-19 15:04:01 -07:00
test_python_server_1.png update playground tutorial 2023-08-25 18:34:46 -07:00
test_python_server_2.png update playground tutorial 2023-08-25 18:34:46 -07:00
throughput.png (docs) proxy 2023-11-24 17:09:38 -08:00
traceloop_dash.png fix: updates to traceloop docs 2023-10-18 19:37:12 +02:00
ui_3.gif (docs) update ui 2024-02-03 20:43:43 -08:00
ui_clean_login.png docs(self_serve.md): cleanup images 2024-06-05 17:20:57 -07:00
ui_invite_link.png docs - how to invite users to view usage, caching analytics 2024-07-16 17:56:06 -07:00
ui_invite_user.png docs - how to invite users to view usage, caching analytics 2024-07-16 17:56:06 -07:00
ui_link.png (docs) update proxy ui docs 2024-01-31 19:54:04 -08:00
ui_logout.png docs - custom logout url 2024-06-13 20:54:08 -07:00
ui_self_serve_create_key.png docs(self_serve.md): cleanup images 2024-06-05 17:20:57 -07:00
ui_usage.png docs - how to invite users to view usage, caching analytics 2024-07-16 17:56:06 -07:00
wandb.png (docs) add wandb callback 2023-10-17 18:15:58 -07:00