Generate full-length novels with AI! Harness the power of large language models to create engaging stories based on your prompts.
Getting started with AI Story Generator is easy:
./Write.py -Prompt Prompts/YourChosenPrompt.txt
That's it! The system will automatically download any required models and start generating your story.
Optional steps:
Writer/Prompts.py
or create your ownWriter/Config.py
Not sure which models to use with your GPU? Check out our Model Recommendations page for suggestions based on different GPU capabilities. We provide a quick reference table to help you choose the right models for your hardware, ensuring optimal performance and quality for your story generation projects.
You can customize the models used for different parts of the story generation process in two ways:
You can override the default models by specifying them as command-line arguments:
./Write.py -Prompt Prompts/YourChosenPrompt.txt -InitialOutlineModel "ollama://llama3:70b" ...
Available command-line arguments are stated in the Write.py
file.
The model format is: {ModelProvider}://{ModelName}@{ModelHost}?parameter=value
127.0.0.1:11434
(currently only affects ollama)ollama
ollama
, google
, openrouter
ollama
we support the passing of parameters (e.g. temperature
) on a per model basisExample:
./Write.py -Prompt Prompts/YourChosenPrompt.txt -InitialOutlineModel "google://gemini-1.5-pro" -ChapterOutlineModel "ollama://llama3:70b@192.168.1.100:11434" ...
This flexibility allows you to experiment with different models for various parts of the story generation process, helping you find the optimal combination for your needs.
NOTE: If you're using a provider that needs an API key, please copy .env.example
to .env
and paste in your API keys there.
Edit the Writer/Config.py
file to change the default models:
INITIAL_OUTLINE_WRITER_MODEL = "ollama://llama3:70b"
CHAPTER_OUTLINE_WRITER_MODEL = "ollama://gemma2:27b"
CHAPTER_WRITER_MODEL = "google://gemini-1.5-flash"
...
We're excited to hear from you! Your feedback and contributions are crucial to improving the AI Story Generator. Here's how you can get involved:
π Open Issues: Encountered a bug or have a feature request? Open an issue and let us know!
π‘ Start Discussions: Have ideas or want to brainstorm? Start a discussion in our GitHub Discussions forum.
π¬ Experiment and Share: Try different model combinations and share your results. Your experiments can help improve the system for everyone!
ποΈ Submit Pull Requests: Ready to contribute code? We welcome pull requests for improvements and new features.
π¬ Join our Discord: For real-time chat, support, and community engagement, join our Discord server.
Don't hesitate to reach out β your input is valuable, and we're here to help!
This project is licensed under the GNU Affero General Public License v3.0 (AGPL-3.0). This means that if you modify the code and use it to provide a service over a network, you must make your modified source code available to the users of that service. For more details, see the LICENSE file in the repository or visit https://www.gnu.org/licenses/agpl-3.0.en.html.
Join us in shaping the future of AI-assisted storytelling! ποΈπ€