Skip to content

Commit 5a9f46a

Browse files
committed
bug #271 [AIBundle] improvement on OllamaPlatformFactory (Guikingone)
This PR was merged into the main branch. Discussion ---------- [AIBundle] improvement on OllamaPlatformFactory | Q | A | ------------- | --- | Bug fix? | yes | New feature? | yes | Docs? | no | Issues | None | License | MIT Hi 👋🏻 Small improvement on the creation of the `Ollama` platform, the keys are not needed. Commits ------- 46edae0 fix(aibundle): improvement on OllamaPlatformFactory
2 parents 8cb4528 + 46edae0 commit 5a9f46a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/ai-bundle/src/AiBundle.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -300,9 +300,9 @@ private function processPlatformConfig(string $type, array $platform, ContainerB
300300
->setLazy(true)
301301
->addTag('proxy', ['interface' => PlatformInterface::class])
302302
->setArguments([
303-
0 => $platform['host_url'],
304-
2 => new Reference('http_client', ContainerInterface::NULL_ON_INVALID_REFERENCE),
305-
3 => new Reference('ai.platform.contract.ollama'),
303+
$platform['host_url'],
304+
new Reference('http_client', ContainerInterface::NULL_ON_INVALID_REFERENCE),
305+
new Reference('ai.platform.contract.ollama'),
306306
])
307307
->addTag('ai.platform');
308308

0 commit comments

Comments
 (0)