Prerequisites

  • Active TrueFoundry account with API Gateway configured.
  • Installed instance of AnythingLLM (Desktop or Docker).
  • TrueFoundry Base URL, Personal Access Token (API Key), and Model ID.

Configuration

  1. Open AnythingLLM and navigate to Settings > LLM Preference.
  2. Select Generic OpenAI as the LLM provider.
  3. Configure the connection settings:
ParameterConfiguration / Value
Base URLTrueFoundry Gateway base URL (e.g., https://<your-domain>/api/llm/api/inference/openai)
API KeyTrueFoundry Personal Access Token
Chat Model NameUnified model identifier from TrueFoundry (e.g., openai-main/gpt-4o)
Token Context WindowSet according to model limits (e.g., 16000, 128000)
Max TokensSet desired output limit (e.g., 1024, 2048)
  1. Save the configuration.
  2. Open or create a workspace and send a test message to verify the connection.