xref: /plugin/aichat/conf/metadata.php (revision 7bd2bac6fcd43e7b7248e95d2224bf49b9d3a728)
18817535bSAndreas Gohr<?php
27ebc7895Ssplitbrain
38817535bSAndreas Gohr/**
48817535bSAndreas Gohr * Options for the aichat plugin
58817535bSAndreas Gohr *
68817535bSAndreas Gohr * @author Andreas Gohr <gohr@cosmocode.de>
78817535bSAndreas Gohr */
88817535bSAndreas Gohr
925892c36SAndreas Gohr$meta['chatmodel'] = array(\dokuwiki\plugin\aichat\ModelSetting::class, 'type' => 'chat');
1051aa8517SAndreas Gohr$meta['rephrasemodel'] = array(\dokuwiki\plugin\aichat\ModelSetting::class, 'type' => 'chat');
1125892c36SAndreas Gohr$meta['embedmodel'] = array(\dokuwiki\plugin\aichat\ModelSetting::class, 'type' => 'embedding');
12dce0dee5SAndreas Gohr$meta['storage'] = array('multichoice',
13dce0dee5SAndreas Gohr    '_choices' => array(
14dce0dee5SAndreas Gohr        'Chroma',
15dce0dee5SAndreas Gohr        'Pinecone',
16dce0dee5SAndreas Gohr        'Qdrant',
17dce0dee5SAndreas Gohr        'SQLite',
18dce0dee5SAndreas Gohr    )
19dce0dee5SAndreas Gohr);
20dce0dee5SAndreas Gohr
21666b8ea7SAndreas Gohr$meta['customprompt'] = array();
22666b8ea7SAndreas Gohr
23e3640be8SAndreas Gohr$meta['openai_apikey'] = array('password');
24e3640be8SAndreas Gohr$meta['openai_org'] = array('string');
25dce0dee5SAndreas Gohr
2610789c17SAndreas Gohr$meta['gemini_apikey'] = array('password');
2710789c17SAndreas Gohr
28e3640be8SAndreas Gohr$meta['anthropic_apikey'] = array('password');
29dce0dee5SAndreas Gohr
30e3640be8SAndreas Gohr$meta['mistral_apikey'] = array('password');
31e3640be8SAndreas Gohr
3287e46484SAndreas Gohr$meta['voyageai_apikey'] = array('password');
3387e46484SAndreas Gohr
34eaa2c59dSAndreas Gohr$meta['reka_apikey'] = array('password');
35eaa2c59dSAndreas Gohr
36074b7701SAndreas Gohr$meta['groq_apikey'] = array('password');
37074b7701SAndreas Gohr
38d72a84c5SAndreas Gohr$meta['ollama_apiurl'] = array('string');
39*7bd2bac6SAndreas Gohr$meta['ollama_apikey'] = array('string');
40ce8a8011SEduardo Mozart de Oliveira
412e22aefbSAndreas Gohr$meta['generic_apikey'] = array('password');
422e22aefbSAndreas Gohr$meta['generic_apiurl'] = array('string');
432e22aefbSAndreas Gohr
44e3640be8SAndreas Gohr$meta['pinecone_apikey'] = array('password');
4513dbfc23SAndreas Gohr$meta['pinecone_baseurl'] = array('string');
4613dbfc23SAndreas Gohr
475e6dd16eSAndreas Gohr$meta['chroma_baseurl'] = array('string');
48e3640be8SAndreas Gohr$meta['chroma_apikey'] = array('password');
495e6dd16eSAndreas Gohr$meta['chroma_tenant'] = array('string');
505e6dd16eSAndreas Gohr$meta['chroma_database'] = array('string');
515e6dd16eSAndreas Gohr$meta['chroma_collection'] = array('string');
525e6dd16eSAndreas Gohr
534c0099a8SAndreas Gohr$meta['qdrant_baseurl'] = array('string');
54e3640be8SAndreas Gohr$meta['qdrant_apikey'] = array('password');
554c0099a8SAndreas Gohr$meta['qdrant_collection'] = array('string');
564c0099a8SAndreas Gohr
57720bb43fSAndreas Gohr$meta['chunkSize'] = array('numeric', '_min' => 100, '_regexp' => '/^\d+$/');
58720bb43fSAndreas Gohr$meta['similarityThreshold'] = array('numeric', '_min' => 0, '_max' => 100, '_regexp' => '/^\d+$/');
59720bb43fSAndreas Gohr$meta['contextChunks'] = array('numeric', '_min' => 1, '_regexp' => '/^\d+$/');
609634d734SAndreas Gohr$meta['fullpagecontext'] = array('onoff');
61720bb43fSAndreas Gohr$meta['chatHistory'] = array('numeric', '_min' => 0, '_regexp' => '/^\d+$/');
62720bb43fSAndreas Gohr$meta['rephraseHistory'] = array('numeric', '_min' => 0, '_regexp' => '/^\d+$/');
63e3640be8SAndreas Gohr
6482d5855eSAndreas Gohr$meta['logging'] = array('onoff');
65c4127b8eSAndreas Gohr$meta['restrict'] = array('string');
66d5c102b3SAndreas Gohr$meta['skipRegex'] = array('string');
67d5c102b3SAndreas Gohr$meta['matchRegex'] = array('string');
6810ce0ca9SAndreas Gohr$meta['ignoreRegex'] = array('string');
69e33a1d7aSAndreas Gohr$meta['preferUIlanguage'] = array('multichoice', '_choices' => array(
70e33a1d7aSAndreas Gohr    \dokuwiki\plugin\aichat\AIChat::LANG_AUTO_ALL,
71e33a1d7aSAndreas Gohr    \dokuwiki\plugin\aichat\AIChat::LANG_UI_ALL,
72e33a1d7aSAndreas Gohr    \dokuwiki\plugin\aichat\AIChat::LANG_UI_LIMITED,
73e33a1d7aSAndreas Gohr));
74