You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I believe we just need to remove the response obj if we are to follow the same pattern.
Relevant log output
Traceback (most recent call last):
File "/app/.venv/lib/python3.12/site-packages/litellm/integrations/langfuse/langfuse.py", line 260, in log_event
print_verbose(f"OUTPUT IN LANGFUSE: {output}; original: {response_obj}")
^^^^^^^^^^^^^^
File "/app/.venv/lib/python3.12/site-packages/openai/_models.py", line 199, in __str__
returnf'{self.__repr_name__()}({self.__repr_str__(", ")})' # type: ignore[misc] ^^^^^^^^^^^^^^^^^^^^^^^ File "/app/.venv/lib/python3.12/site-packages/pydantic/_internal/_repr.py", line 56, in __repr_str__ return join_str.join(repr(v) if a is None else f'{a}={v!r}' for a, v in self.__repr_args__()) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/app/.venv/lib/python3.12/site-packages/pydantic/_internal/_repr.py", line 56, in <genexpr> return join_str.join(repr(v) if a is None else f'{a}={v!r}' for a, v in self.__repr_args__()) ^^^^^^^^^^^^^^^^^^^^ File "/app/.venv/lib/python3.12/site-packages/pydantic/main.py", line 1026, in __repr_args__ for k, v in self.__dict__.items(): ^^^^^^^^^^^^^^^^^^^^^RuntimeError: dictionary changed size during iteration
Are you a ML Ops Team?
No
What LiteLLM version are you on ?
v1.58.0
Twitter / LinkedIn details
No response
The text was updated successfully, but these errors were encountered:
ngamolsky
changed the title
[Bug]: Langufuse integration: error generated in logging handler - dictionary changed size during iteration
[Bug]: Langfuse integration: error generated in logging handler - dictionary changed size during iteration
Jan 10, 2025
What happened?
I get errors generated from the langfuse logging handler.
This is very similar to fixed issue here: #2245
I believe we just need to remove the response obj if we are to follow the same pattern.
Relevant log output
Are you a ML Ops Team?
No
What LiteLLM version are you on ?
v1.58.0
Twitter / LinkedIn details
No response
The text was updated successfully, but these errors were encountered: