Skip to content

Commit 897085e

Browse files
committed
feature #694 [Platform] Revert "[Bedrock] Use dedicated model class" (OskarStark)
This PR was merged into the main branch. Discussion ---------- [Platform] Revert "[Bedrock] Use dedicated model class" | Q | A | ------------- | --- | Bug fix? | no | New feature? | yes | Docs? | no | Issues | Reverts #687 | License | MIT This cannot work, as the normalizer from the contract only support the `Claude` model class from src/Bridge/Anthropic... Commits ------- 31ef4e3 Revert "[Platform][Bedrock] Use dedicated model class"
2 parents 5019069 + 31ef4e3 commit 897085e

File tree

8 files changed

+6
-102
lines changed

8 files changed

+6
-102
lines changed

examples/bedrock/chat-claude.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* file that was distributed with this source code.
1010
*/
1111

12-
use Symfony\AI\Platform\Bridge\Bedrock\Anthropic\Claude;
12+
use Symfony\AI\Platform\Bridge\Anthropic\Claude;
1313
use Symfony\AI\Platform\Bridge\Bedrock\PlatformFactory;
1414
use Symfony\AI\Platform\Message\Message;
1515
use Symfony\AI\Platform\Message\MessageBag;

examples/bedrock/image-claude-binary.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* file that was distributed with this source code.
1010
*/
1111

12-
use Symfony\AI\Platform\Bridge\Bedrock\Anthropic\Claude;
12+
use Symfony\AI\Platform\Bridge\Anthropic\Claude;
1313
use Symfony\AI\Platform\Bridge\Bedrock\PlatformFactory;
1414
use Symfony\AI\Platform\Message\Content\Image;
1515
use Symfony\AI\Platform\Message\Message;

examples/bedrock/toolcall-claude.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
use Symfony\AI\Agent\Toolbox\AgentProcessor;
1414
use Symfony\AI\Agent\Toolbox\Tool\Wikipedia;
1515
use Symfony\AI\Agent\Toolbox\Toolbox;
16-
use Symfony\AI\Platform\Bridge\Bedrock\Anthropic\Claude;
16+
use Symfony\AI\Platform\Bridge\Anthropic\Claude;
1717
use Symfony\AI\Platform\Bridge\Bedrock\PlatformFactory;
1818
use Symfony\AI\Platform\Message\Message;
1919
use Symfony\AI\Platform\Message\MessageBag;

src/platform/src/Bridge/Bedrock/Anthropic/Claude.php

Lines changed: 0 additions & 53 deletions
This file was deleted.

src/platform/src/Bridge/Bedrock/Anthropic/ClaudeModelClient.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
use AsyncAws\BedrockRuntime\BedrockRuntimeClient;
1515
use AsyncAws\BedrockRuntime\Input\InvokeModelRequest;
1616
use AsyncAws\BedrockRuntime\Result\InvokeModelResponse;
17+
use Symfony\AI\Platform\Bridge\Anthropic\Claude;
1718
use Symfony\AI\Platform\Bridge\Bedrock\RawBedrockResult;
1819
use Symfony\AI\Platform\Exception\RuntimeException;
1920
use Symfony\AI\Platform\Model;

src/platform/src/Bridge/Bedrock/Anthropic/ClaudeResultConverter.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212
namespace Symfony\AI\Platform\Bridge\Bedrock\Anthropic;
1313

14+
use Symfony\AI\Platform\Bridge\Anthropic\Claude;
1415
use Symfony\AI\Platform\Bridge\Bedrock\RawBedrockResult;
1516
use Symfony\AI\Platform\Exception\RuntimeException;
1617
use Symfony\AI\Platform\Model;

src/platform/tests/Bridge/Bedrock/Anthropic/ClaudeResultConverterTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
use AsyncAws\Core\Test\ResultMockFactory;
1616
use PHPUnit\Framework\Attributes\TestDox;
1717
use PHPUnit\Framework\TestCase;
18-
use Symfony\AI\Platform\Bridge\Bedrock\Anthropic\Claude;
18+
use Symfony\AI\Platform\Bridge\Anthropic\Claude;
1919
use Symfony\AI\Platform\Bridge\Bedrock\Anthropic\ClaudeResultConverter;
2020
use Symfony\AI\Platform\Bridge\Bedrock\RawBedrockResult;
2121
use Symfony\AI\Platform\Exception\RuntimeException;

src/platform/tests/Bridge/Bedrock/Anthropic/ClaudeTest.php

Lines changed: 0 additions & 45 deletions
This file was deleted.

0 commit comments

Comments
 (0)