Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/platform/src/Bridge/HuggingFace/ModelClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@
namespace Symfony\AI\Platform\Bridge\HuggingFace;

use Symfony\AI\Platform\Model;
use Symfony\AI\Platform\ModelClientInterface as PlatformModelClient;
use Symfony\AI\Platform\ModelClientInterface;
use Symfony\AI\Platform\Result\RawHttpResult;
use Symfony\Component\HttpClient\EventSourceHttpClient;
use Symfony\Contracts\HttpClient\HttpClientInterface;

/**
* @author Christopher Hertel <mail@christopher-hertel.de>
*/
final readonly class ModelClient implements PlatformModelClient
final readonly class ModelClient implements ModelClientInterface
{
private EventSourceHttpClient $httpClient;

Expand Down
4 changes: 2 additions & 2 deletions src/platform/src/Bridge/HuggingFace/ResultConverter.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,13 @@
use Symfony\AI\Platform\Result\ResultInterface;
use Symfony\AI\Platform\Result\TextResult;
use Symfony\AI\Platform\Result\VectorResult;
use Symfony\AI\Platform\ResultConverterInterface as PlatformResponseConverter;
use Symfony\AI\Platform\ResultConverterInterface;
use Symfony\AI\Platform\Vector\Vector;

/**
* @author Christopher Hertel <mail@christopher-hertel.de>
*/
final readonly class ResultConverter implements PlatformResponseConverter
final readonly class ResultConverter implements ResultConverterInterface
{
public function supports(Model $model): bool
{
Expand Down
4 changes: 2 additions & 2 deletions src/platform/src/Bridge/OpenAi/Gpt/ResultConverter.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
use Symfony\AI\Platform\Result\TextResult;
use Symfony\AI\Platform\Result\ToolCall;
use Symfony\AI\Platform\Result\ToolCallResult;
use Symfony\AI\Platform\ResultConverterInterface as PlatformResponseConverter;
use Symfony\AI\Platform\ResultConverterInterface;
use Symfony\Component\HttpClient\Chunk\ServerSentEvent;
use Symfony\Component\HttpClient\EventSourceHttpClient;
use Symfony\Component\HttpClient\Exception\JsonException;
Expand All @@ -33,7 +33,7 @@
* @author Christopher Hertel <mail@christopher-hertel.de>
* @author Denis Zunke <denis.zunke@gmail.com>
*/
final class ResultConverter implements PlatformResponseConverter
final class ResultConverter implements ResultConverterInterface
{
public function supports(Model $model): bool
{
Expand Down