AI

Theme variables for AI

$gbc-ai-enabled

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

Type: boolean

Default value: false

$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: string

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 section.{{BR}}CONTEXT format is: title(desc)=value (one per line).{{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 section.{{BR}}CONTEXT format is: title(desc)=value (one per line).{{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: {{context}}, {{tone}}, {{length}}, {{text}}.

Type: string

Default value: ""CONTEXT (source of truth, use only if relevant):{{BR}}{{context}}{{BR}}{{BR}}CONSTRAINTS:{{BR}}{{tone}}{{BR}}{{length}}{{BR}}{{BR}}TEXT:{{BR}}{{text}}""

Computed value: "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."