Bashpoet / CreativeWritingAssistant

Python program that utilizes OpenAI's GPT-3.5 language model to assist with creative writing tasks
1 stars 0 forks source link

Incomplete Functions #3

Open Bashpoet opened 1 year ago

Bashpoet commented 1 year ago

The functions for generating content (like generate_prompt, generate_character, etc.) are currently returning static, hardcoded content. These functions should be updated to generate dynamic content based on the input parameters.

Bashpoet commented 1 year ago

Incomplete Functions: Currently, your functions like generate_prompt, generate_character, etc., are returning static, hardcoded content. I should modify these functions to generate dynamic content based on the input parameters. For example, here's how I can modify the generate_prompt function:

def generate_prompt(theme):
"""Generate a writing prompt about the given theme."""
prompt = f"Write a story about {theme}."
return json.dumps(prompt)

In this code, f"Write a story about {theme}." is a string that includes the value of the theme variable. When I call generate_prompt("space exploration"), it will return the string "Write a story about space exploration."

I should modify the other functions in a similar way, replacing the hardcoded content with dynamic content based on the input parameters.