xref: /plugin/aichat/_test/ModelGenericIonosTest.php (revision 11d115daa436a1c1f8cd698c90ae5a57672ed956)
1*11d115daSAndreas Gohr (aider)<?php
2*11d115daSAndreas Gohr (aider)
3*11d115daSAndreas Gohr (aider)namespace dokuwiki\plugin\aichat\test;
4*11d115daSAndreas Gohr (aider)
5*11d115daSAndreas Gohr (aider)/**
6*11d115daSAndreas Gohr (aider) * Generic Model Test
7*11d115daSAndreas Gohr (aider) *
8*11d115daSAndreas Gohr (aider) * @group plugin_aichat
9*11d115daSAndreas Gohr (aider) * @group plugins
10*11d115daSAndreas Gohr (aider) * @group internet
11*11d115daSAndreas Gohr (aider) */
12*11d115daSAndreas Gohr (aider)class ModelGenericIonosTest extends AbstractModelTest
13*11d115daSAndreas Gohr (aider){
14*11d115daSAndreas Gohr (aider)    protected string $provider = 'Generic';
15*11d115daSAndreas Gohr (aider)    protected string $api_key_env = 'IONOS_API_KEY';
16*11d115daSAndreas Gohr (aider)    protected string $chat_model = 'mistralai/Mistral-Nemo-Instruct-2407';
17*11d115daSAndreas Gohr (aider)    protected string $embedding_model = 'BAAI/bge-m3';
18*11d115daSAndreas Gohr (aider)
19*11d115daSAndreas Gohr (aider)    public function setUp(): void
20*11d115daSAndreas Gohr (aider)    {
21*11d115daSAndreas Gohr (aider)        parent::setUp(); // TODO: Change the autogenerated stub
22*11d115daSAndreas Gohr (aider)        global $conf;
23*11d115daSAndreas Gohr (aider)        $conf['plugin']['aichat']['generic_apiurl'] = 'https://openai.inference.de-txl.ionos.com/v1/';
24*11d115daSAndreas Gohr (aider)    }
25*11d115daSAndreas Gohr (aider)}
26