xref: /plugin/aichat/conf/metadata.php (revision ce8a80117a73bc34294c9da74df80b5abb69229f)
1<?php
2
3/**
4 * Options for the aichat plugin
5 *
6 * @author Andreas Gohr <gohr@cosmocode.de>
7 */
8
9$meta['chatmodel'] = array(\dokuwiki\plugin\aichat\ModelSetting::class, 'type' => 'chat');
10$meta['rephrasemodel'] = array(\dokuwiki\plugin\aichat\ModelSetting::class, 'type' => 'chat');
11$meta['embedmodel'] = array(\dokuwiki\plugin\aichat\ModelSetting::class, 'type' => 'embedding');
12$meta['storage'] = array('multichoice',
13    '_choices' => array(
14        'Chroma',
15        'Pinecone',
16        'Qdrant',
17        'SQLite',
18    )
19);
20
21$meta['customprompt'] = array();
22
23$meta['openai_apikey'] = array('password');
24$meta['openai_org'] = array('string');
25
26$meta['anthropic_apikey'] = array('password');
27
28$meta['mistral_apikey'] = array('password');
29
30$meta['voyageai_apikey'] = array('password');
31
32$meta['reka_apikey'] = array('password');
33
34$meta['groq_apikey'] = array('password');
35
36$meta['ollama_baseurl'] = array('string');
37
38$meta['pinecone_apikey'] = array('password');
39$meta['pinecone_baseurl'] = array('string');
40
41$meta['chroma_baseurl'] = array('string');
42$meta['chroma_apikey'] = array('password');
43$meta['chroma_tenant'] = array('string');
44$meta['chroma_database'] = array('string');
45$meta['chroma_collection'] = array('string');
46
47$meta['qdrant_baseurl'] = array('string');
48$meta['qdrant_apikey'] = array('password');
49$meta['qdrant_collection'] = array('string');
50
51$meta['chunkSize'] = array('numeric', '_min' => 100, '_regexp' => '/^\d+$/');
52$meta['similarityThreshold'] = array('numeric', '_min' => 0, '_max' => 100, '_regexp' => '/^\d+$/');
53$meta['contextChunks'] = array('numeric', '_min' => 1, '_regexp' => '/^\d+$/');
54$meta['chatHistory'] = array('numeric', '_min' => 0, '_regexp' => '/^\d+$/');
55$meta['rephraseHistory'] = array('numeric', '_min' => 0, '_regexp' => '/^\d+$/');
56
57$meta['logging'] = array('onoff');
58$meta['restrict'] = array('string');
59$meta['skipRegex'] = array('string');
60$meta['matchRegex'] = array('string');
61$meta['preferUIlanguage'] = array('multichoice', '_choices' => array(
62    \dokuwiki\plugin\aichat\AIChat::LANG_AUTO_ALL,
63    \dokuwiki\plugin\aichat\AIChat::LANG_UI_ALL,
64    \dokuwiki\plugin\aichat\AIChat::LANG_UI_LIMITED,
65));
66