Skip to content

Commit 9f31a40

Browse files
authored
Require php-llm/llm-chain 0.5 (#34)
1 parent 2399abb commit 9f31a40

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
],
1212
"require": {
1313
"php": ">=8.2",
14-
"php-llm/llm-chain": "^0.4",
14+
"php-llm/llm-chain": "^0.5",
1515
"symfony/config": "^6.4 || ^7.0",
1616
"symfony/dependency-injection": "^6.4 || ^7.0",
1717
"symfony/framework-bundle": "^6.4 || ^7.0"

src/DependencyInjection/LlmChainExtension.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
namespace PhpLlm\LlmChainBundle\DependencyInjection;
66

7-
use PhpLlm\LlmChain\EmbeddingModel;
7+
use PhpLlm\LlmChain\EmbeddingsModel;
88
use PhpLlm\LlmChain\LanguageModel;
99
use PhpLlm\LlmChain\OpenAI\Model\Embeddings;
1010
use PhpLlm\LlmChain\OpenAI\Model\Gpt;
@@ -57,7 +57,7 @@ public function load(array $configs, ContainerBuilder $container): void
5757
$this->processEmbeddingsConfig($embeddingsName, $embeddings, $container);
5858
}
5959
if (1 === count($config['embeddings']) && isset($embeddingsName)) {
60-
$container->setAlias(EmbeddingModel::class, 'llm_chain.embeddings.'.$embeddingsName);
60+
$container->setAlias(EmbeddingsModel::class, 'llm_chain.embeddings.'.$embeddingsName);
6161
}
6262

6363
foreach ($config['stores'] as $storeName => $store) {

0 commit comments

Comments
 (0)