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 1313
1414use Symfony \AI \Platform \Bridge \Ollama \Contract \OllamaContract ;
1515use Symfony \AI \Platform \Contract ;
16+ use Symfony \AI \Platform \ModelCatalog \DynamicModelCatalog ;
1617use Symfony \AI \Platform \ModelCatalog \ModelCatalogInterface ;
1718use Symfony \AI \Platform \Platform ;
1819use Symfony \Component \HttpClient \EventSourceHttpClient ;
@@ -26,7 +27,7 @@ final class PlatformFactory
2627 public static function create (
2728 string $ hostUrl = 'http://localhost:11434 ' ,
2829 ?HttpClientInterface $ httpClient = null ,
29- ModelCatalogInterface $ modelCatalog = new ModelCatalog ( ),
30+ ModelCatalogInterface $ modelCatalog = new DynamicModelCatalog (Ollama::class ),
3031 ?Contract $ contract = null ,
3132 ): Platform {
3233 $ httpClient = $ httpClient instanceof EventSourceHttpClient ? $ httpClient : new EventSourceHttpClient ($ httpClient );
You can’t perform that action at this time.
0 commit comments