* 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>
* allow using a cred with RAG API
* add /rag/ingest to llm api routes
* add rag endpoints under llm api routes
* raise clear exception when RAG API fails
* use async methods for bedrock ingest
* fix ingestion
* fix _create_opensearch_collection
* fix qa check and linting
- Mark /spend/logs as deprecated in docstring
- Direct users to use /spend/logs/v2 for paginated access
- Warns about performance issues with non-paginated endpoint
- Add flexible date parsing for v2 endpoint (supports both YYYY-MM-DD and YYYY-MM-DD HH:MM:SS)
- Keep strict timestamp format for /spend/logs/ui endpoint for backward compatibility
- Parse dates based on which endpoint was called using request path
- Add /spend/logs/v2 endpoint that shares implementation with /spend/logs/ui
- Provides paginated access to spend logs with comprehensive filtering
- Replaces non-paginated /spend/logs endpoint to prevent performance issues
- Both v2 and ui endpoints share the same function for consistency