Alwrity - Bug fixes
This commit is contained in:
@@ -47,7 +47,6 @@ def write_blog_from_keywords(search_keywords, url=None):
|
||||
logger.error(f"Failed in Google web research: {err}")
|
||||
# logger.info/check the final blog content.
|
||||
logger.info("\n######### Draft1: Finished Blog from Google web search: ###########\n\n")
|
||||
exit(1)
|
||||
|
||||
|
||||
# Do Tavily AI research to augument the above blog.
|
||||
|
||||
57
lib/gpt_providers/text_generation/ai_story_writer.py
Normal file
57
lib/gpt_providers/text_generation/ai_story_writer.py
Normal file
@@ -0,0 +1,57 @@
|
||||
persona = '''\
|
||||
You are an award-winning science fiction author with a penchant for expansive,
|
||||
intricately woven stories. Your ultimate goal is to write the next award winning
|
||||
sci-fi novel.'''
|
||||
|
||||
guidelines = '''\
|
||||
Writing Guidelines
|
||||
|
||||
Delve deeper. Lose yourself in the world you're building. Unleash vivid
|
||||
descriptions to paint the scenes in your reader's mind. Develop your
|
||||
characters—let their motivations, fears, and complexities unfold naturally.
|
||||
Weave in the threads of your outline, but don't feel constrained by it. Allow
|
||||
your story to surprise you as you write. Use rich imagery, sensory details, and
|
||||
evocative language to bring the setting, characters, and events to life.
|
||||
Introduce elements subtly that can blossom into complex subplots, relationships,
|
||||
or worldbuilding details later in the story. Keep things intriguing but not
|
||||
fully resolved. Avoid boxing the story into a corner too early. Plant the seeds
|
||||
of subplots or potential character arc shifts that can be expanded later.
|
||||
|
||||
Remember, your main goal is to write as much as you can. If you get through
|
||||
the story too fast, that is bad. Expand, never summarize.
|
||||
'''
|
||||
|
||||
premise_prompt = f'''\
|
||||
{persona}
|
||||
|
||||
Write a single sentence premise for a sci-fi story featuring cats.'''
|
||||
|
||||
outline_prompt = f'''\
|
||||
{persona}
|
||||
|
||||
You have a gripping premise in mind:
|
||||
|
||||
{{premise}}
|
||||
|
||||
Write an outline for the plot of your story.'''
|
||||
|
||||
starting_prompt = f'''\
|
||||
{persona}
|
||||
|
||||
You have a gripping premise in mind:
|
||||
|
||||
{{premise}}
|
||||
|
||||
Your imagination has crafted a rich narrative outline:
|
||||
|
||||
{{outline}}
|
||||
|
||||
First, silently review the outline and the premise. Consider how to start the
|
||||
story.
|
||||
|
||||
Start to write the very beginning of the story. You are not expected to finish
|
||||
the whole story now. Your writing should be detailed enough that you are only
|
||||
scratching the surface of the first bullet of your outline. Try to write AT
|
||||
MINIMUM 1000 WORDS.
|
||||
|
||||
{guidelines}'''
|
||||
Reference in New Issue
Block a user