Skip to content

ClientOptions

type ClientOptions = {
baseUrl: string;
fetch?: typeof globalThis.fetch;
headers?: HeaderProvider;
prefix?: string;
};

Defined in: client/src/client/transport.ts:9

Options shared by createClient and toTools.

baseUrl: string;

Defined in: client/src/client/transport.ts:11

Base URL of the server, e.g. http://localhost:3800. No trailing slash.


optional fetch?: typeof globalThis.fetch;

Defined in: client/src/client/transport.ts:15

fetch implementation to use. Defaults to the global fetch.


optional headers?: HeaderProvider;

Defined in: client/src/client/transport.ts:17

Headers merged into every request.


optional prefix?: string;

Defined in: client/src/client/transport.ts:13

Route prefix the AI routes are mounted under. Defaults to /api.