[BUG] in `merge_dicts` causing duplicated metadata during streaming aggregation

Hi all,

I reported what appears to be a bug a few days ago but it may have been missed, so I’m resurfacing it here in case a maintainer can take a look.

When aggregating streamed AIMessageChunks, merge_dicts concatenates identical string metadata fields such as model_name and finish_reason, resulting in values like stopstop and duplicated model names. The issue seems to stem from an incomplete deduplication allowlist in merge_dicts.

GitHub issue with a minimal reproducible example, root cause analysis, and proposed fix:

@codeonym Better if you tag maintainers on GitHub as well, specifically @mdrxy

thanks for mentioning that