Liteforms

Create chat completion (proxy stream)

Sends a message to the OpenAI chat completions endpoint. Partial message deltas will be sent, like in ChatGPT. Tokens will be sent as data-only <a href="https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events#event_stream_format">server-sent events</a> as they become available, with the stream terminated by a data: [DONE] message.

post/liteforms/chat_proxy_stream

Request body

model'gpt-3.5-turbo' | 'gpt-3.5-turbo-0613' | 'gpt-4' | 'gpt-4-0613' | 'gpt-4-32k' | 'gpt-4-32k-0613' | 'gpt-4o'

The OpenAI model to use.

presence_penaltynumber

Number between -2.0 and 2.0. Positive values penalize new tokens based on whether they appear in the text so far, increasing the model's likelihood to talk about new topics.

frequency_penaltynumber

Number between -2.0 and 2.0. Positive values penalize new tokens based on their existing frequency in the text so far, decreasing the model's likelihood to repeat the same line verbatim.

temperaturenumber

The temperature of the model. Must be between 0 and 1.

top_pnumber

The top_p of the model. Must be between 0 and 1.

max_tokensnumber

The maximum number of tokens to return.

Response

Successful response

{"stackTrail":"components:schemas:Liteforms-chatProxyStreamResponse","oasType":"schema","type":"unknown"}

Changes

No recorded changes to this endpoint across all 1 revision of this API.