Wacht Bench is live — AI-assisted development for Wacht

getAiSettings()

This method reads deployment-level AI settings.

Usage

The following example shows a basic usage of the backend client from @wacht/nextjs/server.

import { wachtClient } from '@wacht/nextjs/server';export async function example() {  const client = await wachtClient();  return client.ai.getAiSettings();}

Signature

function getAiSettings(  client?: WachtClient,): Promise<AiSettings>

Return value

enabled?: boolean | undefined;
Whether AI capabilities are enabled for the deployment.
default_model?: string | undefined;
Default model identifier when configured.
updated_at?: string | undefined;
Last update timestamp when returned.

On this page