Determine which GPT model to use with your agent, or connect your own LLM endpoint.
chat/completions
schema and PolyAI will treat it like any other provider.
chat/completions
format.x-api-key
header or a Bearer token.stream: true
.frequency_penalty
, presence_penalty
, etc.
stream
is true
, send Server-Sent Events (SSE) mirroring OpenAI’s format:
Method | Header sent by PolyAI |
---|---|
API Key | x-api-key: YOUR_API_KEY |
Bearer | Authorization: Bearer YOUR_TOKEN |
chat/completions
schema.