OpenAI-compatible

Create a chat completion

Send a conversation in the OpenAI Chat Completions format and get Pareto's reply. Set stream: true for server-sent events in the OpenAI streaming format.

post/chat/completions

Request

  • Base URL: https://api.unbiased.ai/v1
  • URL: https://api.unbiased.ai/v1/chat/completions
  • Auth: one of:
    • HTTP bearer
    • API key in header x-api-key

Request body

model'pareto' required

The model string. Always send pareto.

streamboolean
max_tokensinteger
temperaturenumber
toolsobject[]

Tool definitions in the OpenAI format.

Response

The completion. With stream: true, a text/event-stream of chunks instead.

idstring required
object'chat.completion' required
createdinteger
modelstring

Changes

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