Home
last modified time | relevance | path

Searched refs:chatModel (Results 1 – 3 of 3) sorted by relevance

/plugin/aichat/
H A DModelFactory.php13 public $chatModel; variable in dokuwiki\\plugin\\aichat\\ModelFactory
35 $this->chatModel = null;
61 if ($this->chatModel instanceof ChatInterface) {
62 return $this->chatModel;
64 $this->chatModel = $this->loadModel('chat', $this->config['chatmodel']);
65 $this->chatModel->setDebug($this->debug);
66 return $this->chatModel;
H A DEmbeddings.php24 protected $chatModel; variable in dokuwiki\\plugin\\aichat\\Embeddings
50 * @param ChatInterface $chatModel
56 ChatInterface $chatModel, argument
62 $this->chatModel = $chatModel;
134 …$tokenlimit = min($this->embedModel->getMaxInputTokenLength(), $this->chatModel->getMaxInputTokenL…
141 …floor($this->chatModel->getMaxInputTokenLength() / 4), // be able to fit 4 chunks into the max inp…
300 $tokenlimit = $limits ? $this->chatModel->getMaxInputTokenLength() : 0;
412 $tokenlimit = $limits ? $this->chatModel->getMaxInputTokenLength() : 0;
/plugin/aichat/cli/
H A Dsimulate.php71 $this->helper->factory->chatModel = $model['instance'];