Open AI Streams - Horizon AI Template

Introduction#

Each prompt comes with its own utility function, which we call a stream. For example, the Essay Generator prompt takes information from the inputs, sends it to EssayAPI which calls the stream function, and here the data is put inside the prompt which is posted to the Open AI API, and the response is returned if everything is right. The prompts can be easy editable, but make sure that the values' types the stream takes in matches with the API and the values the inputs provide.

You need an OpenAI API Key to use Horizon AI Template's features. Your API Key is stored locally on your browser and never sent anywhere else.

Get your API key from Open AI Dashboard

Horizon AI Template © 2021-2023 Copyright. All Rights Reserved.

  • Blog
  • License