in aidial_sdk/utils/merge_chunks.py [0:0]
def merge_dicts(target: dict, source: dict, path: Path) -> dict:
for key, value in source.items():
path.append(key)
target[key] = merge_recursive(target.get(key), value, path)
path.pop()
return target