diff --git a/openhands/llm/llm.py b/openhands/llm/llm.py index 84cf12575008..497578181fc1 100644 --- a/openhands/llm/llm.py +++ b/openhands/llm/llm.py @@ -297,7 +297,11 @@ def wrapper(*args, **kwargs): 'messages': messages, 'response': resp, 'args': args, - 'kwargs': {k: v for k, v in kwargs.items() if k != 'messages'}, + 'kwargs': { + k: v + for k, v in kwargs.items() + if k not in ('messages', 'client') + }, 'timestamp': time.time(), 'cost': cost, }