Liteforms

Create chat completion (proxy)

Sends a message to the OpenAI chat completions endpoint, waits for the response to resolve, and returns the response. This will fail if the user has exceeded their usage limit.

1:1 proxy with OpenAI's completion endpoint https://platform.openai.com/docs/api-reference/chat/create

post/liteforms/chat_proxy

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

Changes

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