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.
Properties
Section titled “Properties”baseUrl
Section titled “baseUrl”baseUrl: string;Defined in: client/src/client/transport.ts:11
Base URL of the server, e.g. http://localhost:3800. No trailing slash.
fetch?
Section titled “fetch?”optional fetch?: typeof globalThis.fetch;Defined in: client/src/client/transport.ts:15
fetch implementation to use. Defaults to the global fetch.
headers?
Section titled “headers?”optional headers?: HeaderProvider;Defined in: client/src/client/transport.ts:17
Headers merged into every request.
prefix?
Section titled “prefix?”optional prefix?: string;Defined in: client/src/client/transport.ts:13
Route prefix the AI routes are mounted under. Defaults to /api.