NegotiationArena
NegotiationArena copied to clipboard
Response store and end state correction | fixing message_to_other_player function
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.