SillyTavern/SillyTavern · warning · Error

account_id_missing

account_id_missing

Error message

Vectors: Workers AI account ID missing

What it means

Thrown when source is 'workers_ai' but oai_settings.workers_ai_account_id is empty. Cloudflare Workers AI routes are namespaced under an account ID, so without it the embed request cannot be formed.

Source

Thrown at public/scripts/extensions/vectors/index.js:1117

            settings.source === 'llamacpp' && !textgenerationwebui_settings.server_urls[textgen_types.LLAMACPP]) {
            throw new Error('Vectors: API URL missing', { cause: 'api_url_missing' });
        }
    }

    if (settings.source === 'ollama' && !settings.ollama_model || settings.source === 'vllm' && !settings.vllm_model) {
        throw new Error('Vectors: API model missing', { cause: 'api_model_missing' });
    }

    if (settings.source === 'extras' && !modules.includes('embeddings')) {
        throw new Error('Vectors: Embeddings module missing', { cause: 'extras_module_missing' });
    }

    if (settings.source === 'webllm' && (!isWebLlmSupported() || !settings.webllm_model)) {
        throw new Error('Vectors: WebLLM is not supported', { cause: 'webllm_not_supported' });
    }

    if (settings.source === 'workers_ai' && !oai_settings.workers_ai_account_id) {
        throw new Error('Vectors: Workers AI account ID missing', { cause: 'account_id_missing' });
    }
}

/**
 * Deletes vector items from a collection
 * @param {string} collectionId - The collection to delete from
 * @param {number[]} hashes - The hashes of the items to delete
 * @returns {Promise<void>}
 */
async function deleteVectorItems(collectionId, hashes) {
    const args = await getAdditionalArgs([]);
    const response = await fetch('/api/vector/delete', {
        method: 'POST',
        headers: getRequestHeaders(),
        body: JSON.stringify({
            ...getVectorsRequestBody(args),
            collectionId: collectionId,
            hashes: hashes,

View on GitHub (pinned to 8172dcd0ee)

Solutions

  1. Enter your Cloudflare Workers AI account ID in the connection settings.
  2. Find the account ID in the Cloudflare dashboard (right sidebar on the overview page).
  3. Save and reload so oai_settings.workers_ai_account_id is populated.

Example fix

null
Defensive patterns

Strategy: validation

Validate before calling

if (settings.source === 'workers_ai' && !oai_settings.workers_ai_account_id) {
  // block and prompt for the Cloudflare account ID
}

Type guard

null

Try / catch

null

Prevention

When it happens

Trigger: User picks Cloudflare Workers AI as the vector source but has not entered the Workers AI account ID in the OpenAI/connection settings.

Common situations: Workers AI API token set (satisfies the key check) but the separate account-ID field left blank; account ID field cleared on a settings import/reset.

Related errors


AI-assisted analysis of SillyTavern/SillyTavern@8172dcd0ee (2026-08-13). Data as JSON: /api/errors/36f9d7c4ccd74413. Report an issue: GitHub.