Skip to main content

Interface: ServerOptions

Defined in: index.ts:25

Your own Chat Completions endpoint, as the last resort. Everything here reaches the page: put no API key in it, add the key on the server.

Properties​

images?​

optional images?: boolean

Defined in: index.ts:35

The endpoint accepts images. Default false.


jsonSchema?​

optional jsonSchema?: boolean

Defined in: index.ts:31

The endpoint supports response_format: { type: "json_schema" }. Default false.


label?​

optional label?: string

Defined in: index.ts:37

The name readers see when they pick it, e.g. "This site's AI".


model?​

optional model?: string

Defined in: index.ts:29

Sent as model. Needed by endpoints that don't pick one (LiteLLM, OpenRouter…).


tools?​

optional tools?: boolean

Defined in: index.ts:33

The endpoint supports tool calls. Default true.


url​

url: string

Defined in: index.ts:27

Chat Completions URL, e.g. /api/ai/chat/completions.