Lines Matching full:model
5 use dokuwiki\plugin\aichat\Model\ChatInterface;
6 use dokuwiki\plugin\aichat\Model\EmbeddingInterface;
10 * Base for Model provider tests
27 /** @var string The chat model name, e.g. 'gpt-3.5-turbo', 'gpt-4', etc. */
30 /** @var string The embedding model name, e.g. 'text-embedding-3-small', etc. */
65 $model = $helper->getChatModel();
67 … $this->assertInstanceOf(ChatInterface::class, $model, 'Model should implement ChatInterface');
69 'dokuwiki\\plugin\\aichat\\Model\\' . $this->provider . '\\ChatModel',
70 get_class($model),
71 'Model seems to be the wrong class'
75 $reply = $model->getAnswer([
95 $model = $helper->getEmbeddingModel();
97 …$this->assertInstanceOf(EmbeddingInterface::class, $model, 'Model should implement EmbeddingInterf…
99 'dokuwiki\\plugin\\aichat\\Model\\' . $this->provider . '\\EmbeddingModel',
100 get_class($model),
101 'Model seems to be the wrong class'
105 $embedding = $model->getEmbedding($text);