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