Function createStory

  • Utility method that creates a story object with a title and an image

    Parameters

    • prompt: string

      the prompt to be used as the entry point

    • openai: OpenAI

      the authenticated open ai client

    Returns Promise<StoryPayload>

    a payload with all the information required for the story StoryPayload