AI

Theme variables for AI

$gbc-ai-enabled

Enable or disable AI features (true = enabled, false = disabled).

Type: boolean

Default value: false

$gbc-ai-default-provider

Provider id used for AI calls (e.g. "openai", "anthropic").

Type: string

Default value: "anthropic"

Computed value: "anthropic"

$gbc-ai-rewrite-instructions

Base instructions for AI rewrite (used as system/prompt preamble). Use {{BR}} to insert a line break in the prompt.

Type: text

Default value: ""Rewrite the text to improve clarity and grammar while preserving meaning.{{BR}}Keep the same language as the input.{{BR}}Output plain text only (no markdown).{{BR}}Do not add new facts.{{BR}}Do not rewrite or repeat the CONTEXT or LOCALE sections.{{BR}}CONTEXT format is: name(desc)=value (one per line).{{BR}}LOCALE format is: key=value (one per line); apply these formats when interpreting dates and numeric values in CONTEXT.{{BR}}If the text conflicts with CONTEXT, prefer CONTEXT for those values.""

Computed value: "Rewrite the text to improve clarity and grammar while preserving meaning.{{BR}}Keep the same language as the input.{{BR}}Output plain text only (no markdown).{{BR}}Do not add new facts.{{BR}}Do not rewrite or repeat the CONTEXT or LOCALE sections.{{BR}}CONTEXT format is: name(desc)=value (one per line).{{BR}}LOCALE format is: key=value (one per line); apply these formats when interpreting dates and numeric values in CONTEXT.{{BR}}If the text conflicts with CONTEXT, prefer CONTEXT for those values."

$gbc-ai-rewrite-input-template

Template used to build the rewrite input. {{BR}} inserts a line break. Available placeholders: {{locale}}, {{context}}, {{tone}}, {{length}}, {{text}}.

Type: text

Default value: ""LOCALE (data format used in form fields below):{{BR}}{{locale}}{{BR}}{{BR}}CONTEXT (source of truth, use only if relevant):{{BR}}{{context}}{{BR}}{{BR}}CONSTRAINTS:{{BR}}{{tone}}{{BR}}{{length}}{{BR}}{{BR}}TEXT:{{BR}}{{text}}""

Computed value: "LOCALE (data format used in form fields below):{{BR}}{{locale}}{{BR}}{{BR}}CONTEXT (source of truth, use only if relevant):{{BR}}{{context}}{{BR}}{{BR}}CONSTRAINTS:{{BR}}{{tone}}{{BR}}{{length}}{{BR}}{{BR}}TEXT:{{BR}}{{text}}"

$gbc-ai-rewrite-tone-as-is

Prompt fragment for tone=as-is (keep the tone unchanged).

Type: string

Default value: ""Keep the same tone.""

Computed value: "Keep the same tone."

$gbc-ai-rewrite-tone-more-formal

Prompt fragment for tone=more-formal.

Type: string

Default value: ""Use a more formal tone.""

Computed value: "Use a more formal tone."

$gbc-ai-rewrite-tone-more-casual

Prompt fragment for tone=more-casual.

Type: string

Default value: ""Use a more casual tone.""

Computed value: "Use a more casual tone."

$gbc-ai-rewrite-length-as-is

Prompt fragment for length=as-is (keep length about the same).

Type: string

Default value: ""Keep the length about the same.""

Computed value: "Keep the length about the same."

$gbc-ai-rewrite-length-shorter

Prompt fragment for length=shorter.

Type: string

Default value: ""Make it shorter.""

Computed value: "Make it shorter."

$gbc-ai-rewrite-length-longer

Prompt fragment for length=longer.

Type: string

Default value: ""Make it longer.""

Computed value: "Make it longer."