xref: /plugin/aichat/conf/metadata.php (revision e3640be850ce50dedfa84d85fcca5c951393e714)
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['embedmodel'] = array(\dokuwiki\plugin\aichat\ModelSetting::class, 'type' => 'embedding');
11$meta['storage'] = array('multichoice',
12    '_choices' => array(
13        'Chroma',
14        'Pinecone',
15        'Qdrant',
16        'SQLite',
17    )
18);
19
20$meta['openai_apikey'] = array('password');
21$meta['openai_org'] = array('string');
22
23$meta['anthropic_apikey'] = array('password');
24
25$meta['mistral_apikey'] = array('password');
26
27$meta['pinecone_apikey'] = array('password');
28$meta['pinecone_baseurl'] = array('string');
29
30$meta['chroma_baseurl'] = array('string');
31$meta['chroma_apikey'] = array('password');
32$meta['chroma_tenant'] = array('string');
33$meta['chroma_database'] = array('string');
34$meta['chroma_collection'] = array('string');
35
36$meta['qdrant_baseurl'] = array('string');
37$meta['qdrant_apikey'] = array('password');
38$meta['qdrant_collection'] = array('string');
39
40$meta['chunkSize'] = array('numeric', '_min' => 100);
41$meta['contextChunks'] = array('numeric', '_min' => 1);
42
43$meta['logging'] = array('onoff');
44$meta['restrict'] = array('string');
45$meta['skipRegex'] = array('string');
46$meta['matchRegex'] = array('string');
47$meta['preferUIlanguage'] = array('multichoice', '_choices' => array(
48    \dokuwiki\plugin\aichat\AIChat::LANG_AUTO_ALL,
49    \dokuwiki\plugin\aichat\AIChat::LANG_UI_ALL,
50    \dokuwiki\plugin\aichat\AIChat::LANG_UI_LIMITED,
51));
52