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?
optionalimages?:boolean
Defined in: index.ts:35
The endpoint accepts images. Default false.
jsonSchema?
optionaljsonSchema?:boolean
Defined in: index.ts:31
The endpoint supports response_format: { type: "json_schema" }. Default false.
label?
optionallabel?:string
Defined in: index.ts:37
The name readers see when they pick it, e.g. "This site's AI".
model?
optionalmodel?:string
Defined in: index.ts:29
Sent as model. Needed by endpoints that don't pick one (LiteLLM, OpenRouter…).
tools?
optionaltools?: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.