Intro

OpenAI Streaming

This custom action allows OpenAI chat streaming directly in your toddle applications.
EDUCATIONAL PURPOSES ONLY

By using this package you acknowledge that your API key will be exposed. I would not recommend utilising this packing in production.

Demo

API Key

Please enter your OpenAI API key

Actions

  • OpenAIChatStreaming

    This action takes a users api key, messages and model and sends them to OpenAI which then streams the responses back.

    Arguments

    apiKey users OpenAI API key
    messages an array of messages
    model the OpenAI model you would like to use

    Events

    end triggered when the streaming event is finished
    response triggered with every text content chunk as it's streamed and contains the text string as data
    error triggered when there's an error and provides the error message