Skip to content

Commit

Permalink
Fix for log completions
Browse files Browse the repository at this point in the history
  • Loading branch information
tofarr committed Feb 23, 2025
1 parent 4f36ae0 commit 4bd3290
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion openhands/llm/llm.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}
Expand Down

0 comments on commit 4bd3290

Please sign in to comment.