xref: /plugin/aichat/conf/metadata.php (revision eaa2c59defaae44a1c8b1feb607b4daba2c2382a)
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['openai_apikey'] = array('password');
22$meta['openai_org'] = array('string');
23
24$meta['anthropic_apikey'] = array('password');
25
26$meta['mistral_apikey'] = array('password');
27
28$meta['voyageai_apikey'] = array('password');
29
30$meta['reka_apikey'] = array('password');
31
32$meta['pinecone_apikey'] = array('password');
33$meta['pinecone_baseurl'] = array('string');
34
35$meta['chroma_baseurl'] = array('string');
36$meta['chroma_apikey'] = array('password');
37$meta['chroma_tenant'] = array('string');
38$meta['chroma_database'] = array('string');
39$meta['chroma_collection'] = array('string');
40
41$meta['qdrant_baseurl'] = array('string');
42$meta['qdrant_apikey'] = array('password');
43$meta['qdrant_collection'] = array('string');
44
45$meta['chunkSize'] = array('numeric', '_min' => 100, '_regexp' => '/^\d+$/');
46$meta['similarityThreshold'] = array('numeric', '_min' => 0, '_max' => 100, '_regexp' => '/^\d+$/');
47$meta['contextChunks'] = array('numeric', '_min' => 1, '_regexp' => '/^\d+$/');
48$meta['chatHistory'] = array('numeric', '_min' => 0, '_regexp' => '/^\d+$/');
49$meta['rephraseHistory'] = array('numeric', '_min' => 0, '_regexp' => '/^\d+$/');
50
51$meta['logging'] = array('onoff');
52$meta['restrict'] = array('string');
53$meta['skipRegex'] = array('string');
54$meta['matchRegex'] = array('string');
55$meta['preferUIlanguage'] = array('multichoice', '_choices' => array(
56    \dokuwiki\plugin\aichat\AIChat::LANG_AUTO_ALL,
57    \dokuwiki\plugin\aichat\AIChat::LANG_UI_ALL,
58    \dokuwiki\plugin\aichat\AIChat::LANG_UI_LIMITED,
59));
60