Commit cba5b70
authored
Bsb/release 0.3.8 (#169)
* fix: strip provider-specific IDs from cached AIMessages
Cached AIMessages preserved provider metadata (OpenAI rs_ IDs,
system fingerprints, Anthropic msg_ IDs) in additional_kwargs and
response_metadata. When both original and cached messages existed
in conversation state, the OpenAI Responses API rejected the request
with "Duplicate item found with id rs_...".
Strip all provider fields on deserialization, keeping only content
and the cached: True marker. Serialization is unchanged — full
responses are still preserved in the cache.
* chore(release): bumped to version 0.3.81 parent 21175d3 commit cba5b70
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
0 commit comments