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