The chat system appears to work quite well. The biggest problem is deciding when the player has convinced the faction to join. Anything that is not straight up "no" tends to be interpreted as "yes", if the faction is relatively friendly to begin with.
I also updated OpenAI client library and added support for JSON-only generation to improve reliability. I ended up not using it for the chat after all, but it is still nice to have.
The chat system appears to work quite well. The biggest problem is deciding when the player has convinced the faction to join. Anything that is not straight up "no" tends to be interpreted as "yes", if the faction is relatively friendly to begin with.
I also updated OpenAI client library and added support for JSON-only generation to improve reliability. I ended up not using it for the chat after all, but it is still nice to have.