RoleChat is an AI-powered character dialogue generator that creates conversations between two characters based on their profiles and a starting prompt.
- Generate dynamic dialogues between two characters
- Customize character profiles
- Flexible starting conversation prompts
- Easy-to-use Python interface
-
Clone the repository:
-
Install the required dependencies:
run characterglm_example.py
- The generated dialogue will be saved in
dialogue.txt
.
- Character Profiles: Edit the
create_character_profile
function to create unique characters with distinct personalities, backgrounds, and speaking styles. - Conversation Starters: Modify the
messages
list to experiment with different conversation prompts and scenarios.
- Python 3.x
requests
librarypython-dotenv
library- Custom API library (not included in this repository)