litellm/tests/logging_callback_tests
Krish Dholakia 1cb5fcddba
make generic api OSS + support multiple generic API's (#17152)
* feat(generic_api_callback.py): make generic api OSS + support multiple generic API's

Enables https://github.com/BerriAI/litellm/pull/17094#discussion_r2562832967

* feat(callback_utils.py): support custom generic api callbacks

* feat(generic_api_callback.py): support specifying which event types to run the generic api for

* fix(litellm_logging.py): log system prompt for anthropic messages

* feat(generic_api_callback.py): support generic api compatible api's - e.g. rubrik agent cloud

* docs(sidebars.js): document new OSS generic api

* docs(generic_api.md): document new OSS Generic API

* docs(custom_webhook_api.md): document custom webhook api integration tutorial

* docs(custom_webhook_api.md): cleanup

* docs(custom_webhook_api.md): document what get's logged to custom webhook api

* Refactor: Pass callback config to GenericAPILogger

Co-authored-by: krrishdholakia <krrishdholakia@gmail.com>

* Fix: Handle empty messages list in logging payload

Co-authored-by: krrishdholakia <krrishdholakia@gmail.com>

* Checkpoint before follow-up message

Co-authored-by: krrishdholakia <krrishdholakia@gmail.com>

* feat: Cache GenericAPILogger instances to improve performance

Co-authored-by: krrishdholakia <krrishdholakia@gmail.com>

---------

Co-authored-by: Cursor Agent <cursoragent@cursor.com>
2025-11-26 18:38:38 -08:00
..
gcs_pub_sub_body
langfuse_expected_request_body
base_test.py
conftest.py
create_mock_standard_logging_payload.py
gettysburg.wav
log.txt
test_alerting.py
test_amazing_s3_logs.py
test_assemble_streaming_responses.py
test_azure_blob_storage.py
test_bedrock_knowledgebase_hook.py
test_built_in_tools_cost_tracking.py
test_custom_callback_router.py
test_datadog.py
test_datadog_llm_obs.py
test_gcs_pub_sub.py
test_generic_api_callback.py make generic api OSS + support multiple generic API's (#17152) 2025-11-26 18:38:38 -08:00
test_humanloop_unit_tests.py
test_langfuse_e2e_test.py
test_langfuse_unit_tests.py
test_langsmith_unit_test.py
test_log_db_redis_services.py
test_logging_redaction_e2e_test.py
test_moderations_api_logging.py
test_opentelemetry_unit_tests.py
test_otel_logging.py
test_pagerduty_alerting.py
test_posthog.py
test_spend_logs.py
test_sqs_logger.py
test_standard_logging_payload.py
test_token_counting.py
test_unit_test_litellm_logging.py
test_unit_tests_init_callbacks.py
test_view_request_resp_logs.py