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