Skip to content

Commit 10e658a

Browse files
committed
Remove Platform-related aliases
Replace all Platform-related aliases with direct interface usage: - HuggingFace/ModelClient.php: PlatformModelClient -> ModelClientInterface - OpenAi/Gpt/ResultConverter.php: PlatformResponseConverter -> ResultConverterInterface - HuggingFace/ResultConverter.php: PlatformResponseConverter -> ResultConverterInterface
1 parent bb6b953 commit 10e658a

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/platform/src/Bridge/HuggingFace/ModelClient.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@
1212
namespace Symfony\AI\Platform\Bridge\HuggingFace;
1313

1414
use Symfony\AI\Platform\Model;
15-
use Symfony\AI\Platform\ModelClientInterface as PlatformModelClient;
15+
use Symfony\AI\Platform\ModelClientInterface;
1616
use Symfony\AI\Platform\Result\RawHttpResult;
1717
use Symfony\Component\HttpClient\EventSourceHttpClient;
1818
use Symfony\Contracts\HttpClient\HttpClientInterface;
1919

2020
/**
2121
* @author Christopher Hertel <mail@christopher-hertel.de>
2222
*/
23-
final readonly class ModelClient implements PlatformModelClient
23+
final readonly class ModelClient implements ModelClientInterface
2424
{
2525
private EventSourceHttpClient $httpClient;
2626

src/platform/src/Bridge/HuggingFace/ResultConverter.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,13 @@
3030
use Symfony\AI\Platform\Result\ResultInterface;
3131
use Symfony\AI\Platform\Result\TextResult;
3232
use Symfony\AI\Platform\Result\VectorResult;
33-
use Symfony\AI\Platform\ResultConverterInterface as PlatformResponseConverter;
33+
use Symfony\AI\Platform\ResultConverterInterface;
3434
use Symfony\AI\Platform\Vector\Vector;
3535

3636
/**
3737
* @author Christopher Hertel <mail@christopher-hertel.de>
3838
*/
39-
final readonly class ResultConverter implements PlatformResponseConverter
39+
final readonly class ResultConverter implements ResultConverterInterface
4040
{
4141
public function supports(Model $model): bool
4242
{

src/platform/src/Bridge/OpenAi/Gpt/ResultConverter.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
use Symfony\AI\Platform\Result\TextResult;
2424
use Symfony\AI\Platform\Result\ToolCall;
2525
use Symfony\AI\Platform\Result\ToolCallResult;
26-
use Symfony\AI\Platform\ResultConverterInterface as PlatformResponseConverter;
26+
use Symfony\AI\Platform\ResultConverterInterface;
2727
use Symfony\Component\HttpClient\Chunk\ServerSentEvent;
2828
use Symfony\Component\HttpClient\EventSourceHttpClient;
2929
use Symfony\Component\HttpClient\Exception\JsonException;
@@ -33,7 +33,7 @@
3333
* @author Christopher Hertel <mail@christopher-hertel.de>
3434
* @author Denis Zunke <denis.zunke@gmail.com>
3535
*/
36-
final class ResultConverter implements PlatformResponseConverter
36+
final class ResultConverter implements ResultConverterInterface
3737
{
3838
public function supports(Model $model): bool
3939
{

0 commit comments

Comments
 (0)