Skip to content

[BUG] litellm integration callback report error #1114

@Tint0ri

Description

@Tint0ri

litellm 1.89.1, integrate with headroom callback by YAML. Got error:
LiteLLM Proxy:ERROR: common_request_processing.py:1837 - litellm.proxy.proxy_server._handle_llm_api_exception(): Exception occured - type object 'HeadroomCallback' has no attribute 'async_post_call_success_hook'
Traceback (most recent call last):
File "/app/.venv/lib/python3.13/site-packages/litellm/proxy/proxy_server.py", line 8504, in chat_completion
result = await base_llm_response_processor.base_process_llm_request(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
...<16 lines>...
)
^
File "/app/.venv/lib/python3.13/site-packages/litellm/proxy/common_request_processing.py", line 1407, in base_process_llm_request
response = await proxy_logging_obj.post_call_success_hook(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
...<3 lines>...
)
^
File "/app/.venv/lib/python3.13/site-packages/litellm/proxy/utils.py", line 2404, in post_call_success_hook
raise e
File "/app/.venv/lib/python3.13/site-packages/litellm/proxy/utils.py", line 2398, in post_call_success_hook
callback_response = await callback.async_post_call_success_hook(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: type object 'HeadroomCallback' has no attribute 'async_post_call_success_hook'

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions