CanalAPI
Community tools

AnythingLLM setup

Connect CanalAPI with Generic OpenAI and verify chat separately from knowledge-base embeddings.

AnythingLLM combines chat, document retrieval and workspaces. Choose desktop or self-hosted installation using the official documentation.

Checked on 2026-11-03; release snapshot v1.19.0. Configuration follows the official Generic OpenAI documentation. A real CanalAPI call has not been tested.

Configure a chat model

In LLM provider settings, select Generic OpenAI / OpenAI (Generic):

FieldValue
Base URLhttps://api.canalapi.com/v1
API KeyYour CanalAPI key
ModelFull model ID with Chat Completions support
Context window / model token limitThe model's actual context length
Max TokensMaximum output per request, within the model's limit

Context length and maximum output are different limits. A field accepting a larger value does not mean the model supports it; see model capabilities. The Base URL excludes /chat/completions.

Chat first, knowledge base next

  1. Save and create an empty workspace. Check that workspace-specific settings do not override the global model.
  2. Send “Reply only OK” and check CanalAPI usage logs.
  3. For document questions, configure the Embedding Provider and vector storage separately. Start with one short document containing no sensitive information.
  4. Confirm ingestion, ask about a fact in the document and inspect citations. After changing embedding models, reprocess documents as required rather than mixing incompatible vector dimensions.

A working chat model does not configure embeddings, speech, reranking or agent tools. If using CanalAPI for embeddings, verify the embedding model and endpoint separately. This guide does not claim all features have been tested.

Common issues

  • Changing global settings has no effect: inspect workspace model overrides.
  • Document upload fails but chat works: check the embedding provider and ingestion logs first.
  • Short replies: check output-token settings and model limits; increasing the context window is not the same as increasing output.
  • Rejected output-limit parameter: Generic OpenAI can change the field it sends. Adjust GENERIC_OPEN_AI_MODEL_MAX_TOKEN_KEY using the official instructions only when the selected model requires it.

Official fields and UI: OpenAI Generic. Other errors: troubleshooting.

On this page