Console ↗

NgilaClient

Create the client once per server configuration. Each call returns a Promise.

MethodResult
models(options?)List with data[].id
systemOne(body, options?)Named answers and token usage
request(path, body?, options?)Decoded JSON for a relative endpoint

Cancellation

Pass a signal to supply your own deadline. Without a signal the client applies its configured timeout in milliseconds.

const result = await client.models({signal: AbortSignal.timeout(5000)});