Skip to content

Commit 9132003

Browse files
authored
fix: model name argument on bundle extension/injection (#80)
1 parent 87db6c0 commit 9132003

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/DependencyInjection/LlmChainExtension.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ private function processChainConfig(string $name, array $config, ContainerBuilde
232232
};
233233
$llmDefinition = new Definition($llmClass);
234234
if (null !== $version) {
235-
$llmDefinition->setArgument('$version', $version);
235+
$llmDefinition->setArgument('$name', $version);
236236
}
237237
if (0 !== count($options)) {
238238
$llmDefinition->setArgument('$options', $options);
@@ -440,7 +440,7 @@ private function processEmbedderConfig(int|string $name, array $config, Containe
440440
};
441441
$modelDefinition = (new Definition($modelClass));
442442
if (null !== $version) {
443-
$modelDefinition->setArgument('$version', $version);
443+
$modelDefinition->setArgument('$name', $version);
444444
}
445445
if (0 !== count($options)) {
446446
$modelDefinition->setArgument('$options', $options);

0 commit comments

Comments
 (0)