NewWacht Bench is live — AI-assisted development for Wacht

updateAiSettings()

Sends a full/partial settings update to the AI settings route and returns the resolved 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();  const request: UpdateAiSettingsRequest = {    enabled: true,  };  return client.ai.updateAiSettings(request);}

Signature

function updateAiSettings(  request: UpdateAiSettingsRequest,): Promise<AiSettings>

UpdateAiSettingsRequest

request: UpdateAiSettingsRequest;
Request payload object sent to the backend API.
enabled?: boolean | undefined;
enabled value used by this request.

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