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

      apiKeyusers OpenAI API key
      messagesan array of messages
      modelthe OpenAI model you would like to use

      Events

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