Skip to content

Commit 33811e8

Browse files
committed
ref
1 parent 8779cda commit 33811e8

File tree

2 files changed

+2
-33
lines changed

2 files changed

+2
-33
lines changed

examples/ollama/chat-llama-custom-catalog.php

Lines changed: 0 additions & 32 deletions
This file was deleted.

src/platform/src/Bridge/Ollama/PlatformFactory.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313

1414
use Symfony\AI\Platform\Bridge\Ollama\Contract\OllamaContract;
1515
use Symfony\AI\Platform\Contract;
16+
use Symfony\AI\Platform\ModelCatalog\DynamicModelCatalog;
1617
use Symfony\AI\Platform\ModelCatalog\ModelCatalogInterface;
1718
use Symfony\AI\Platform\Platform;
1819
use 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);

0 commit comments

Comments
 (0)