Skip to content

[Bug]: litellm throwing AttributeError: __annotations__ and standard_logging_object is NoneΒ #9424

@jamesbraza

Description

@jamesbraza

What happened?

Trying to pull in latest litellm in Future-House/paper-qa#914 I get blown up

Relevant log output

ERROR    LiteLLM:litellm_logging.py:3525 Error creating standard logging object - __annotations__
Traceback (most recent call last):
  File "/home/runner/work/paper-qa/paper-qa/.venv/lib/python3.11/site-packages/litellm/litellm_core_utils/litellm_logging.py", line 3507, in get_standard_logging_object_payload
    model_parameters=ModelParamHelper.get_standard_logging_model_parameters(
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/runner/work/paper-qa/paper-qa/.venv/lib/python3.11/site-packages/litellm/litellm_core_utils/model_param_helper.py", line 28, in get_standard_logging_model_parameters
    ModelParamHelper._get_relevant_args_to_use_for_logging()
  File "/home/runner/work/paper-qa/paper-qa/.venv/lib/python3.11/site-packages/litellm/litellm_core_utils/model_param_helper.py", line 45, in _get_relevant_args_to_use_for_logging
    all_openai_llm_api_params = ModelParamHelper._get_all_llm_api_params()
                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/runner/work/paper-qa/paper-qa/.venv/lib/python3.11/site-packages/litellm/litellm_core_utils/model_param_helper.py", line 65, in _get_all_llm_api_params
    ModelParamHelper._get_litellm_supported_transcription_kwargs()
  File "/home/runner/work/paper-qa/paper-qa/.venv/lib/python3.11/site-packages/litellm/litellm_core_utils/model_param_helper.py", line 126, in _get_litellm_supported_transcription_kwargs
    return set(TranscriptionCreateParams.__annotations__.keys())
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/runner/.local/share/uv/python/cpython-3.11.11-linux-x86_64-gnu/lib/python3.11/typing.py", line 1318, in __getattr__
    raise AttributeError(attr)
AttributeError: __annotations__
ERROR    LiteLLM Router:router.py:3814 litellm.router.Router::deployment_callback_on_success(): Exception occured - standard_logging_object is None
Traceback (most recent call last):
  File "/home/runner/work/paper-qa/paper-qa/.venv/lib/python3.11/site-packages/litellm/router.py", line 3754, in deployment_callback_on_success
    raise ValueError("standard_logging_object is None")
ValueError: standard_logging_object is None
ERROR    LiteLLM Router:router.py:3814 litellm.router.Router::deployment_callback_on_success(): Exception occured - standard_logging_object is None
Traceback (most recent call last):
  File "/home/runner/work/paper-qa/paper-qa/.venv/lib/python3.11/site-packages/litellm/router.py", line 3754, in deployment_callback_on_success
    raise ValueError("standard_logging_object is None")
ValueError: standard_logging_object is None
ERROR    LiteLLM Router:router.py:3814 litellm.router.Router::deployment_callback_on_success(): Exception occured - standard_logging_object is None
Traceback (most recent call last):
  File "/home/runner/work/paper-qa/paper-qa/.venv/lib/python3.11/site-packages/litellm/router.py", line 3754, in deployment_callback_on_success
    raise ValueError("standard_logging_object is None")
ValueError: standard_logging_object is None
ERROR    LiteLLM Router:router.py:3814 litellm.router.Router::deployment_callback_on_success(): Exception occured - standard_logging_object is None
Traceback (most recent call last):
  File "/home/runner/work/paper-qa/paper-qa/.venv/lib/python3.11/site-packages/litellm/router.py", line 3754, in deployment_callback_on_success
    raise ValueError("standard_logging_object is None")
ValueError: standard_logging_object is None

Are you a ML Ops Team?

No

What LiteLLM version are you on ?

v1.63.12

Twitter / LinkedIn details

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions