File tree Expand file tree Collapse file tree 2 files changed +2
-33
lines changed
src/platform/src/Bridge/Ollama Expand file tree Collapse file tree 2 files changed +2
-33
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 13
13
14
14
use Symfony \AI \Platform \Bridge \Ollama \Contract \OllamaContract ;
15
15
use Symfony \AI \Platform \Contract ;
16
+ use Symfony \AI \Platform \ModelCatalog \DynamicModelCatalog ;
16
17
use Symfony \AI \Platform \ModelCatalog \ModelCatalogInterface ;
17
18
use Symfony \AI \Platform \Platform ;
18
19
use Symfony \Component \HttpClient \EventSourceHttpClient ;
@@ -26,7 +27,7 @@ final class PlatformFactory
26
27
public static function create (
27
28
string $ hostUrl = 'http://localhost:11434 ' ,
28
29
?HttpClientInterface $ httpClient = null ,
29
- ModelCatalogInterface $ modelCatalog = new ModelCatalog ( ),
30
+ ModelCatalogInterface $ modelCatalog = new DynamicModelCatalog (Ollama::class ),
30
31
?Contract $ contract = null ,
31
32
): Platform {
32
33
$ httpClient = $ httpClient instanceof EventSourceHttpClient ? $ httpClient : new EventSourceHttpClient ($ httpClient );
You can’t perform that action at this time.
0 commit comments