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 21*666b8ea7SAndreas Gohr$meta['customprompt'] = array(); 22*666b8ea7SAndreas Gohr 23e3640be8SAndreas Gohr$meta['openai_apikey'] = array('password'); 24e3640be8SAndreas Gohr$meta['openai_org'] = array('string'); 25dce0dee5SAndreas Gohr 26e3640be8SAndreas Gohr$meta['anthropic_apikey'] = array('password'); 27dce0dee5SAndreas Gohr 28e3640be8SAndreas Gohr$meta['mistral_apikey'] = array('password'); 29e3640be8SAndreas Gohr 3087e46484SAndreas Gohr$meta['voyageai_apikey'] = array('password'); 3187e46484SAndreas Gohr 32eaa2c59dSAndreas Gohr$meta['reka_apikey'] = array('password'); 33eaa2c59dSAndreas Gohr 34074b7701SAndreas Gohr$meta['groq_apikey'] = array('password'); 35074b7701SAndreas Gohr 36e3640be8SAndreas Gohr$meta['pinecone_apikey'] = array('password'); 3713dbfc23SAndreas Gohr$meta['pinecone_baseurl'] = array('string'); 3813dbfc23SAndreas Gohr 395e6dd16eSAndreas Gohr$meta['chroma_baseurl'] = array('string'); 40e3640be8SAndreas Gohr$meta['chroma_apikey'] = array('password'); 415e6dd16eSAndreas Gohr$meta['chroma_tenant'] = array('string'); 425e6dd16eSAndreas Gohr$meta['chroma_database'] = array('string'); 435e6dd16eSAndreas Gohr$meta['chroma_collection'] = array('string'); 445e6dd16eSAndreas Gohr 454c0099a8SAndreas Gohr$meta['qdrant_baseurl'] = array('string'); 46e3640be8SAndreas Gohr$meta['qdrant_apikey'] = array('password'); 474c0099a8SAndreas Gohr$meta['qdrant_collection'] = array('string'); 484c0099a8SAndreas Gohr 49720bb43fSAndreas Gohr$meta['chunkSize'] = array('numeric', '_min' => 100, '_regexp' => '/^\d+$/'); 50720bb43fSAndreas Gohr$meta['similarityThreshold'] = array('numeric', '_min' => 0, '_max' => 100, '_regexp' => '/^\d+$/'); 51720bb43fSAndreas Gohr$meta['contextChunks'] = array('numeric', '_min' => 1, '_regexp' => '/^\d+$/'); 52720bb43fSAndreas Gohr$meta['chatHistory'] = array('numeric', '_min' => 0, '_regexp' => '/^\d+$/'); 53720bb43fSAndreas Gohr$meta['rephraseHistory'] = array('numeric', '_min' => 0, '_regexp' => '/^\d+$/'); 54e3640be8SAndreas Gohr 5582d5855eSAndreas Gohr$meta['logging'] = array('onoff'); 56c4127b8eSAndreas Gohr$meta['restrict'] = array('string'); 57d5c102b3SAndreas Gohr$meta['skipRegex'] = array('string'); 58d5c102b3SAndreas Gohr$meta['matchRegex'] = array('string'); 59e33a1d7aSAndreas Gohr$meta['preferUIlanguage'] = array('multichoice', '_choices' => array( 60e33a1d7aSAndreas Gohr \dokuwiki\plugin\aichat\AIChat::LANG_AUTO_ALL, 61e33a1d7aSAndreas Gohr \dokuwiki\plugin\aichat\AIChat::LANG_UI_ALL, 62e33a1d7aSAndreas Gohr \dokuwiki\plugin\aichat\AIChat::LANG_UI_LIMITED, 63e33a1d7aSAndreas Gohr)); 64