Check out the Streamlit branch for a GUI to use this project within
Yet another project that uses OpenAI's API to produce long-form content, in this case a full fictional novel (with the option of adult themes and scenes if you so choose such).
The intention of this project is to create something open source that actually can generate viable content, not merely a proof-of-concept like the altenratives that exist, without the use of the OpenAI API that locks AI away behind a paywall I and many others can not afford (and given how the open source models available generate higher quality software, why would you pay for the use of their model?)
This project was built to handle the openai API so that other people with money to burn at those obnoxious prices can freely do so if they desire and because that API is something of an industry standard. But I am totally broke and cannot afford that!
So I have included an extra line of code in the src/llmconnection.py
file so that the API calls actually go through gpt4free instead.
In fact, the model I am using is not available via openai's API because the mainline GPTs are too fickle about jailbreaking to use effectively for more adult themes that sell as Amazon kindle books like hotcakes compared to boring discussions of systems thinking or 20 page essays about narcissistic injury and narcissistic rage. I wonder why...
NOTE Yes you can use other APIs to access the model I am using, including for free but I was attempting to conform to the industry standard library for ease of use for those in the future that find themselves here.
- Only 1 variable value (premise) needs to be entered by the user, everything else can be generated by the AI from that premise.
- Features a function that rewrites the generated text, as second pass seems to improve things immensely
- Ability to interject and change values, edit generated text and overall high degree of control for automated book writing
- Cool ASCII art
- Jailbroken to enable the generation of novels with adult themes (this can be more than merely sexual, maybe not American Psycho but even Moby Dick would generate policy warnings from OpenAI and Meta's offerings as they are).