BF Streaming API
Last updated
Last updated
The BetterForms Streaming API allows real time streaming of responses from LLM services like OpenAI To be initiated.
Creating a call to this service will create a post to the LLM and stream results back to the appropriate channel. This service is in beta release as of the time of this document.
Avail in bf-staging
only
Key | Type | Description |
---|---|---|
apiKey
string
Unique API key for BF (find in app settings)
channels
array
Array of BF Messaging communication channels
actionName
string
Name of the action to be performed
service
string
Name of the service to be used (OpenAI)
payload
object
Object containing parameters for the action, this contains params that are passed on to the streaming service
payload.apiKey
string
Unique API key for the streaming service
payload.stream
bool
Indicator if streaming is enabled, if disabled, result is returned directly to the POST result
payload.functions
array
Array of functions to be executed
payload.max_tokens
number
Maximum number of tokens for the response
payload.seed
number
Seed for the random number generator
payload.messages
array
Array of messages to be processed
payload.model
string
Model to be used for processing
payload.temperature
number
Parameter controlling randomness in output