Skip to main content

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/AsyncFuncAI/deepwiki-open/llms.txt

Use this file to discover all available pages before exploring further.

DeepWiki Open uses a provider-based model selection system defined in api/config/generator.json. Each provider exposes a list of predefined models and a default, and every provider sets supportsCustomModel: true, which means you can also type any model identifier directly in the UI without being limited to the predefined list. The default provider at startup is google.

How provider and model selection works

When you open DeepWiki, the frontend fetches the provider list from the /models/config API endpoint. This list is built directly from generator.json at runtime, so adding or removing models from that file is reflected immediately on the next server start. In the UI you choose a provider from a dropdown, then choose (or type) a model. Your selection is sent with every generation request. To change which provider is active by default, edit the default_provider field in generator.json, or point DEEPWIKI_CONFIG_DIR at a directory with your own copy of the file.

Provider setup

Required environment variable
GOOGLE_API_KEY=your_google_api_key
Google Gemini is the default provider. The API key is also reused by the Google AI embedder when DEEPWIKI_EMBEDDER_TYPE=google.Available models
ModelDefault
gemini-2.5-flashYes
gemini-2.5-flash-lite
gemini-2.5-pro
Custom model identifiers are supported — enter any Gemini model ID available in your project.

Custom model selection for service providers

Every provider in generator.json has "supportsCustomModel": true. This means the DeepWiki UI renders a free-text input alongside the model dropdown, allowing you to enter any model identifier that the provider’s API accepts. This is particularly useful when:
  • You want to use a newly released model before it is added to the predefined list.
  • You operate a fine-tuned or private model deployment.
  • You are building a multi-tenant service and need to expose different models to different users.
No code changes or server restarts are needed — the custom model ID is forwarded directly to the provider client at generation time.

Customizing generator.json

To add a model or change defaults permanently, edit api/config/generator.json (or create a copy in a directory pointed to by DEEPWIKI_CONFIG_DIR):
{
  "default_provider": "google",
  "providers": {
    "google": {
      "default_model": "gemini-2.5-flash",
      "supportsCustomModel": true,
      "models": {
        "gemini-2.5-flash": {
          "temperature": 1.0,
          "top_p": 0.8,
          "top_k": 20
        }
      }
    }
  }
}
Restart the API server after editing the file. The /models/config endpoint will reflect your changes immediately on the next start.

Build docs developers (and LLMs) love