Skip to content

Commit 805b5d6

Browse files
committed
minor #440 [Platform] Remove obsoleted Platform-related aliases (OskarStark)
This PR was merged into the main branch. Discussion ---------- [Platform] Remove obsoleted Platform-related aliases | Q | A | ------------- | --- | Bug fix? | no | New feature? | no | Docs? | no | Issues | -- | License | MIT Commits ------- 10e658a Remove Platform-related aliases
2 parents 29382c4 + 10e658a commit 805b5d6

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 <[email protected]>
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 <[email protected]>
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 <[email protected]>
3434
* @author Denis Zunke <[email protected]>
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)