MediaWiki API help
This is an auto-generated MediaWiki API documentation page.
Documentation and examples: https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_page
action=wandachat
- This module requires read rights.
- Source: Wanda
- License: GPL-2.0-or-later
Send a question or request to the Wanda extension chatbot
- message
Message to be sent to the chatbot
- Default: (empty)
- customprompt
Prompt text to use instead of the default prompt
- Default: (empty)
- customprompttitle
Title of a wiki page to use as a custom prompt template
- Default: (empty)
- maxtokens
Maximum number of tokens in the response
- Type: integer
- Default: 800
- model
Language model to use for generating the response
- Default: shim
- provider
Cloud provider to use for the language model
- Default: ollama
- apikey
API key for the cloud provider
- Default: (empty)
- apiendpoint
Custom API endpoint for the cloud provider
- Default: https://wiki:70993b2cea61bd7480dccc898bd4f2b957253606f6366d63@wanda.opentreeid.app/api/
- timeout
Timeout in seconds for the API request
- Type: integer
- Default: 180
- temperature
Sampling temperature for response generation (0.0 to 1.0). Higher values yield more diverse responses.
- Default: 0.2
- usepublicknowledge
Whether to allow the chatbot to use its LLM knowledge in addition to wiki context (true/false)
- Type: boolean (details)
- skipesquery
Whether to skip Elasticsearch query
- Type: boolean (details)
- images
Pipe-separated list of image titles to attach (e.g., 'File:Example.jpg|File:Image2.png')
- Default: (empty)
- conversationhistory
JSON-encoded array of previous conversation messages, each with 'role' and 'content' fields.
- Default: (empty)
- conversationmemoryenabled
Whether to remember this conversation
- Type: boolean (details)
- wikidataonly
Skip wiki and Elasticsearch context; answer using Wikidata data only
- Type: boolean (details)
- wikidatalang
BCP-47 language code for Wikidata labels (e.g. 'en', 'de', 'fr'). Defaults to the configured WandaWikidataLang.
- Default: en
- sources
Pipe-separated list of sources to use for retrieval (e.g. 'wiki|wikidata|cargo'). Supported values: wiki, wikidata, cargo, publicknowledge, externalwiki, and any configured RAG source names. Defaults to 'wiki'.
- Default: wiki