NegotiationArena icon indicating copy to clipboard operation
NegotiationArena copied to clipboard

Response store and end state correction | fixing message_to_other_player function

Open ashishpanchal33 opened this issue 8 months ago • 0 comments

Issue: Incorrect mapping of tag and content in the from_name_and_tag_to_message function call. This caused each message to double in size, leading to:

Exponential growth in total token count and API costs, as the compiled message history is sent with every turn.

Increased log storage requirements due to the inflated message size.

Fix: Swapped key and value in the from_name_and_tag_to_message function call to correctly map tags and content, reducing message size.

ashishpanchal33 avatar Apr 19 '25 15:04 ashishpanchal33